query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Get cut image from input stream
public TailoredImage getImageInputStream(InputStream in) throws IOException { return doProcess(ImageIO.read(in)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "public BufferedImage subsampleImage(\n ImageInputStream inputStream,\n int x,\n int y) throws IOException {\n BufferedImage resampledImage = null;\n Iterator<ImageReader> readers = ImageIO.getImageReaders(inputStream);\n if (!readers.hasNext()) {\n throw new IOException(\"No reader available for supplied image stream.\");\n }\n // Get first reader if any.\n ImageReader reader = readers.next();\n ImageReadParam imageReaderParams = reader.getDefaultReadParam();\n reader.setInput(inputStream);\n Dimension d1 = new Dimension(reader.getWidth(0), reader.getHeight(0));\n Dimension d2 = new Dimension(x, y);\n int subsampling = (int) scaleSubsamplingMaintainAspectRatio(d1, d2);\n imageReaderParams.setSourceSubsampling(subsampling, subsampling, 0, 0);\n resampledImage = reader.read(0, imageReaderParams);\n return resampledImage;\n }", "private void startCropImage() {\n }", "@Override\n\tpublic void run(ImageProcessor ip) {\n\t\twidth = ip.getWidth();\n\t\theight = ip.getHeight();\n\n\t\tbyte[] pixels = (byte[]) ip.getPixels();\n\t\tij.gui.Roi[] rois = new ij.gui.Roi[0];\n\t\tbyte[] output = trimSperm(pixels, width, height, rois);\n\n\t\tByteProcessor bp = new ByteProcessor(width, height, output);\n\t\tip.copyBits(bp, 0, 0, Blitter.COPY);\n\t\timage.show();\n\t\timage.updateAndDraw();\n\t}", "public static Image returnImage (InputStream in){\n InputStream stream = in;\n return new Image(stream);\n }", "public Image getMinimRest();", "@Override public BufferedImage getSlice(int i) {\n\t\tBufferedImage slice = null;\n\t\ttry {\n\t\t\tslice = ImageIO.read(tiffs[i]);\n\t\t} catch (IOException e) {\n\t\t\treturn null;\n\t\t}\n\t\treturn slice;\n\t}", "Buffer slice();", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "void cut(int cardPosition);", "public BufferedImage fetch() throws IOException {\n if (!m_initialized) {\n init();\n }\n\n try {\n byte[] header = new byte[4];\n\n while (true) {\n blockingRead(m_sockistream, header, 4);\n\n // Look for header 1,0,0,0\n if (!((header[0] == 1) && ((header[1] + header[2] + header[3]) == 0))) {\n continue;\n }\n\n // wait for length integer (4 bytes)\n while (m_sockistream.available() < 4) {\n }\n\n // Read int length of data to follow\n int imgDataLen = m_daistream.readInt();\n //System.out.println(\" Data Len: \" + imgDataLen + \"Hex:\" + Integer.toHexString(imgDataLen));\n\n // Read in the expected number of bytes\n resizeBuffer(imgDataLen);\n blockingRead(m_sockistream, m_imgBuffer, imgDataLen);\n m_baistream.reset();\n\n // Read the image\n return ImageIO.read(m_baistream);\n }\n } catch (IOException ex) {\n m_sock.close();\n m_initialized = false;\n throw ex;\n }\n }", "public static BufferedImage autoCrop(BufferedImage source, float threshold) {\n\n int rgb;\n int backlo;\n int backhi;\n int width = source.getWidth();\n int height = source.getHeight();\n int startx = width;\n int starty = height;\n int destx = 0;\n int desty = 0;\n\n rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);\n backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backlo = (int) (backlo - (backlo * threshold));\n if (backlo < 0) {\n backlo = 0;\n }\n backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backhi = (int) (backhi + (backhi * threshold));\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n rgb = source.getRGB(x, y);\n int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n if (sum < backlo || sum > backhi) {\n if (y < starty) {\n starty = y;\n }\n if (x < startx) {\n startx = x;\n }\n if (y > desty) {\n desty = y;\n }\n if (x > destx) {\n destx = x;\n }\n }\n }\n }\n System.out.println(\"crop: [\"\n + startx + \", \" + starty + \", \"\n + destx + \", \" + desty + \"]\");\n\n BufferedImage result = new BufferedImage(\n destx - startx, desty - starty,\n source.getType());\n result.getGraphics().drawImage(\n Toolkit.getDefaultToolkit().createImage(\n new FilteredImageSource(source.getSource(),\n new CropImageFilter(startx, starty, destx, desty))),\n 0, 0, null);\n return result;\n }", "public Image getCrotchetRest();", "public native MagickImage trimImage() throws MagickException;", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "public static byte[] uncompressInputLine(BufferedInputStream bufferedInputStream, int imageWidth) throws IOException{\r\n\t\tint pixelInLine = 0; // Zaehler für die Bytes der dekomprimierten Linie\r\n\t\tint controlByte = 0;\r\n\t\tbyte[] singlePixel = null;\r\n\t\tint repetitionCounter;\r\n\t\tint dataCounter;\r\n\t\tbyte[] byteArray = null;\r\n\t\tint pixelProLineUncompressed = imageWidth;\r\n\t\tbyte[] line = new byte[pixelProLineUncompressed*3];\r\n\t\twhile (pixelInLine < pixelProLineUncompressed) {\r\n\t\t\tcontrolByte = bufferedInputStream.read(); // erstes Steuerbyte in Zeile\r\n\t\t\tif (controlByte >>> 7 == 0) { // Datenzaehler\r\n\t\t\t\tdataCounter = (controlByte & 0x7f)+1;\r\n\t\t\t\tbyteArray = bufferedInputStream.readNBytes(dataCounter*3);\r\n\t\t\t\tfor (int i = 0; i < byteArray.length; i++) {\r\n\t\t\t\t\tline[pixelInLine*3 + i] = byteArray[i];\r\n\t\t\t\t}\r\n\t\t\t\tpixelInLine += dataCounter;\r\n\t\t\t}\r\n\t\t\tif (controlByte >>> 7 == 1) { // Wiederholungszaehler\r\n\t\t\t\trepetitionCounter = (controlByte & 0x7f)+1;\r\n\t\t\t\tsinglePixel = bufferedInputStream.readNBytes(3);\r\n\t\t\t\tfor (int i = 0; i < repetitionCounter; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\t\tline[pixelInLine*3 + i*3 + j] = singlePixel[j];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpixelInLine += repetitionCounter;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn line;\r\n\t}", "public native MagickImage chopImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "private List<Bitmap> cutImage(Bitmap picture) {\n List<Bitmap> newPieces = new ArrayList<Bitmap>();\n int w = picture.getWidth();\n int h = picture.getHeight();\n int boxWidth = w / Board.NUM_COLS;\n int boxHeight = h / Board.NUM_ROWS;\n for (int i = 0; i < Board.NUM_ROWS; i++) {\n for (int j = 0; j < Board.NUM_ROWS; j++) {\n Bitmap pictureFragment = Bitmap.createBitmap(picture, j * boxWidth, i * boxHeight, boxWidth, boxHeight);\n newPieces.add(pictureFragment);\n }\n }\n return newPieces;\n }", "public abstract SeekInputStream getRawInput();", "private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}", "abstract BufferedImage getBackround();", "public void gettingImageInput(){\n Bitmap bm = getYourInputImage();\n int z;\n if(res==2) { z=50; }\n else { z=224; }\n Bitmap bitmap = Bitmap.createScaledBitmap(bm, z, z, true);\n input = ByteBuffer.allocateDirect(z * z * 3 * 4).order(ByteOrder.nativeOrder());\n for (int y = 0; y < z; y++) {\n for (int x = 0; x < z; x++) {\n int px = bitmap.getPixel(x, y);\n\n // Get channel values from the pixel value.\n int r = Color.red(px);\n int g = Color.green(px);\n int b = Color.blue(px);\n\n // Normalize channel values to [-1.0, 1.0]. This requirement depends\n // on the model. For example, some models might require values to be\n // normalized to the range [0.0, 1.0] instead.\n float rf = (r) / 255.0f;\n float gf = (g) / 255.0f;\n float bf = (b) / 255.0f;\n\n input.putFloat(rf);\n input.putFloat(gf);\n input.putFloat(bf);\n }\n }\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public abstract BufferedImage getSnapshot();", "public native int getFilter() throws MagickException;", "public static BufferedImage getSubImageBit(BufferedImage bi) {\n\t\treturn bi.getSubimage(0, 0, 50, 50);\n\t}", "public BufferedImage crop(int x, int y, int width, int height){\n return sheet.getSubimage(x, y, width, height);\n }", "public BufferedImage trim(BufferedImage img) {\n\t\t// point zero is upper left corner\n\t\tint xMin = getXmin(img); // the left border of the symbol\n\t\tint xMax = getXmax(img); // the right border of the symbol\n\t\tint yMin = getYmin(img); // the upper border of the symbol\n\t\tint yMax = getYmax(img); // the lower border of the symbol\n\n\t\tBufferedImage newImg = new BufferedImage(xMax - xMin + 10, yMax - yMin + 10, BufferedImage.TYPE_INT_RGB);\n\t\tGraphics g = newImg.createGraphics();\n\t\tg.drawImage(img, -xMin + 5, -yMin + 5, null);\n\t\timg = newImg;\n\t\treturn img;\n\t}", "@Override\npublic Image operate (Image source)\n{\n final Image thresholdImage = NIVision\n .imaqCreateImage(ImageType.IMAGE_U8, 0);\n\n // @TODO: Store NIVision.Range instead of integers so we don't make a\n // new one every time.\n NIVision.imaqColorThreshold(thresholdImage, source, 255,\n NIVision.ColorMode.HSL, this.hueRange, this.satRange,\n this.lumRange);\n source.free();\n return thresholdImage;\n}", "private void copyJpeg(InputStream in, OutputStream out) throws\n\t\tIOException\n\t{\n\t\tboolean notFinished = true;\n\t\tlong copiedBytes = 3;\n\t\tdo\n\t\t{\n\t\t\tint v1 = in.read();\n\t\t\tif (v1 == 0xff) // marker\n\t\t\t{\n\t\t\t\tint v2 = in.read();\n\t\t\t\tif (v2 < 0) // end of file\n\t\t\t\t{\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tcopiedBytes++;\n\t\t\t\t\tnotFinished = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\tif (v2 == 0xd9) // embedded JPEG stream ended\n\t\t\t\t{\n\t\t\t\t\t// copy the end of stream marker\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tout.write(0xd9);\n\t\t\t\t\tcopiedBytes += 2;\n\t\t\t\t\tnotFinished = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// copy the two bytes, just a marker of the embedded JPEG\n\t\t\t\t\tout.write(0xff);\n\t\t\t\t\tout.write(v2);\n\t\t\t\t\tcopiedBytes += 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\tif (v1 == -1) // unexpected end of input file\n\t\t\t{\n\t\t\t\tnotFinished = false;\n\t\t\t}\n\t\t\telse // just copy that value\n\t\t\t{\n\t\t\t\tout.write(v1);\n\t\t\t\tcopiedBytes++;\n\t\t\t}\n\t\t}\n\t\twhile (notFinished);\n\t\ttotalBytes += copiedBytes;\n\t\tif (!quiet)\n\t\t{\n\t\t\tSystem.out.println(\" (\" + copiedBytes + \" bytes)\");\n\t\t}\n\t\ttotalOutputFiles++;\n\t\t// close output stream\n\t\ttry\n\t\t{\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// ignore error when closing output stream\n\t\t}\n\t}", "BufferedImage filterH(BufferedImage img, int order);", "public Image call() throws IOException;", "public static ImageBuffer extract(Image img, String name) {\n int width = img.getWidth(null);\n int height = img.getHeight(null);\n if (width <= 0 || height <= 0) {\n System.err.println(\"Bad input image file for \" + name);\n return null;\n }\n int[] pixels = new int[width * height];\n PixelGrabber pg = new PixelGrabber(img, 0, 0, width, height, pixels, 0,\n width);\n try {\n pg.grabPixels();\n } catch (InterruptedException e) {\n return null;\n }\n ColorModel cm = pg.getColorModel();\n return new ImageBuffer(width, height, pixels, cm, name);\n }", "private BufferedImage getClipImage(final Rectangle effectBounds) {\n if (_clipImage == null\n || _clipImage.getWidth() < effectBounds.width\n || _clipImage.getHeight() < effectBounds.height) {\n /* */\n int w = effectBounds.width;\n int h = effectBounds.height;\n if (_clipImage != null) {\n w = Math.max(_clipImage.getWidth(), w);\n h = Math.max(_clipImage.getHeight(), h);\n }\n _clipImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n }\n return _clipImage;\n }", "private Operation filterOperation(Operation op) {\n\t\t\tif (op instanceof ImageOperation) {\n\t\t\t\tImage i = ((ImageOperation) op).getImage();\n\t\t\t\tDimension d = ImageSize.get(i);\n\t\t\t\tBufferedImage bi = new BufferedImage(d.width, d.height,\n\t\t\t\t\t\tBufferedImage.TYPE_INT_ARGB);\n\t\t\t\tGraphics2D g3 = bi.createGraphics();\n\t\t\t\tg3.drawImage(i, 0, 0, null);\n\t\t\t\tg3.dispose();\n\t\t\t\t((ImageOperation) op).setImage(bi);\n\t\t\t}\n\t\t\treturn op;\n\t\t}", "public BufferedImage open(String id, int no)\n throws FormatException, IOException\n {\n if (!id.equals(currentId)) initFile(id);\n \n if (no < 0 || no >= getImageCount(id)) {\n throw new FormatException(\"Invalid image number: \" + no);\n }\n \n // First initialize:\n in.seek(offsets[no] + 12);\n byte[] toRead = new byte[4];\n in.read(toRead);\n int blockSize = batoi(toRead);\n toRead = new byte[1];\n in.read(toRead);\n // right now I'm gonna skip all the header info\n // check to see whether or not this is v2 data\n if (toRead[0] == 1) {\n in.skipBytes(128);\n }\n in.skipBytes(169);\n // read in the block of data\n toRead = new byte[blockSize];\n int read = 0;\n int left = blockSize;\n while (left > 0) {\n int i = in.read(toRead, read, left);\n read += i;\n left -= i;\n }\n byte[] pixelData = new byte[blockSize];\n int pixPos = 0;\n \n Dimension dim;\n try { dim = pictReader.getDimensions(toRead); }\n catch (Exception e) { dim = new Dimension(0, 0); }\n \n int length = toRead.length;\n int num, size, blockEnd;\n int totalBlocks = -1; // set to allow loop to start.\n int expectedBlock = 0;\n int pos = 0;\n int imagePos = 0;\n int imageSize = dim.width * dim.height;\n short[] flatSamples = new short[imageSize];\n byte[] temp;\n boolean skipflag;\n \n // read in deep grey pixel data into an array, and create a\n // BufferedImage out of it\n //\n // First, checks the existence of a deep gray block. If it doesn't exist,\n // assume it is PICT data, and attempt to read it.\n \n // check whether or not there is deep gray data\n while (expectedBlock != totalBlocks) {\n skipflag = false;\n while (pos + 7 < length &&\n (toRead[pos] != 73 || toRead[pos + 1] != 86 ||\n toRead[pos + 2] != 69 || toRead[pos + 3] != 65 ||\n toRead[pos + 4] != 100 || toRead[pos + 5] != 98 ||\n toRead[pos + 6] != 112 || toRead[pos + 7] != 113))\n {\n pos++;\n }\n if (pos + 32 > length) { // The header is 32 bytes long.\n if (expectedBlock == 0 && imageType[no] < 9) {\n // there has been no deep gray data, and it is supposed\n // to be a pict... *crosses fingers*\n try { return pictReader.openBytes(toRead); }\n catch (Exception e) {\n e.printStackTrace();\n throw new FormatException(\"No iPic comment block found\", e);\n }\n }\n else {\n throw new FormatException(\"Expected iPic comment block not found\");\n }\n }\n \n pos += 8; // skip the block type we just found\n \n // Read info from the iPic comment. This serves as a\n // starting point to read the rest.\n temp = new byte[] {\n toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3]\n };\n num = batoi(temp);\n if (num != expectedBlock) {\n throw new FormatException(\"Expected iPic block not found\");\n }\n expectedBlock++;\n temp = new byte[] {\n toRead[pos+4], toRead[pos+5], toRead[pos+6], toRead[pos+7]\n };\n if (totalBlocks == -1) {\n totalBlocks = batoi(temp);\n }\n else {\n if (batoi(temp) != totalBlocks) {\n throw new FormatException(\"Unexpected totalBlocks numbein.read\");\n }\n }\n \n // skip to size\n pos += 16;\n temp = new byte[] {\n toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3]\n };\n size = batoi(temp);\n pos += 8;\n blockEnd = pos + size;\n \n // copy into our data array.\n System.arraycopy(toRead, pos, pixelData, pixPos, size);\n pixPos += size;\n }\n int pixelValue = 0;\n pos = 0;\n \n // Now read the data and wrap it in a BufferedImage\n \n while (true) {\n if (pos + 1 < pixelData.length) {\n pixelValue = pixelData[pos] < 0 ? 256 + pixelData[pos] :\n (int) pixelData[pos] << 8;\n pixelValue += pixelData[pos + 1] < 0 ? 256 + pixelData[pos + 1] :\n (int) pixelData[pos + 1];\n }\n else throw new FormatException(\"Malformed LIFF data\");\n flatSamples[imagePos] = (short) pixelValue;\n imagePos++;\n if (imagePos == imageSize) { // done, return it\n return ImageTools.makeImage(flatSamples,\n dim.width, dim.height, 1, false);\n }\n }\n }", "public boolean isCut() {\n\t\treturn isCut;\n\t}", "public static void copy(InputStream input, OutputStream output) throws IOException {\n try {\n byte[] buffer = new byte[GCSFetcher.BUFFER_SIZE];\n int bytesRead = input.read(buffer);\n while (bytesRead != -1) {\n output.write(buffer, 0, bytesRead);\n bytesRead = input.read(buffer);\n }\n } finally {\n input.close();\n output.close();\n }\n }", "static public Fits do_crop(Fits inFits, int min_x, int min_y, int max_x, int max_y)\n throws FitsException, IOException {\n int x_center = (min_x + max_x) / 2;\n int y_center = (min_y + max_y) / 2;\n int x_size = Math.abs(max_x - min_x);\n int y_size = Math.abs(max_y - min_y);\n\n ImageHDU h = (ImageHDU) inFits.readHDU();\n Header old_header = h.getHeader();\n\n Fits out_fits =\n common_crop(h, old_header, x_center, y_center, x_size, y_size);\n return (out_fits);\n }", "public Bitmap getFinalShapesImage();", "BufferedImage cropDisplayedImage(double sliderValue,\n BufferedImage myBufferedImageStocked, ImageView myImage) {\n this.cropper.setCoef(sliderValue);\n this.cropper.setDirection(this.getDirection());\n BufferedImage myBufferedImage = this.cropper\n .process(myBufferedImageStocked);\n myImage.setImage(SwingFXUtils.toFXImage(myBufferedImage, null));\n return myBufferedImage;\n\n }", "public void filterImage()\r\n {\r\n\t if (!isInverted && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {0.0f, 1.0f, 0.0f, -1.0f,brightnessLevel,1.0f,0.0f,0.0f,0.0f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp change = new ConvolveOp(kernel); \r\n\t cropedEdited = change.filter(cropedEdited, null);\r\n repaint();\r\n }", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "@Override public Bitmap transform(Bitmap source) {\n int width = source.getWidth(); //Width of source\n int height = source.getHeight(); //Height of source\n\n Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n\n Drawable mask = getMaskDrawable(mContext, mMaskId); //Init mask from resources\n\n //Using mask\n Canvas canvas = new Canvas(result);\n mask.setBounds(0, 0, width, height);\n mask.draw(canvas);\n canvas.drawBitmap(source, 0, 0, mMaskingPaint);\n\n source.recycle();\n\n //Return bitmap of cropped image\n return result;\n }", "public String[] stitch() {\n String[] result = new String[image.length * image[0][0].getImageSize()];\n Arrays.fill(result, \"\");\n for (int i = 0; i < image.length; i++) {\n for (int j = 0; j < image[i].length; j++) {\n for (int k = 0; k < image[i][j].getImageSize(); k++) {\n result[i * image[i][j].getImageSize() + k] += image[i][j].getImageSlice(k);\n }\n }\n }\n return result;\n }", "public static BufferedImage cropImage(BufferedImage img, Rectangle bounds)\n\t{\n\t\tBufferedImage dest = img.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\treturn dest; \n\t}", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "public <I extends Image<?, I>> I divide(I in1, I in2) {\n\t\tCLQueue queue = context.createDefaultQueue();\n\t\t\n\t\tCLImage2D clin1 = CLImageConversion.convert(context, in1);\n\t\tCLImage2D clin2 = CLImageConversion.convert(context, in2);\n\t\tCLImage2D clout = context.createImage2D(CLMem.Usage.Output, clin1.getFormat(), clin1.getWidth(), clin1.getHeight());\n\t\t\n\t\tCLEvent evt = process(divideImage, queue, clin1, clin2, clout);\n\t\t\n\t\tI out = CLImageConversion.convert(queue, evt, clout, in1.newInstance(in1.getWidth(), in1.getHeight()));\n\t\t\n\t\tclin1.release();\n\t\tclin2.release();\n\t\tclout.release();\n\t\tqueue.release();\n\t\t\n\t\treturn out;\n\t}", "@Override\n public void run() {\n synchronized (this) {\n this.running = true;\n }\n\n while (!this.decoder.complete()) {\n final ImageSequence sequence = this.decoder.getNext();\n Pair<Path, Optional<BufferedImage>> next;\n while ((next = sequence.pop()) != null)\n if (next.second.isPresent()) {\n final ImageSegment segment = new ImageSegment(next.second.get(), this.factory);\n if (this.idgenerator != null) {\n segment.setId(this.idgenerator.next(next.first, MediaType.IMAGE_SEQUENCE));\n }\n this.segments.offer(segment);\n }\n }\n\n /* Sets the running flag to false. */\n synchronized (this) {\n this.running = false;\n }\n }", "BufferedImage outputImage();", "public Vector<line> detectLines(Boolean doBlobExtract) {\n\n BufferedImage bin = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = cloneImage(untouchedImage);\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, 1000));\n BufferedImage copy = cloneImage(untouchedImage);\n copy = ImageHelpers.scale(copy, maxHeight);\n // PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, \"\", lines);\n FileWriter writer = null;\n\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n Vector<line> allLines = new Vector();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n //d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n allLines.add(r);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n// r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n return allLines;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public DicomProcess(BufferedImage in) {\n\t\tsuper(in);\n\t}", "public static boolean rescale(InputStream input, OutputStream output,int maxX,int maxY) throws IOException\n {\n try(ImageInputStream iis = ImageIO.createImageInputStream(input))\n {\n if(iis == null) return false;\n \n Iterator<ImageReader> it = ImageIO.getImageReaders(iis);\n if(!it.hasNext()) return false;\n ImageReader reader = it.next();\n reader.setInput(iis);\n \n String format = reader.getFormatName();\n BufferedImage img = reader.read(0);\n if(img == null) return false;\n \n int scaleX = img.getWidth();\n int scaleY = img.getHeight();\n if(scaleX>maxX)\n {\n scaleY = (int)(((float)scaleY/scaleX)*maxX);\n scaleX = maxX;\n }\n if(scaleY>maxY)\n {\n scaleX = (int)(((float)scaleX/scaleY)*maxY);\n scaleY = maxY;\n }\n Image newImg = img.getScaledInstance(scaleX, scaleY, Image.SCALE_SMOOTH);\n \n return ImageIO.write(imageToBufferedImage(newImg), format, output);\n }\n finally\n {\n input.close();\n }\n }", "public Image getSemiquaverRest();", "private Bitmap cutBottom(Bitmap origialBitmap) {\n Bitmap cutBitmap = Bitmap.createBitmap(origialBitmap.getWidth(),\n origialBitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(cutBitmap);\n Rect srcRect = new Rect(0, 6*(origialBitmap.getHeight() / 7), origialBitmap.getWidth() ,\n origialBitmap.getHeight());\n Rect desRect = new Rect(0, 0, origialBitmap.getWidth(), origialBitmap.getHeight() / 7);\n canvas.drawBitmap(origialBitmap, srcRect, desRect, null);\n return cutBitmap;\n }", "public Image getSharp();", "BufferedImage getSelectedImage();", "public BufferedImage getRandomImage() {\n\n Random randomRow = new Random();\n int rowIndex = (randomRow.nextInt(16)) * 8;\n\n Random randomColumn = new Random();\n int columnIndex = (randomColumn.nextInt(16)) * 12;\n\n System.out.println(\"rowIndex = \" + rowIndex + \", columnIndex = \" + columnIndex);\n\n return input.getSubimage(rowIndex, columnIndex, subImageWidth, subImageHeight);\n }", "public BufferedImage subtractBackground(BufferedImage inputImage) {\r\n\t\t// Get the mask from the blurred image\r\n\t\tBufferedImage mask = imageMasker.createMask(imageBlur.averageBlur(inputImage, blurRadius), backgroundImage, prevMetrics, threshold);\r\n\t\t// Get the bounding box from the mask\r\n\t\tMetrics imageMetrics = boundingBoxer.getBoundingBox(mask, prevMetrics);\r\n\t\t// Improve the image\r\n\t\tmask = imageMasker.expandContract(mask, imageMetrics, maskRadius);\r\n\t\tmask = imageMasker.contractExpand(mask, imageMetrics, maskRadius);\r\n\t\t// Get metrics\r\n\t\timageMetrics = boundingBoxer.getBoundingBox(mask, prevMetrics);\r\n\t\timageMetrics = metricsCentroid.findXMetrics(mask, imageMetrics, prevMetrics);\r\n\r\n\t\t// Mask the image\r\n\t\tBufferedImage maskedImage = imageMasker.applyMask(inputImage, mask);\r\n\r\n\t\t// Store bounding box to use in next iteration\r\n\t\tthis.prevMetrics = imageMetrics;\r\n\t\t// Store it to the csv\r\n\t\tif (csvHandler != null) {\r\n\t\t\tcsvHandler.writeCSVLine(imageMetrics.getMetrics());\r\n\t\t}\r\n\t\t// Check size\r\n\t\tcheckLargestBBox(imageMetrics);\r\n\t\t// Return the image with debug information\r\n\t\t// return\r\n\t\t// metricsCentroid.drawMetrics(boundingBoxer.drawBoundingBox(maskedImage,\r\n\t\t// imageMetrics), imageMetrics);\r\n\t\t// Return the image\r\n\t\treturn maskedImage;\r\n\t}", "private void beginCrop(Uri source) {\n Uri destination = Uri.fromFile(new File(getCacheDir(), \"cropped\"));\n Crop.of(source, destination).asSquare().start(this);\n }", "static Bitmap decodeStream(InputStream p1, Request p2) throws IOException {\n }", "public BufferedImage crop(int row,int col){\n\t\treturn imageSheet.getSubimage((col*64)-64, (row*64)-64, 64, 64);\n\t}", "public native MagickImage flopImage() throws MagickException;", "static public Fits do_crop(Fits inFits, int extension,\n int min_x, int min_y, int max_x, int max_y)\n throws FitsException, IOException {\n int x_center = (min_x + max_x) / 2;\n int y_center = (min_y + max_y) / 2;\n int x_size = Math.abs(max_x - min_x);\n int y_size = Math.abs(max_y - min_y);\n\n ImageHDU h = (ImageHDU) inFits.getHDU(extension);\n Header old_header = h.getHeader();\n\n Fits out_fits =\n common_crop(h, old_header, x_center, y_center, x_size, y_size);\n return (out_fits);\n }", "public ForkJoinExemple(BufferedImage src, int lineFrom, int lineTo)\n\t{\n\t\timgSrc = src;\n\t\tfirstLine = lineFrom;\n\t\tlastLine = lineTo;\n\t\timgHeight = imgSrc.getHeight();\n\t\timgWidth = imgSrc.getWidth();\n\t\t// Initialize destination image (only one time)\n\t\tif(imgDst == null)\n\t\t\timgDst = new BufferedImage(imgSrc.getWidth(),imgHeight,TYPE_INT_RGB);\n\t}", "byte[] getRecipeImage(CharSequence query);", "private BufferedImage getOptimalScalingImage(BufferedImage inputImage,\r\n int startSize, int endSize) {\r\n int currentSize = startSize;\r\n BufferedImage currentImage = inputImage;\r\n int delta = currentSize - endSize;\r\n int nextPow2 = currentSize >> 1;\r\n while (currentSize > 1) {\r\n if (delta <= nextPow2) {\r\n if (currentSize != endSize) {\r\n BufferedImage tmpImage = new BufferedImage(endSize,\r\n endSize, BufferedImage.TYPE_INT_RGB);\r\n Graphics g = tmpImage.getGraphics();\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n g.drawImage(currentImage, 0, 0, tmpImage.getWidth(), \r\n tmpImage.getHeight(), null);\r\n currentImage = tmpImage;\r\n }\r\n return currentImage;\r\n } else {\r\n BufferedImage tmpImage = new BufferedImage(currentSize >> 1,\r\n currentSize >> 1, BufferedImage.TYPE_INT_RGB);\r\n Graphics g = tmpImage.getGraphics();\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n g.drawImage(currentImage, 0, 0, tmpImage.getWidth(), \r\n tmpImage.getHeight(), null);\r\n currentImage = tmpImage;\r\n currentSize = currentImage.getWidth();\r\n delta = currentSize - endSize;\r\n nextPow2 = currentSize >> 1;\r\n }\r\n }\r\n return currentImage;\r\n }", "private void setInputStream(InputStream ins) throws IOException {\n\tMediaTracker mt = new MediaTracker(this);\n\tint bytes_read = 0;\n\tbyte data[] = new byte[1024];\n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\n\twhile((bytes_read = ins.read(data)) >0)\n\t baos.write(data, 0, bytes_read);\n\tins.close();\n\t\n\t// convert the buffer into an image\n\timage = getToolkit().createImage(baos.toByteArray());\n\t\n\tmt.addImage(image, 0);\n\t\n\ttry {\n\t mt.waitForID(0);\n\t mt.waitForAll();\n\t if(mt.statusID(0, true ) != MediaTracker.COMPLETE){\n\t\tSystem.out.println(\"Error occured in image loading = \" +\n\t\t\t\t mt.getErrorsID(0));\n\t\t\n\t }\n\t \n\t}\n\tcatch(InterruptedException e) {\n\t throw new IOException(\"Error reading image data\");\n\t}\n\t\n\tcanvas.setImage(image);\n\tif(DEBUG)\n\t System.out.println(\"calling invalidate\");\n\t\n }", "public InputStream getInputStream(long position);", "int getMaxRawImages();", "private TaskItemFileInfo cut(String originalFile, String targetFile, float startTime, String assetFileNo) {\n\n List<String> arguments = new ArrayList<String>();\n arguments.add(ffmpeg.getShell());\n arguments.add(\"-ss\");\n arguments.add(Float.toString(startTime));\n arguments.add(\"-t\");\n arguments.add(Integer.toString(this.taskInfo.getTimeInterval()));\n arguments.add(\"-i\");\n arguments.add(originalFile);\n arguments.add(\"-y\");\n arguments.add(\"-r\");\n arguments.add(\"24\");\n arguments.add(this.taskInfo.getTaskNo() + \"\\\\\" + targetFile);\n CommandResult result = this.execCommand(arguments);\n TaskItemFileInfo taskItemFileInfo = new TaskItemFileInfo();\n taskItemFileInfo.setAssetFileNo(assetFileNo);\n taskItemFileInfo.setFileName(targetFile);\n taskItemFileInfo.setSuccess(result.isSuccess());\n\n return taskItemFileInfo;\n }", "public void cut() {\n\t\tcmd = new CutCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public InputStream getStream();", "@Test\n public void endToEndTest() throws FitsException, IOException, ClassNotFoundException {\n\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n //Test the ImageData without mask\n BufferedImage calculatedImage = imageData.getImage(frArray);\n\n compareImage(expectedImage,calculatedImage);\n\n\n //Test the ImageData withmask\n ImageData imageDataWithMask = new ImageData(frArray, IMAGE_TYPE,imageMasks, rangeValues, 0,0, 100, 100, true );\n BufferedImage calculatedImageWithMask = imageDataWithMask.getImage(frArray);\n compareImage(expectedImageWithMask,calculatedImageWithMask);\n\n }", "public static byte[] readAndClose(final InputStream aInput) throws IOException{\n\t\tByteArrayOutputStream result = null;\n\t\tif (aInput != null) {\n\t\t\t//carries the data from input to output :\n\t\t\tfinal byte[] bucket = new byte[32*1024];\n\t\t\ttry {\n\t\t\t\t//Use buffering? No. Buffering avoids costly access to disk or network;\n\t\t\t\t//buffering to an in-memory stream makes no sense.\n\t\t\t\tresult = new ByteArrayOutputStream(bucket.length);\n\t\t\t\tint bytesRead = 0;\n\t\t\t\twhile(bytesRead != -1){\n\t\t\t\t\t//aInput.read() returns -1, 0, or more :\n\t\t\t\t\tbytesRead = aInput.read(bucket);\n\t\t\t\t\tif(bytesRead > 0){\n\t\t\t\t\t\tresult.write(bucket, 0, bytesRead);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\taInput.close();\n\t\t\t\t//result.close(); this is a no-operation for ByteArrayOutputStream\n\t\t\t}\n\t\t}\n\t\treturn result != null? result.toByteArray(): null;\n\t}", "public Image getCrotchetDown();", "public void feedAndCut() throws IOException {\n feed();\n cut();\n writer.flush();\n }", "public int getImage();", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public BufferedImage getImage() { // operates every 10 ms\n\t\tif(isLife()) { // alive\n\t\t\treturn images[0]; // return images[0]\n\t\t}else if(isDead()) { // dead\n\t\t\tBufferedImage img = images[index++]; // start from the second image\n\t\t\tif(index==images.length) { // if at the last image\n\t\t\t\tstate = REMOVE; // change the state to REMOVE\n\t\t\t}\n\t\t\treturn img; // return explosion image\n\t\t}\n\t\treturn null; // return null when state removed\n\t\t/*\n\t\t * index=1\n\t\t * 10M img=images[1] index=2 return images[1]\n\t\t * 20M img=images[2] index=3 return images[2]\n\t\t * 30M img=images[3] index=4 return images[3]\n\t\t * 40M img=images[4] index=5(REMOVE) \t\treturn images[4]\n\t\t * 50M return null\n\t\t */\n\t}", "Buffer slice(int start, int length);", "List<List<Pixel>> filter(Image img, int multiplier, String operation);", "public BufferedImage image(){\n\t\treturn shotPic;\n\t}", "private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void cloneImage() {\n//\t\tColorModel cm = offimg.getColorModel();\n//\t\t boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();\n//\t\t WritableRaster raster = offimg.copyData(null);\n//\t\t offimg2 = new BufferedImage(cm, raster, isAlphaPremultiplied, null);\n//\t\t BufferedImage currentImage = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);\n\n\t//Fastest method to clone the image (DOES NOT WORK for MACOS)\n//\t\t int[] frame = ((DataBufferInt)offimg.getRaster().getDataBuffer()).getData();\n//\t\t int[] imgData = ((DataBufferInt)offimg2.getRaster().getDataBuffer()).getData();\n//\t\t System.arraycopy(frame,0,imgData,0,frame.length);\n\t}", "public interface CaptureImgService {\n\n String captureImg(HttpServletRequest re, String url, String size) throws IOException;\n}", "public void cut(int cutPoint) {\n if (cutPoint > deckOfCards.size()){\n return;\n }\n List<Card> cutList;\n cutList = new ArrayList<Card>(deckOfCards.subList(0,cutPoint));\n deckOfCards.subList(0,cutPoint).clear();\n deckOfCards.addAll(cutList);\n }", "@Test\n\tpublic void testCopy() {\n\t\tImagePlus.resetClipboard();\n\n\t\t// cut == true, roi null\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(true);\n\t\tassertNull(ImagePlus.getClipboard()); // cut requires a selection\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// cut == true, roi not an area\n\t\t//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\t//ip = new ImagePlus(\"Copier\",proc);\n\t\t//ImagePlus.resetClipboard();\n\t\t//assertNull(ip.getRoi());\n\t\t//ip.setRoi(new Line(1,1,2,2));\n\t\t//assertNotNull(ip.getRoi());\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//ip.copy(true);\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//assertNull(proc.getSnapshotPixels());\n\n\t\t// cut == true, roi an area\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tip.setRoi(new Rectangle(1,1,2,2));\n\t\tassertNotNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(true);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNotNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi null\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(false);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi not an area\n\t\t//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\t//ip = new ImagePlus(\"Copier\",proc);\n\t\t//ImagePlus.resetClipboard();\n\t\t//assertNull(ip.getRoi());\n\t\t//ip.setRoi(new Line(1,1,2,2));\n\t\t//assertNotNull(ip.getRoi());\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//ip.copy(false);\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//assertNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi an area\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tip.setRoi(new Rectangle(1,1,2,2));\n\t\tassertNotNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(false);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// reset state to keep from messing up other tests\n\t\tImagePlus.resetClipboard();\n\t}", "public BufferedImage crop(int row,int col,int width,int height){\n\t\treturn imageSheet.getSubimage((col*32)-32, (row*32)-32, width, height);\n\t}", "public BufferedImage readImage() throws IOException{\n\t\tFile read = new File(\"src/blue_plate.png\");\n\t\t//decodes a supplied File and returns a BufferedImage\n\t\tBufferedImage master = ImageIO.read(read);\n\t\treturn master;\n\t\t\n\t}", "public BufferedImage bufferedImage() {\n return buffered;\n }", "public void targetCrochet() {\n\t\twhile(true) {\n\t\t\tm_camera.read(m_originalImage);\n\t\t\ttry {\n\t\t\t\tThread.sleep(0);\n\t\t\t}\n\t\t\tcatch (java.lang.InterruptedException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (m_originalImage.cols() != 0)\n\t\t\t\t\tbreak;\n\t\t}\n\t\tm_srcImage = m_originalImage.clone();\n\t\tm_hsvImage = m_srcImage.clone();\n\t\tMat backupImage = m_originalImage.clone();\n\t\tImgproc.cvtColor(m_srcImage, m_hsvImage, Imgproc.COLOR_BGR2HSV);\n\t\t\n\t\t/*\n\t\t * Permet de faire le choix de l'intervale de couleur\n\t\t * \n\t\t * Param1 = source, Param2 = 3 valeur minimum HSV, Param3 = 3 valeur maximum HSV, Param 4 = destination\n\t\t *\n\t\t */\n\t\tCore.inRange(m_hsvImage, m_minHSV , m_maxHSV, m_hsvOverlay); // Valeur pour le tape\n\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.75, 0.75, 0.75), m_hsvOverlay);\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.3, 1, 1), m_hsvOverlay);\n\n\t\t//Nous allons utiliser le maintenant inutile hsvImage comme Mat de swap...\n\t\tImgproc.cvtColor(m_hsvOverlay, m_hsvImage, Imgproc.COLOR_GRAY2BGR);\n\t\t\n\t\t\n\t\t/*\n\t\t * findContour va trouver les contours des objets de l'image\n\t\t * \n\t\t */\n\t\tList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\tImgproc.findContours(m_hsvOverlay, contours, new Mat(), Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t//Core.multiply(srcImage, new ScacurrentFPSlar(0,0,0), srcImage);\n\n\t\t//Appliquer le masque...\n\n\t\t//Imgproc.cvtColor(m_hsvOverlay, m_hsvOverlay, Imgproc.COLOR_GRAY2BGR);\n\t\t//Core.bitwise_and(srcImage, m_hsvOverlay, srcImage);\n\n\t\tList<MatOfInt> convexhulls = new ArrayList<MatOfInt>(contours.size());\n\t\tList<MatOfPoint> targetHulls = new ArrayList<>();\n\t\tList<RotatedRect> rRects = new ArrayList<>();\n\t\tList<Double> orientations = new ArrayList<Double>();\n//\t\t//Dessiner les rectangles\n\t\tList<RotatedRect> selectedRect = new ArrayList<>();\n\t\tRotatedRect biggestRect = new RotatedRect();\n\t\tRotatedRect second = new RotatedRect();\n\t\tdouble biggestArea = 0;\n\t\tdouble secondBiggest = 0;\n\t\tPoint crochetPos = new Point();\n\t\tfor (int i = 0; i < contours.size(); i++)\n\t\t{\n//\t\t\t//Trier les contours qui ont une bounding box\n\t\t\tconvexhulls.add(i, new MatOfInt(6));\n\t\t\tdouble tempArea = Imgproc.contourArea(contours.get(i));\n\t\t\tif (tempArea > 100)\n\t\t\t{\n\t\t\t\tImgproc.convexHull(contours.get(i), convexhulls.get(i));\n\t\t\t\t//double contourSolidity = Imgproc.contourArea(contours.get(i))/Imgproc.contourArea(convexhulls.get(i));\n\t\t\t\t//Imgproc.drawContours(m_srcImage, contours, i, new Scalar(255, 255, 255), -1);\n\t\t\t\tMatOfPoint2f points = new MatOfPoint2f(contours.get(i).toArray());\n\t\t\t\tRotatedRect rRect = Imgproc.minAreaRect(points);\n\t\t\t\tMatOfPoint2f approx = new MatOfPoint2f();\n\t\t\t\tdouble epsilon = 0.012*Math.pow(Imgproc.arcLength(new MatOfPoint2f(contours.get(i).toArray()),true), 1.3);\n\t\t\t\tImgproc.approxPolyDP(new MatOfPoint2f(contours.get(i).toArray()),approx,epsilon,true);\n\t\t\t\tdouble convexArea = Imgproc.contourArea(approx);\n\t\t\t\tdouble ratio = rRect.size.area() / convexArea;\n\t\t\t\tImgproc.putText(m_srcImage, String.valueOf(ratio), new Point(30, i*70), 1, 1, new Scalar(255, 20, 20));\n\t\t\t\tImgproc.putText(m_srcImage, \"angle :\" + String.valueOf(Math.abs(rRect.angle%90)), rRect.center, 1, 1, new Scalar(155, 120, 20));\n\t\t\t\tMatOfPoint approxpoints = new MatOfPoint();\n\t\t\t\tapprox.convertTo(approxpoints, CvType.CV_32S);\n\t\t\t\tList<MatOfPoint> matofapprox = new ArrayList<>();\n\t\t\t\tmatofapprox.add(approxpoints);\n\t\t\t\tImgproc.drawContours(m_srcImage, matofapprox, 0, new Scalar(20, 25, 200), 5);\n\n\t\t\t\t//If its a tetragon, (ex, rectangle, trapezoid), add the convex hulls to the list\n\t\t\t\tif(approx.rows()==4) {\n\t\t\t\t\ttargetHulls.add(approxpoints);\n\t\t\t\t\trRects.add(rRect);\n\t\t\t\t}\n\t\t\t\tif (tempArea > biggestArea)\n\t\t\t\t{\n\t\t\t\t\tbiggestRect = rRect;\n\t\t\t\t\tbiggestArea = tempArea;\n\t\t\t\t}\n\t\t\t\tPoint[] vertices = new Point[4];\n\t\t\t\trRect.points(vertices);\n\t\t\t\tdouble Center_Y = rRect.center.y;\n\t\t\t\tdouble Center_X = rRect.center.x;\n\n\t\t\t\tScalar color = new Scalar(255, 0, 0);\n\n\t\t\t\tImgproc.line(m_srcImage, new Point(Center_X, Center_Y - 50), new Point(Center_X, Center_Y + 50), color, 2);\n\t\t\t\t//System.out.println(contourSolidity);\n\t\t\t}\n\t\t}\n\n\t\tArrayList<Tuple<Target, Target>> ListOfPairs = new ArrayList<>();\n\t\t//We need to make pairs of targets for further calculation\n\t\t//First we should sort the targetHulls by position along x\n\t\tArrayList<Target> ListOfTargets = new ArrayList<>();\n\t\tfor(int i = 0; i < targetHulls.size(); i++){\n\t\t\tListOfTargets.add(new Target(rRects.get(i), targetHulls.get(i)));\n\t\t}\n\n\t\tCollections.sort(ListOfTargets, new Comparator<Target>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Target o1, Target o2) {\n\t\t\t\treturn o1.rect.center.x < o2.rect.center.x ? -1 : o1.rect.center.x == o2.rect.center.x ? 0:1;\n\t\t\t}\n\t\t});\n\n\t\tBoolean skip = false;\n\t\tfor(int i = 0; i < ListOfTargets.size(); i++){\n\t\t\tdouble angle = Math.abs(ListOfTargets.get(i).rect.angle%90);\n\t\t\tif(skip){\n\t\t\t\tskip = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(angle > 60 && angle < 90 && i+1<targetHulls.size()) {\n\t\t\t\tListOfPairs.add(new Tuple(ListOfTargets.get(i), ListOfTargets.get(i+1)));\n\t\t\t\tskip = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tdouble highestDistance = 0;\n\t\tint chosenIndex = 0;\n\t\tfor(int i = 0; i<ListOfPairs.size(); i++){\n\t\t\tTuple<Target, Target> tempTarget = ListOfPairs.get(i);\n\t\t\t//Calculate mean point:\n\t\t\tPoint mean = new Point((tempTarget.x.rect.center.x + tempTarget.y.rect.center.x)/2, (tempTarget.x.rect.center.y + tempTarget.y.rect.center.y)/2);\n\t\t\t//Calcualte distance\n\t\t\tdouble distance = Math.sqrt(Math.pow((tempTarget.x.rect.center.x - tempTarget.y.rect.center.x),2) + Math.pow(tempTarget.x.rect.center.y = tempTarget.y.rect.center.y, 2));\n\t\t\t//calculate angle of mean point\n\t\t\tdouble degree = Math.atan(((mean.x-CENTRE_IMAGE_X)*CONV_PIXEL2CM)/FOV_LENGHT)*2;\n\t\t\tdegree = Math.toDegrees(degree);\n\t\t\tif(distance > highestDistance) {\n\t\t\t\tchosenIndex = i;\n\t\t\t\tm_degree = degree;\n\t\t\t\ttables.setAngle(degree, 0);\n\t\t\t\tSystem.out.println(degree);\n\t\t\t}\n\t\t\tMatOfPoint combinedPoints = new MatOfPoint();\n\t\t\tArrayList<Mat> concatList = new ArrayList<>();\n\t\t\tconcatList.add(tempTarget.x.hull);\n\t\t\tconcatList.add(tempTarget.y.hull);\n\t\t\tCore.vconcat(concatList, combinedPoints);\n\t\t\tArrayList<MatOfPoint> pointsList = new ArrayList<>();\n\t\t\tpointsList.add(combinedPoints);\n\t\t\tRect boundingRect = Imgproc.boundingRect(combinedPoints);\n\t\t\tPoint[] vertices = new Point[4];\n\t\t\tRotatedRect rRect = new RotatedRect();\n\t\t\trRect.angle = 0;\n\t\t\trRect.size = boundingRect.size();\n\t\t\trRect.center = new Point(boundingRect.x + (boundingRect.size().width/2), boundingRect.y + (boundingRect.size().height/2));\n\t\t\trRect.points(vertices);\n\t\t\tfor (int j = 0; j < 4; j++) //Dessiner un rectangle avec rotation\n\t\t\t{\n\t\t\t\tImgproc.line(m_srcImage, vertices[j], vertices[(j+1)%4], new Scalar(20,200,40), 5);\n\t\t\t}\n\t\t\tImgproc.drawMarker(m_srcImage, mean, new Scalar(40, 200, 200), Imgproc.MARKER_CROSS, 40, 1, Imgproc.LINE_AA);\n\t\t}\n\n\t\tCore.add(m_srcImage, backupImage, m_srcImage);\n\t}", "public RoeImage takePicture() \r\n {\r\n // return variable\r\n RoeImage result = new RoeImage();\r\n \r\n // take picture \r\n this.cam.read(this.frame);\r\n \r\n // update timestamp for image capturing\r\n this.timestamp = System.currentTimeMillis();\r\n \r\n // add picture to result\r\n result.SetImage(this.frame);\r\n \r\n // add timestamp of captured image\r\n result.setTimeStamp(this.timestamp);\r\n\r\n // the image captured with properties\r\n return result;\r\n }", "int getBurstNImages();", "public BufferedImage getSourceImage() { \r\n return m_source;\r\n }", "public BufferedImage[] frontwalk(){\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\tarr[1] = img.getSubimage(658, 139, 66, 64);\n\t\tarr[2] = img.getSubimage(587, 141, 70, 66);\n\t\tarr[3] = img.getSubimage(513, 144, 73, 66);\n\t\t\n\t\treturn arr;\n\t}" ]
[ "0.6077292", "0.5253156", "0.5171361", "0.5163985", "0.5123421", "0.51203823", "0.5102821", "0.5080528", "0.5078623", "0.5064445", "0.50554836", "0.5054495", "0.505112", "0.5050767", "0.5031699", "0.502978", "0.49562928", "0.49220756", "0.4921475", "0.49052113", "0.49049464", "0.49017274", "0.48840073", "0.48779854", "0.4865626", "0.48614797", "0.4852469", "0.48377922", "0.4791186", "0.4773658", "0.47644764", "0.4756793", "0.47501174", "0.47482744", "0.4742468", "0.47334918", "0.4726622", "0.47172856", "0.47141838", "0.4712796", "0.46955693", "0.46867624", "0.46862924", "0.46862924", "0.4673983", "0.46598986", "0.46536624", "0.46462274", "0.46462274", "0.46462274", "0.46445635", "0.46346593", "0.46325606", "0.46133146", "0.46122247", "0.4603305", "0.45863476", "0.45858684", "0.45851076", "0.458138", "0.45740005", "0.45616183", "0.4552921", "0.45520395", "0.45513576", "0.45484817", "0.454319", "0.45384333", "0.45381394", "0.4533665", "0.453127", "0.4531072", "0.45264906", "0.4517404", "0.4513303", "0.4512919", "0.45010415", "0.44894993", "0.44878548", "0.44860044", "0.4482693", "0.4482175", "0.44664505", "0.4466323", "0.44638124", "0.4462553", "0.44617918", "0.4454971", "0.4448369", "0.44476777", "0.44471377", "0.44470906", "0.44468492", "0.44456378", "0.44364583", "0.44342697", "0.4429736", "0.44252366", "0.44249552", "0.44248873" ]
0.5547872
1
Do processing cut image.
private TailoredImage doProcess(BufferedImage sourceImg) throws IOException { int width = sourceImg.getWidth(); int height = sourceImg.getHeight(); // Check maximum effective width height isTrue((width <= sourceMaxWidth && height <= sourceMaxHeight), String.format("Source image is too big, max limits: %d*%d", sourceMaxWidth, sourceMaxHeight)); isTrue((width >= sourceMinWidth && height >= sourceMinHeight), String.format("Source image is too small, min limits: %d*%d", sourceMinWidth, sourceMinHeight)); // 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType() BufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR); // 创建滑块图 BufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR); // 随机截取的坐标 int maxX0 = width - blockWidth - (circleR + circleOffset); int maxY0 = height - blockHeight; int blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左 int blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全 // Setup block borders position. initBorderPositions(blockX0, blockY0, blockWidth, blockHeight); // 绘制生成新图(图片大小是固定,位置是随机) drawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight); // 裁剪可用区 int cutX0 = blockX0; int cutY0 = Math.max((blockY0 - circleR - circleOffset), 0); int cutWidth = blockWidth + circleR + circleOffset; int cutHeight = blockHeight + circleR + circleOffset; blockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight); // Add watermark string. addWatermarkIfNecessary(primaryImg); // 输出图像数据 TailoredImage img = new TailoredImage(); // Primary image. ByteArrayOutputStream primaryData = new ByteArrayOutputStream(); ImageIO.write(primaryImg, "PNG", primaryData); img.setPrimaryImg(primaryData.toByteArray()); // Block image. ByteArrayOutputStream blockData = new ByteArrayOutputStream(); ImageIO.write(blockImg, "PNG", blockData); img.setBlockImg(blockData.toByteArray()); // Position img.setX(blockX0); img.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0); return img; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startCropImage() {\n }", "@Override\n\tpublic void run(ImageProcessor ip) {\n\t\twidth = ip.getWidth();\n\t\theight = ip.getHeight();\n\n\t\tbyte[] pixels = (byte[]) ip.getPixels();\n\t\tij.gui.Roi[] rois = new ij.gui.Roi[0];\n\t\tbyte[] output = trimSperm(pixels, width, height, rois);\n\n\t\tByteProcessor bp = new ByteProcessor(width, height, output);\n\t\tip.copyBits(bp, 0, 0, Blitter.COPY);\n\t\timage.show();\n\t\timage.updateAndDraw();\n\t}", "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "public void filterImage()\r\n {\r\n\t if (!isInverted && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {0.0f, 1.0f, 0.0f, -1.0f,brightnessLevel,1.0f,0.0f,0.0f,0.0f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp change = new ConvolveOp(kernel); \r\n\t cropedEdited = change.filter(cropedEdited, null);\r\n repaint();\r\n }", "@Override\n public void process(int lower, int upper) {\n ImgProcessing.sepia(lower, upper);\n }", "public void performCut() {\n \t\ttext.cut();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "private List<Bitmap> cutImage(Bitmap picture) {\n List<Bitmap> newPieces = new ArrayList<Bitmap>();\n int w = picture.getWidth();\n int h = picture.getHeight();\n int boxWidth = w / Board.NUM_COLS;\n int boxHeight = h / Board.NUM_ROWS;\n for (int i = 0; i < Board.NUM_ROWS; i++) {\n for (int j = 0; j < Board.NUM_ROWS; j++) {\n Bitmap pictureFragment = Bitmap.createBitmap(picture, j * boxWidth, i * boxHeight, boxWidth, boxHeight);\n newPieces.add(pictureFragment);\n }\n }\n return newPieces;\n }", "public void doCut()\n {\n bothToolClicked(map.selectedHexesIterator(), true);\n }", "@Override\r\n\t\tpublic void process(Mat image) {\n\t\t\tMat thresh = new Mat(), hierarchy = new Mat();\r\n\t\t\tList<MatOfPoint> points = new ArrayList<>();\r\n\t\t\tImgproc.threshold(image, thresh, 200, 255, Imgproc.THRESH_BINARY);\r\n\t\t\tImgproc.findContours(thresh, points, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE);\r\n//\t\t\tList<MatOfInt> ints = new ArrayList<>();\r\n//\t\t\tImgproc.convexHull(points.get(0), ints.get(0));\r\n\t\t\tImgproc.drawContours(image, points, 1, new Scalar(255, 0, 0));\r\n\t\t\tresult = image;\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void blurImage()\r\n {\r\n if (!isChanged && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {1/9f, 1/9f, 1/9f, 1/9f,1/9f,1/9f,1/9f,1/9f,1/9f,1/9f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp blur = new ConvolveOp(kernel); \r\n\t cropedEdited = blur.filter(cropedEdited, null);\r\n repaint();\r\n }", "public void runAlgorithm() {\r\n \r\n // Algorithm to determine the outer abdominal and inner subcutaneous boundary \r\n if (!initializedFlag) {\r\n init();\r\n }\r\n if (!initializedFlag) {\r\n return;\r\n }\r\n \r\n if (srcImage.getNDims() == 2) {\r\n calc2D();\r\n \r\n } else if (srcImage.getNDims() == 3) {\r\n calc25D();\r\n \r\n }\r\n\r\n ViewUserInterface.getReference().getMessageFrame().append(\"directory: \" +imageDir+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n \tViewJFrameImage frame = new ViewJFrameImage(srcImage);\r\n \tsrcImage.unregisterAllVOIs();\r\n \tsrcImage.registerVOI(abdomenVOI);\r\n \tsrcImage.registerVOI(subcutaneousVOI);\r\n \tframe.saveAllVOIsTo(imageDir);\r\n \t\r\n \tframe.dispose();\r\n \r\n }", "public void run(ImageProcessor ip) {\r\n\t\tImagePlus TheOriginal = WindowManager.getCurrentImage();\r\n\t\timp.unlock();\t//Unlock the image for processing\t\r\n\t\tfilename = imp.getTitle(); \t//Get file name\r\n\t\tfilename = filename.substring(0, filename.indexOf('.')); //Remove .tif from end\r\n\t\tFileInfo filedata = TheOriginal.getOriginalFileInfo();\r\n\t\ttheparentDirectory = filedata.directory; //Get File Path\r\n\t\t\r\n\t\t\r\n\t\tint numslices = TheOriginal.getNFrames(); //Get number of slices in image\r\n\t\tif (numslices == 1){\r\n\t\t\tnumslices = TheOriginal.getNSlices();\r\n\t\t}\r\n\t\t//Set Measurements\r\n\t\tIJ.run(\"Set Measurements...\", \"area centroid center bounding feret's redirect=None decimal=3\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Set Threshold levels and threshold original image using a size limit to exclude\r\n\t\t * doublets and cell fragments\r\n\t\t */\r\n\t\tIJ.run(\"Threshold...\",\"method='Default'\");\r\n\t\tnew WaitForUserDialog(\"Threshold\", \"Threshold Image to select whole yeast cell, then click OK.\").show();\r\n\t\tthreshMinLevel = TheOriginal.getProcessor().getMinThreshold(); \r\n\t\tthreshMaxLevel = TheOriginal.getProcessor().getMaxThreshold(); \r\n\t\tIJ.run(TheOriginal, \"Analyze Particles...\", \"size=1500-4500 pixel circularity=0.00-1.00 show=Nothing clear include add\");\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Loop for user to Select Cells to Measure. There\r\n\t\t * is a maximum limit of 50 cells per image.\t\t\r\n\t\t */\r\n\t\tString DoAnother = JOptionPane.showInputDialog(\"Do you want to select a cell y/n: \");\r\n\t\tint b = 1;\r\n\t\tint[] dupCellID = new int[50]; \r\n\t\twhile(DoAnother.equals(\"y\")){\r\n\t\t\tnew WaitForUserDialog(\"Selection\", \"Select Cell.\").show();\r\n\t\t\tImagePlus dupCell = new Duplicator().run(TheOriginal, 1, numslices);\r\n\t\t\tdupCell.show();\r\n\t\t\tdupCellID[b]=dupCell.getID();\r\n\t\t\tDoAnother = JOptionPane.showInputDialog(\"Do you want to select a cell y/n: \");\r\n\t\t\tb = b + 1;\r\n\t\t}\r\n\t\t\r\n\t\tCalculateAngles(dupCellID, b); //Method to orientate cells along long axis\r\n\t\t\r\n\t\tMeasureMovement(dupCellID, numslices, b); //Measure the selected cells\r\n\t\t\r\n\t\tnew WaitForUserDialog(\"Finished\", \"Plugin Has Finished.\").show();\r\n\t\tTheOriginal.changes = false;\t\r\n\t\tTheOriginal.close();\r\n\t}", "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi); /* Image Negative */\n return;\n\n case 2:\n biFiltered = RescaleImage(bi);\n return;\n\n case 3:\n biFiltered = ShiftImage(bi);\n return;\n\n case 4:\n biFiltered = RescaleShiftImage(bi);\n return;\n\n case 5:\n biFiltered = Add(bi, bi1);\n return;\n\n case 6:\n biFiltered = Subtract(bi, bi1);\n return;\n\n case 7:\n biFiltered = Multiply(bi, bi1);\n return;\n\n case 8:\n biFiltered = Divide(bi, bi1);\n return;\n\n case 9:\n biFiltered = NOT(bi);\n return;\n\n case 10:\n biFiltered = AND(bi, bi1);\n return;\n\n case 11:\n biFiltered = OR(bi, bi1);\n return;\n\n case 12:\n biFiltered = XOR(bi, bi1);\n return;\n\n case 13:\n biFiltered = ROI(bi);\n return;\n\n case 14:\n biFiltered = Negative_Linear(bi);\n return;\n\n case 15:\n biFiltered= Logarithmic_function(bi);\n return;\n\n case 16:\n biFiltered = Power_Law(bi);\n return;\n\n case 17:\n biFiltered = LUT(bi);\n return;\n\n case 18:\n biFiltered = Bit_planeSlicing(bi);\n return;\n\n case 19:\n biFiltered = Histogram(bi1,bi2);\n return;\n\n case 20:\n biFiltered = HistogramEqualisation(bi,bi3);\n return;\n\n case 21:\n biFiltered = Averaging(bi1);\n return;\n\n case 22:\n biFiltered = WeightedAveraging(bi1);\n return;\n\n case 23:\n biFiltered = fourNeighbourLaplacian(bi1);\n return;\n\n case 24:\n biFiltered= eightNeighbourLaplacian(bi1);\n return;\n\n case 25:\n biFiltered = fourNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 26:\n biFiltered = eightNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 27:\n biFiltered = Roberts(bi1);\n return;\n\n case 28:\n biFiltered = SobelX(bi1);\n return;\n\n case 29:\n biFiltered = SobelY(bi1);\n return;\n\n case 30:\n biFiltered = Gaussian(bi1);\n return;\n\n case 31:\n biFiltered = LoG (bi1);\n return;\n\n case 32:\n biFiltered = saltnpepper(bi4);\n return;\n\n case 33:\n biFiltered = minFiltering(bi4);\n return;\n\n case 34:\n biFiltered = maxFiltering(bi4);\n return;\n\n case 35:\n biFiltered = maidpointFiltering(bi4);\n return;\n\n case 36:\n biFiltered = medianFiltering(bi4);\n return;\n\n case 37:\n biFiltered = simpleThresholding(bi5);\n return;\n\n case 38:\n biFiltered = automatedThresholding(bi6);\n return;\n\n case 39:\n biFiltered = adaptiveThresholding(bi7);\n return;\n }\n }", "void cut(int cardPosition);", "public void cut() {\n\t\tcmd = new CutCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "void process(Mat image);", "public void onCutScene() {\n\t\tAnimation src = getSourceAnimation();\n\t\tif( src != null ) {\n\t\t\tcutScene(src, vm.cutInfo.getStart(), vm.cutInfo.getEnd(), buildUniqueName(vm.scenes));\n\t\t\tlog.info(\"cutting out scene from {}\", vm.cutInfo);\n\t\t\tvm.cutInfo.reset();\n\t\t\tvm.setMarkStartEnabled(true);\n\t\t}\n\t\t\n\t}", "public void processImage() {\n\n\n ++timestamp;\n final long currTimestamp = timestamp;\n byte[] originalLuminance = getLuminance();\n tracker.onFrame(\n previewWidth,\n previewHeight,\n getLuminanceStride(),\n sensorOrientation,\n originalLuminance,\n timestamp);\n trackingOverlay.postInvalidate();\n\n // No mutex needed as this method is not reentrant.\n if (computingDetection) {\n readyForNextImage();\n return;\n }\n computingDetection = true;\n LOGGER.i(\"Preparing image \" + currTimestamp + \" for detection in bg thread.\");\n\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n\n if (luminanceCopy == null) {\n luminanceCopy = new byte[originalLuminance.length];\n }\n System.arraycopy(originalLuminance, 0, luminanceCopy, 0, originalLuminance.length);\n readyForNextImage();\n\n final Canvas canvas = new Canvas(croppedBitmap);\n canvas.drawBitmap(rgbFrameBitmap, frameToCropTransform, null);\n // For examining the actual TF input.\n if (SAVE_PREVIEW_BITMAP) {\n ImageUtils.saveBitmap(croppedBitmap);\n }\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n LOGGER.i(\"Running detection on image \" + currTimestamp);\n final long startTime = SystemClock.uptimeMillis();\n final List<Classifier.Recognition> results = detector.recognizeImage(croppedBitmap);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n\n cropCopyBitmap = Bitmap.createBitmap(croppedBitmap);\n final Canvas canvas = new Canvas(cropCopyBitmap);\n final Paint paint = new Paint();\n paint.setColor(Color.RED);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2.0f);\n\n float minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n switch (MODE) {\n case TF_OD_API:\n minimumConfidence = MINIMUM_CONFIDENCE_TF_OD_API;\n break;\n }\n\n final List<Classifier.Recognition> mappedRecognitions =\n new LinkedList<Classifier.Recognition>();\n //boolean unknown = false, cervix = false, os = false;\n\n for (final Classifier.Recognition result : results) {\n final RectF location = result.getLocation();\n if (location != null && result.getConfidence() >= minimumConfidence) {\n\n //if (result.getTitle().equals(\"unknown\") && !unknown) {\n // unknown = true;\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n\n /*} else if (result.getTitle().equals(\"Cervix\") && !cervix) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n cervix = true;\n\n } else if (result.getTitle().equals(\"Os\") && !os) {\n canvas.drawRect(location, paint);\n cropToFrameTransform.mapRect(location);\n result.setLocation(location);\n mappedRecognitions.add(result);\n os = true;\n }*/\n\n\n }\n }\n\n tracker.trackResults(mappedRecognitions, luminanceCopy, currTimestamp);\n trackingOverlay.postInvalidate();\n\n\n computingDetection = false;\n\n }\n });\n\n\n }", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentSubcutaneousFat2D() {\r\n \r\n // a buffer to store a slice from the source Image\r\n short[] srcBuffer;\r\n try {\r\n srcBuffer = new short [sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Can NOT allocate srcBuffer\");\r\n return;\r\n }\r\n \r\n // get the data from the segmented abdomenImage and the srcImage\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcBuffer);\r\n } catch (IOException ex) {\r\n// System.err.println(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n return;\r\n }\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n\r\n // Use the CM, the abdomenImage, and the srcImage to define points on the\r\n // abdomen and visceral VOI's\r\n ArrayList<Integer> xArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> xArrVis = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrVis = new ArrayList<Integer>();\r\n findVOIs(centerOfMass, xArrAbdom, yArrAbdom, srcBuffer, xArrVis, yArrVis);\r\n \r\n int[] x1 = new int[xArrAbdom.size()];\r\n int[] y1 = new int[xArrAbdom.size()];\r\n int[] z1 = new int[xArrAbdom.size()];\r\n for(int idx = 0; idx < xArrAbdom.size(); idx++) {\r\n x1[idx] = xArrAbdom.get(idx);\r\n y1[idx] = yArrAbdom.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n \r\n\r\n for(int idx = 0; idx < xArrVis.size(); idx++) {\r\n x1[idx] = xArrVis.get(idx);\r\n y1[idx] = yArrVis.get(idx);\r\n }\r\n\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(x1, y1, z1);\r\n \r\n/*\r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n sliceBuffer[ycm * xDim + xcm] = 20;\r\n for (int idx = 0; idx < xArr.size(); idx++) {\r\n sliceBuffer[yArr.get(idx) * xDim + xArr.get(idx)] = 20;\r\n sliceBuffer[yArrVis.get(idx) * xDim + xArrVis.get(idx)] = 30;\r\n }\r\n // save the sliceBuffer into the abdomenImage\r\n try {\r\n abdomenImage.importData(0, sliceBuffer, false);\r\n } catch (IOException ex) {\r\n System.err.println(\"segmentThighTissue(): Error importing data\");\r\n }\r\n*/\r\n// ShowImage(srcImage, \"Segmented Abdomen\");\r\n\r\n\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Abdomen VOI points:\");\r\n// for (int idx = 0; idx < xArr.size(); idx++) {\r\n// ViewUserInterface.getReference().getMessageFrame().append(xArr.get(idx) +\" \" + yArr.get(idx));\r\n// }\r\n\r\n }", "private void postProcessing() {\n // create the element for erode\n Mat erodeElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_ERODE + 1,2 * KERNELSIZE_ERODE + 1 ),\n new Point(KERNELSIZE_ERODE, KERNELSIZE_ERODE));\n // create the element for dialte\n Mat dialElement = Imgproc.getStructuringElement(Imgproc.CV_SHAPE_RECT,\n new Size(2 * KERNELSIZE_DILATE + 1,2 * KERNELSIZE_DILATE + 1 ),\n new Point(KERNELSIZE_DILATE, KERNELSIZE_DILATE));\n\n // erode image to remove small noise\n Imgproc.erode(binary, binary, erodeElement);\n\n // dilate the image DILATETIMES to increase what we see\n for (int i = 0; i < DILATETIMES; i++)\n Imgproc.dilate(binary, binary, dialElement);\n }", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testCopy() {\n\t\tImagePlus.resetClipboard();\n\n\t\t// cut == true, roi null\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(true);\n\t\tassertNull(ImagePlus.getClipboard()); // cut requires a selection\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// cut == true, roi not an area\n\t\t//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\t//ip = new ImagePlus(\"Copier\",proc);\n\t\t//ImagePlus.resetClipboard();\n\t\t//assertNull(ip.getRoi());\n\t\t//ip.setRoi(new Line(1,1,2,2));\n\t\t//assertNotNull(ip.getRoi());\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//ip.copy(true);\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//assertNull(proc.getSnapshotPixels());\n\n\t\t// cut == true, roi an area\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tip.setRoi(new Rectangle(1,1,2,2));\n\t\tassertNotNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(true);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNotNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi null\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(false);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi not an area\n\t\t//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\t//ip = new ImagePlus(\"Copier\",proc);\n\t\t//ImagePlus.resetClipboard();\n\t\t//assertNull(ip.getRoi());\n\t\t//ip.setRoi(new Line(1,1,2,2));\n\t\t//assertNotNull(ip.getRoi());\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//ip.copy(false);\n\t\t//assertNull(ImagePlus.getClipboard());\n\t\t//assertNull(proc.getSnapshotPixels());\n\n\t\t// cut == false, roi an area\n\t\tproc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});\n\t\tip = new ImagePlus(\"Copier\",proc);\n\t\tImagePlus.resetClipboard();\n\t\tassertNull(ip.getRoi());\n\t\tip.setRoi(new Rectangle(1,1,2,2));\n\t\tassertNotNull(ip.getRoi());\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tip.copy(false);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertNull(proc.getSnapshotPixels());\n\n\t\t// reset state to keep from messing up other tests\n\t\tImagePlus.resetClipboard();\n\t}", "public void execute()\r\n/* 31: */ throws GlobalException\r\n/* 32: */ {\r\n/* 33: 37 */ if (this.input.getCDim() != 1) {\r\n/* 34: 37 */ throw new GlobalException(\"Sorry, only mono-channel images for now...\");\r\n/* 35: */ }\r\n/* 36: 39 */ this.xdim = this.input.getXDim();\r\n/* 37: 40 */ this.ydim = this.input.getYDim();\r\n/* 38: */ \r\n/* 39: 42 */ this.output = new ArrayList();\r\n/* 40: */ \r\n/* 41: 44 */ this.temp = new BooleanImage(this.input, false);\r\n/* 42: 45 */ this.temp.fill(false);\r\n/* 43: */ \r\n/* 44: 47 */ this.temp2 = new BooleanImage(this.input, false);\r\n/* 45: 48 */ this.temp2.fill(false);\r\n/* 46: */ \r\n/* 47: 50 */ this.s = new Stack();\r\n/* 48: */ \r\n/* 49: 52 */ this.list2 = new ArrayList();\r\n/* 50: */ \r\n/* 51: 54 */ this.output = extractCC(this.seed, this.input);\r\n/* 52: */ }", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "private void filter(BufferedImageOp op)\n { \n if (image == null) return;\n BufferedImage filteredImage \n = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());\n op.filter(image, filteredImage);\n image = filteredImage;\n repaint();\n }", "@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}", "protected abstract void clip();", "public void logCut(Dataset ds){\n dataProcessToolPanel.logCut(dataset);\n }", "public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}", "public abstract BufferedImage applyTo(BufferedImage image);", "void doCut(boolean surface, boolean building) {\r\n\t\tdoCopy(surface, building);\r\n\t\tif (surface && building) {\r\n\t\t\tdoDeleteBoth();\r\n\t\t} else\r\n\t\tif (surface) {\r\n\t\t\tdoDeleteSurface();\r\n\t\t} else\r\n\t\tif (building) {\r\n\t\t\tdoDeleteBuilding();\r\n\t\t}\r\n\t}", "public native MagickImage trimImage() throws MagickException;", "@Override\n\t\tpublic void run() {\n\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread2);\n\t\t\telse {\n\t\t\t\t// 执行预处理:简单线性灰度变换\n\t\t\t\tbm = preProcess.linearGray(bm);\n\t\t\t\t// 装载\n\t\t\t\tmyImageView2.setImageBitmap(bm);\n\t\t\t\t// 设置进度条\n\t\t\t\tbar.setProgress(100 / N * 3);\n\t\t\t\tupdateBarHandler.post(updateThread3);\n\t\t\t}\n\t\t}", "private void enhanceImage(){\n }", "private void processImage(Mat image) {\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\tif (processingForPeg)\r\n\t\t{\r\n\t\t\tTargetInformation targetInfo;\r\n\t\t\tMat cleanedImage = getHSVThreshold(image);\r\n\t\t\ttargetInfo = findPeg(cleanedImage);\r\n\t\t\tinfoList.add(targetInfo);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tframesToProcess = 100; // So that the processing is continuous until found\r\n\t\t\tlookingAtGear = lookForGear(image);\r\n\t\t}\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\treturn;\r\n }", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void handle(ActionEvent e) {\n Bounds selectionBounds = rubberBandSelection.getBounds();\n\n // show bounds info\n System.out.println( \"Selected area: \" + selectionBounds);\n\n // crop the image\n crop( selectionBounds);\n\n }", "private Operation filterOperation(Operation op) {\n\t\t\tif (op instanceof ImageOperation) {\n\t\t\t\tImage i = ((ImageOperation) op).getImage();\n\t\t\t\tDimension d = ImageSize.get(i);\n\t\t\t\tBufferedImage bi = new BufferedImage(d.width, d.height,\n\t\t\t\t\t\tBufferedImage.TYPE_INT_ARGB);\n\t\t\t\tGraphics2D g3 = bi.createGraphics();\n\t\t\t\tg3.drawImage(i, 0, 0, null);\n\t\t\t\tg3.dispose();\n\t\t\t\t((ImageOperation) op).setImage(bi);\n\t\t\t}\n\t\t\treturn op;\n\t\t}", "public void resetProcessed() {\r\n for (int x = 0; x < image.getWidth(); x++) {\r\n for (int y = 0; y < image.getHeight(); y++) {\r\n maskDone[x][y] = false;\r\n }\r\n }\r\n }", "public void divideImage() {\n\n int chunkWidth = 70;\n int chunkHeight = 70;\n int count = 0;\n imgs = new BufferedImage[100];\n for (int x = 0; x < 10; x++)\n for (int y = 0; y < 10; y++) {\n\n try{\n\n imgs[count] = new BufferedImage(chunkWidth, chunkHeight, img.getType());\n Graphics2D gr = imgs[count++].createGraphics();\n gr.drawImage(img, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n gr.dispose();\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }\n\n }", "public static BufferedImage autoCrop(BufferedImage source, float threshold) {\n\n int rgb;\n int backlo;\n int backhi;\n int width = source.getWidth();\n int height = source.getHeight();\n int startx = width;\n int starty = height;\n int destx = 0;\n int desty = 0;\n\n rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);\n backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backlo = (int) (backlo - (backlo * threshold));\n if (backlo < 0) {\n backlo = 0;\n }\n backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backhi = (int) (backhi + (backhi * threshold));\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n rgb = source.getRGB(x, y);\n int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n if (sum < backlo || sum > backhi) {\n if (y < starty) {\n starty = y;\n }\n if (x < startx) {\n startx = x;\n }\n if (y > desty) {\n desty = y;\n }\n if (x > destx) {\n destx = x;\n }\n }\n }\n }\n System.out.println(\"crop: [\"\n + startx + \", \" + starty + \", \"\n + destx + \", \" + desty + \"]\");\n\n BufferedImage result = new BufferedImage(\n destx - startx, desty - starty,\n source.getType());\n result.getGraphics().drawImage(\n Toolkit.getDefaultToolkit().createImage(\n new FilteredImageSource(source.getSource(),\n new CropImageFilter(startx, starty, destx, desty))),\n 0, 0, null);\n return result;\n }", "static private Fits common_crop(ImageHDU h, Header old_header,\n int xCenter, int yCenter, int xSize, int ySize)\n throws FitsException, IOException {\n if (SUTDebug.isDebug()) {\n System.out.println(\"entering common_crop: xCenter = \" + xCenter +\n \" yCenter = \" + yCenter + \" xSize = \" + xSize + \" ySize = \" + ySize);\n }\n\n\n\t /* first, do the header */\n Header newHeader = getNewHeader(h,old_header, xCenter, yCenter, xSize, ySize);\n int newNaxis1 = newHeader.getIntValue(\"NAXIS1\");\n int newNaxis2 = newHeader.getIntValue(\"NAXIS2\");\n\n\t /* now do the pixels */\n int[] tileOffset;\n int[] tileSize;\n int naxis3 = 0;\n ImageTiler tiler = h.getTiler();\n int naxis = old_header.getIntValue(\"NAXIS\");\n int minX = xCenter - xSize / 2;\n int maxX = xCenter + xSize / 2;\n int minY = yCenter - ySize / 2;\n int maxY = yCenter + ySize / 2;\n\n if (naxis == 2) {\n tileOffset = new int[]{minY, minX};\n tileSize = new int[]{maxY - minY, maxX - minX};\n\n } else if (naxis == 3) {\n naxis3 = newHeader.getIntValue(\"NAXIS3\");\n tileOffset = new int[]{0, minY, minX};\n tileSize = new int[]{naxis3, maxY - minY, maxX - minX};\n } else {\n throw new FitsException(\n \"Cannot crop images with NAXIS other than 2 or 3\");\n }\n\n int dims2[] = new int[]{newNaxis1, newNaxis2};\n int dims3[] = new int[]{newNaxis1, newNaxis2, naxis3};\n\n ImageData neImageData = null;\n //convert the data to float\n float[] objm32 = (float[]) ArrayFuncs.convertArray(tiler.getTile(tileOffset, tileSize), Float.TYPE, true);\n if (naxis == 2) {\n // make 2dim\n float[][] float2d = (float[][]) ArrayFuncs.curl(objm32, dims2);\n //convert back to original type\n neImageData = new ImageData(ArrayFuncs.convertArray(float2d, FitsRead.getDataType(newHeader.getIntValue(\"BITPIX\")), true) );\n } else {\n\n // make 3dim\n float[][][] float3d = (float[][][]) ArrayFuncs.curl(objm32, dims3);\n neImageData = new ImageData(ArrayFuncs.convertArray(float3d, FitsRead.getDataType(newHeader.getIntValue(\"BITPIX\")), true) );\n }\n\n ImageHDU newImageHDU = new ImageHDU(newHeader, neImageData);\n Fits outFits = new Fits();\n outFits.addHDU(newImageHDU);\n return (outFits);\n }", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread3);\n\t\t\telse {\n\t\t\t\t// 执行预处理:中值滤波\n\t\t\t\tbm = preProcess.medfilter(bm);\n\t\t\t\t// 增加对比度\n\t\t\t\tbm = preProcess.incrContrast(bm);\n\t\t\t\tmyImageView3.setImageBitmap(bm);\n\t\t\t\t// 设置进度条\n\t\t\t\tbar.setProgress(100 / N * 4);\n\t\t\t\tupdateBarHandler.post(updateThread4);\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tdimensionclip4.start();\r\n\t\t\t\t\t\t\t\t}", "public void cut(int cutPoint) {\n if (cutPoint > deckOfCards.size()){\n return;\n }\n List<Card> cutList;\n cutList = new ArrayList<Card>(deckOfCards.subList(0,cutPoint));\n deckOfCards.subList(0,cutPoint).clear();\n deckOfCards.addAll(cutList);\n }", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public void processing();", "public int invokeCutMode()\n{\n \n return(0);\n\n}", "public void process(T image , InputSanityCheck ISC, DerivativeHelperFunctions DHF, ConvolveImageNoBorder CINB, ConvolveJustBorder_General CJBG, GradientSobel_Outer GSO, GradientSobel_UnrolledOuter GSUO,\n\t\t\t\t\t\tGImageMiscOps GIMO, ImageMiscOps IMO, ConvolveNormalizedNaive CNN, ConvolveNormalized_JustBorder CNJB, ConvolveNormalized CN,\n\t\t\t\t\t\tGBlurImageOps GBIO, GeneralizedImageOps GIO, BlurImageOps BIO, ConvolveImageMean CIM, FactoryKernelGaussian FKG, ImplMedianHistogramInner IMHI,\n\t\t\t\t\t\tImplMedianSortEdgeNaive IMSEN, ImplMedianSortNaive IMSN, ImplConvolveMean ICM, GThresholdImageOps GTIO, GImageStatistics GIS, ImageStatistics IS,\n\t\t\t\t\t\tThresholdImageOps TIO, FactoryImageBorderAlgs FIBA, ImageBorderValue IBV, FastHessianFeatureDetector FHFD, FactoryImageBorder FIB, FactoryBlurFilter FBF,\n\t\t\t\t\t\tConvertImage CI, UtilWavelet UW, ImageType IT, FactoryInterpolation FI, FactoryDistort FDs);", "public void compose() {\n\t\tg2d.setBackground(bgColor);\n\t\tg2d.clearRect(0, 0, width, height);\n\t\tboolean drawed=g2d.drawImage(gridImg, gridImgX, gridImgY, null);\n\t\tdrawed=g2d.drawImage(colorCodeImg, colorCodeImgX, colorCodeImgY, null);\n\t\tdrawed=g2d.drawImage(celestialObjectTextImg, celestialObjectTextImgX, celestialObjectTextImgY, null);\n\t\tdrawed=g2d.drawImage(observationTextImg, observationTextImgX, observationTextImgY, null);\n\t\tdrawed=g2d.drawImage(maserImg, maserImgX, maserImgY, null);\n\t}", "public void startProcessingImage() {\n if (loadBitmap()) {\n this.mImageProcessHelper.start(this.mBitmap);\n }\n }", "@Override\n public void run(){\n store.phaser.arriveAndAwaitAdvance();\n //System.out.println(Thread.currentThread().getName() + \" is started.\");\n for(int y = startLine; y < endLine; y++){\n for(int x = 0; x < store.image.getWidth(); x++){\n Color c = new Color(store.image.getRGB(x, y));\n int grayScale = (int) ((c.getRed() * 0.299) + (c.getGreen() * 0.587) + (c.getBlue() * 0.114));\n Color newColor = new Color(grayScale, grayScale, grayScale);\n store.image.setRGB(x, y, newColor.getRGB());\n }\n }\n store.phaser.arriveAndAwaitAdvance();\n }", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "private static void copyArea(BufferedImage image, int x, int y, int width, int height, int dx, int dy) {\n/* 158 */ Graphics2D g = (Graphics2D)image.getGraphics();\n/* */ \n/* 160 */ g.drawImage(image.getSubimage(x, y, width, height), x + dx, y + dy, null);\n/* */ }", "public void cut(E data) {\n first = new Noder<>(data, first);\n }", "public native MagickImage chopImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "public void feedAndCut() throws IOException {\n feed();\n cut();\n writer.flush();\n }", "public void onTextCut()\n\t{\n\t}", "@Override\n\tpublic void run() {\n\t\tspacing = checkDimensions(spacingString, input.numDimensions(), \"Spacings\");\n\t\tscales = Arrays.stream(scaleString.split(regex)).mapToInt(Integer::parseInt)\n\t\t\t.toArray();\n\t\tDimensions resultDims = Views.addDimension(input, 0, scales.length - 1);\n\t\t// create output image, potentially-filtered input\n\t\tresult = opService.create().img(resultDims, new FloatType());\n\n\t\tfor (int s = 0; s < scales.length; s++) {\n\t\t\t// Determine whether or not the user would like to apply the gaussian\n\t\t\t// beforehand and do it.\n\t\t\tRandomAccessibleInterval<T> vesselnessInput = doGauss ? opService.filter()\n\t\t\t\t.gauss(input, scales[s]) : input;\n\t\t\tIntervalView<FloatType> scaleResult = Views.hyperSlice(result, result\n\t\t\t\t.numDimensions() - 1, s);\n\t\t\topService.filter().frangiVesselness(scaleResult, vesselnessInput, spacing,\n\t\t\t\tscales[s]);\n\t\t}\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tif (cancel == true)\n\t\t\t\tupdateBarHandler.removeCallbacks(updateThread4);\n\t\t\telse {\n\t\t\t\t// 提取边缘(这里有问题:follow方法采用递归形式,运行时造成堆栈溢出,程序异常终止)\n\t\t\t\t// 解决:让递归执行特定次数,如110次(或者减小图像的尺寸也可以,减少图像尺寸就减少了像素数目) --by mike\n\t\t\t\t// 参数方面,试了两幅图不同选择对比,低阈值10比较好;高阈值35还算不错\n\t\t\t\t// 参数:经过无数次照自己,得到的比较好的阈值\n\t\t\t\t// 阈值对于不同环境效果还是相差很多。。。。。。\n\t\t\t\tbm = CannyEdgDetect.canny(bm, 5, 40);\n\n\t\t\t\t// 设置进度条\n\t\t\t\tbar.setProgress(100 / N * 5);\n\t\t\t\tupdateBarHandler.post(updateThread5);\n\t\t\t}\n\t\t}", "protected void execute ()\n\t{\n\t\t//Take and process new image every .5 seconds\n\t\tif (System.currentTimeMillis() % 500 == 0)\n\t\t{\n\t\t\tSubsystems.goalVision.processNewImage();\n\t\t}\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() < X_OFFSET\n\t\t - DEADBAND)\n\t\t//the goal is to the left\n\t\t{\n\t\t\t//turn left\n\t\t\tSubsystems.transmission.drive(motorRatio, -motorRatio);\n\t\t}\n\t\t//the goal is to the right\n\t\telse if (Subsystems.goalVision.getProportionalGoalX() > X_OFFSET\n\t\t + DEADBAND)\n\t\t{\n\t\t\t//turn right\n\t\t\tSubsystems.transmission.drive(-motorRatio, motorRatio);\n\t\t}\n\t}", "public void run(String[] args) {\n if (args.length == 0){\n System.out.println(\"Not enough parameters!\");\n System.out.println(\"Program Arguments: [image_path]\");\n System.exit(-1);\n }\n\n // Load the image\n Mat src = Imgcodecs.imread(args[0]);\n\n // Check if image is loaded fine\n if( src.empty() ) {\n System.out.println(\"Error opening image: \" + args[0]);\n System.exit(-1);\n }\n\n // Show source image\n HighGui.imshow(\"src\", src);\n //! [load_image]\n\n //! [gray]\n // Transform source image to gray if it is not already\n Mat gray = new Mat();\n\n if (src.channels() == 3)\n {\n Imgproc.cvtColor(src, gray, Imgproc.COLOR_BGR2GRAY);\n }\n else\n {\n gray = src;\n }\n\n // Show gray image\n showWaitDestroy(\"gray\" , gray);\n //! [gray]\n\n //! [bin]\n // Apply adaptiveThreshold at the bitwise_not of gray\n Mat bw = new Mat();\n Core.bitwise_not(gray, gray);\n Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 15, -2);\n\n // Show binary image\n showWaitDestroy(\"binary\" , bw);\n //! [bin]\n\n //! [init]\n // Create the images that will use to extract the horizontal and vertical lines\n Mat horizontal = bw.clone();\n Mat vertical = bw.clone();\n //! [init]\n\n //! [horiz]\n // Specify size on horizontal axis\n int horizontal_size = horizontal.cols() / 30;\n\n // Create structure element for extracting horizontal lines through morphology operations\n Mat horizontalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size(horizontal_size,1));\n\n // Apply morphology operations\n Imgproc.erode(horizontal, horizontal, horizontalStructure);\n Imgproc.dilate(horizontal, horizontal, horizontalStructure);\n\n // Show extracted horizontal lines\n showWaitDestroy(\"horizontal\" , horizontal);\n //! [horiz]\n\n //! [vert]\n // Specify size on vertical axis\n int vertical_size = vertical.rows() / 30;\n\n // Create structure element for extracting vertical lines through morphology operations\n Mat verticalStructure = Imgproc.getStructuringElement(Imgproc.MORPH_RECT, new Size( 1,vertical_size));\n\n // Apply morphology operations\n Imgproc.erode(vertical, vertical, verticalStructure);\n Imgproc.dilate(vertical, vertical, verticalStructure);\n\n // Show extracted vertical lines\n showWaitDestroy(\"vertical\", vertical);\n //! [vert]\n\n //! [smooth]\n // Inverse vertical image\n Core.bitwise_not(vertical, vertical);\n showWaitDestroy(\"vertical_bit\" , vertical);\n\n // Extract edges and smooth image according to the logic\n // 1. extract edges\n // 2. dilate(edges)\n // 3. src.copyTo(smooth)\n // 4. blur smooth img\n // 5. smooth.copyTo(src, edges)\n\n // Step 1\n Mat edges = new Mat();\n Imgproc.adaptiveThreshold(vertical, edges, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 3, -2);\n showWaitDestroy(\"edges\", edges);\n\n // Step 2\n Mat kernel = Mat.ones(2, 2, CvType.CV_8UC1);\n Imgproc.dilate(edges, edges, kernel);\n showWaitDestroy(\"dilate\", edges);\n\n // Step 3\n Mat smooth = new Mat();\n vertical.copyTo(smooth);\n\n // Step 4\n Imgproc.blur(smooth, smooth, new Size(2, 2));\n\n // Step 5\n smooth.copyTo(vertical, edges);\n\n // Show final result\n showWaitDestroy(\"smooth - final\", vertical);\n //! [smooth]\n\n System.exit(0);\n }", "public Vector<line> detectLines(Boolean doBlobExtract) {\n\n BufferedImage bin = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = cloneImage(untouchedImage);\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, 1000));\n BufferedImage copy = cloneImage(untouchedImage);\n copy = ImageHelpers.scale(copy, maxHeight);\n // PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = cloneImage(untouchedImage);\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, \"\", lines);\n FileWriter writer = null;\n\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n Vector<line> allLines = new Vector();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n //d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n allLines.add(r);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n// r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n return allLines;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private void manageCrops() {\r\n// System.out.println(\"\\nThis is manage the crops option\");\r\n CropView.runCropsView();\r\n }", "@Override\n public final void run( IProgressMonitor monitor ) throws SOProcessException {\n\n\n // initalization\n init(monitor); \n\n final String msg = MessageFormat.format(Messages.ClipProcess_clipping_with, \n layerToClip.getName(),\n clippingLayer.getName());\n getMonitor().subTask(msg);\n getMonitor().worked(1);\n int count = computeCount();\n getMonitor().beginTask(msg, count);\n\n // gets the crs of layers and map\n final CoordinateReferenceSystem clippingCrs = LayerUtil.getCrs(clippingLayer);\n final CoordinateReferenceSystem mapCrs = MapUtil.getCRS(clippingLayer.getMap());\n final CoordinateReferenceSystem featureToClipCrs = LayerUtil.getCrs(layerToClip);\n\n FeatureCollection<SimpleFeatureType, SimpleFeature> featuresToClip = this.featuresToClip;\n // save the name of geometry attribute\n\n FeatureCollection<SimpleFeatureType, SimpleFeature> clipping = this.clippingFeatures;\n FeatureIterator<SimpleFeature> iter = null;\n try {\n iter = clipping.features();\n while( iter.hasNext() ) {\n\n checkCancelation();\n\n SimpleFeature clippingFeature = iter.next();\n\n clipFeatureCollectionUsingClippingFeature(\n featuresToClip, featureToClipCrs,\n clippingFeature, clippingCrs, mapCrs);\n\n getMonitor().worked(1);\n }\n\n } catch (InterruptedException e) {\n\n final String cancelMsg = Messages.ClipProcess_clip_was_canceled;\n throw new SOProcessException(cancelMsg);\n \n } finally {\n\n if (iter != null) {\n clipping.close(iter);\n }\n endProcess((Map) this.map, this.targetLayer);\n \n final String endMsg = Messages.ClipProcess_successful;\n monitor.subTask(endMsg);\n monitor.done();\n }\n }", "public static void main(String[]args){\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Enter an image file name: \");\n String fileName = reader.nextLine();\n APImage theOriginal = new APImage(fileName);\n theOriginal.draw();\n\n // Create a copy of the image to blur\n APImage newImage = theOriginal.clone();\n\n // Visit all pixels except for those on the perimeter\n for (int y = 1; y < theOriginal.getHeight() - 1; y++)\n for (int x = 1; x < theOriginal.getWidth() - 1; x++){\n\n // Obtain info from the old pixel and its neighbors\n Pixel old = theOriginal.getPixel(x, y);\n Pixel left = theOriginal.getPixel(x - 1, y);\n Pixel right = theOriginal.getPixel(x + 1, y);\n Pixel top = theOriginal.getPixel(x, y - 1);\n Pixel bottom = theOriginal.getPixel(x, y + 1);\n int redAve = (old.getRed() + left.getRed() + right.getRed() + \n top.getRed() + bottom.getRed()) / 5;\n int greenAve = (old.getGreen() + left.getGreen() + right.getGreen() + \n top.getGreen() + bottom.getGreen()) / 5;\n int blueAve = (old.getBlue() + left.getBlue() + right.getBlue() + \n top.getBlue() + bottom.getBlue()) / 5;\n\n // Reset new pixel to that info\n Pixel newPixel = newImage.getPixel(x, y);\n newPixel.setRed(redAve);\n newPixel.setGreen(greenAve);\n newPixel.setBlue(blueAve);\n }\n System.out.print(\"Press return to continue:\");\n reader.nextLine();\n newImage.draw();\n }", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}", "List<List<Pixel>> filter(Image img, int multiplier, String operation);", "public void doCut ( RunData data)\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tString[] cutItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (cutItems == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile5\"));\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVector cutIdsVector = new Vector ();\n\t\t\tString nonCutIds = NULL_STRING;\n\n\t\t\tString cutId = NULL_STRING;\n\t\t\tfor (int i = 0; i < cutItems.length; i++)\n\t\t\t{\n\t\t\t\tcutId = cutItems[i];\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (cutId);\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (ContentHostingService.allowRemoveResource (cutId))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcutIdsVector.add (cutId);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnonCutIds = nonCutIds + \" \" + properties.getProperty (ResourceProperties.PROP_DISPLAY_NAME) + \"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis15\"));\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\t// try-catch\n\t\t\t}\n\n\t\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t\t{\n\t\t\t\tif (nonCutIds.length ()>0)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis16\") +\" \" + nonCutIds);\n\t\t\t\t}\n\n\t\t\t\tif (cutIdsVector.size ()>0)\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute (STATE_CUT_FLAG, Boolean.TRUE.toString());\n\t\t\t\t\tif (((String) state.getAttribute (STATE_SELECT_ALL_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tstate.setAttribute (STATE_SELECT_ALL_FLAG, Boolean.FALSE.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tVector copiedIds = (Vector) state.getAttribute (STATE_COPIED_IDS);\n\t\t\t\t\tfor (int i = 0; i < cutIdsVector.size (); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString currentId = (String) cutIdsVector.elementAt (i);\n\t\t\t\t\t\tif ( copiedIds.contains (currentId))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcopiedIds.remove (currentId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (copiedIds.size ()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tstate.setAttribute (STATE_COPIED_IDS, copiedIds);\n\n\t\t\t\t\tstate.setAttribute (STATE_CUT_IDS, cutIdsVector);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t// if-else\n\n\t}", "public boolean isCut() {\n\t\treturn isCut;\n\t}", "private ArrayList<Point> extractCC(Point r, Image img)\r\n/* 55: */ {\r\n/* 56: 58 */ this.s.clear();\r\n/* 57: 59 */ this.s.add(r);\r\n/* 58: 60 */ this.temp.setXYBoolean(r.x, r.y, true);\r\n/* 59: 61 */ this.list2.add(r);\r\n/* 60: */ \r\n/* 61: 63 */ Point[] N = { new Point(1, 0), new Point(0, 1), new Point(-1, 0), new Point(0, -1), \r\n/* 62: 64 */ new Point(1, 1), new Point(-1, -1), new Point(-1, 1), new Point(1, -1) };\r\n/* 63: */ \r\n/* 64: 66 */ ArrayList<Point> pixels = new ArrayList();\r\n/* 65: */ int x;\r\n/* 66: */ int i;\r\n/* 67: 68 */ for (; !this.s.isEmpty(); i < N.length)\r\n/* 68: */ {\r\n/* 69: 70 */ Point tmp = (Point)this.s.pop();\r\n/* 70: */ \r\n/* 71: 72 */ x = tmp.x;\r\n/* 72: 73 */ int y = tmp.y;\r\n/* 73: 74 */ pixels.add(tmp);\r\n/* 74: */ \r\n/* 75: 76 */ this.temp2.setXYBoolean(x, y, true);\r\n/* 76: */ \r\n/* 77: 78 */ i = 0; continue;\r\n/* 78: 79 */ int _x = x + N[i].x;\r\n/* 79: 80 */ int _y = y + N[i].y;\r\n/* 80: 82 */ if ((_x >= 0) && (_x < this.xdim) && (_y >= 0) && (_y < this.ydim)) {\r\n/* 81: 84 */ if (!this.temp.getXYBoolean(_x, _y))\r\n/* 82: */ {\r\n/* 83: 86 */ boolean q = img.getXYBoolean(_x, _y);\r\n/* 84: 88 */ if (q)\r\n/* 85: */ {\r\n/* 86: 90 */ Point t = new Point(_x, _y);\r\n/* 87: 91 */ this.s.add(t);\r\n/* 88: */ \r\n/* 89: 93 */ this.temp.setXYBoolean(t.x, t.y, true);\r\n/* 90: 94 */ this.list2.add(t);\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 78 */ i++;\r\n/* 95: */ }\r\n/* 96: 99 */ for (Point t : this.list2) {\r\n/* 97:100 */ this.temp.setXYBoolean(t.x, t.y, false);\r\n/* 98: */ }\r\n/* 99:101 */ this.list2.clear();\r\n/* 100: */ \r\n/* 101:103 */ return pixels;\r\n/* 102: */ }", "@Override\n public void cut() {\n clipboard.setContents(getSelectionAsList(true));\n }", "@Test\n public void endToEndTest() throws FitsException, IOException, ClassNotFoundException {\n\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n //Test the ImageData without mask\n BufferedImage calculatedImage = imageData.getImage(frArray);\n\n compareImage(expectedImage,calculatedImage);\n\n\n //Test the ImageData withmask\n ImageData imageDataWithMask = new ImageData(frArray, IMAGE_TYPE,imageMasks, rangeValues, 0,0, 100, 100, true );\n BufferedImage calculatedImageWithMask = imageDataWithMask.getImage(frArray);\n compareImage(expectedImageWithMask,calculatedImageWithMask);\n\n }", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "public void targetCrochet() {\n\t\twhile(true) {\n\t\t\tm_camera.read(m_originalImage);\n\t\t\ttry {\n\t\t\t\tThread.sleep(0);\n\t\t\t}\n\t\t\tcatch (java.lang.InterruptedException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (m_originalImage.cols() != 0)\n\t\t\t\t\tbreak;\n\t\t}\n\t\tm_srcImage = m_originalImage.clone();\n\t\tm_hsvImage = m_srcImage.clone();\n\t\tMat backupImage = m_originalImage.clone();\n\t\tImgproc.cvtColor(m_srcImage, m_hsvImage, Imgproc.COLOR_BGR2HSV);\n\t\t\n\t\t/*\n\t\t * Permet de faire le choix de l'intervale de couleur\n\t\t * \n\t\t * Param1 = source, Param2 = 3 valeur minimum HSV, Param3 = 3 valeur maximum HSV, Param 4 = destination\n\t\t *\n\t\t */\n\t\tCore.inRange(m_hsvImage, m_minHSV , m_maxHSV, m_hsvOverlay); // Valeur pour le tape\n\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.75, 0.75, 0.75), m_hsvOverlay);\n\t\t//Core.multiply(m_hsvOverlay, new Scalar(0.3, 1, 1), m_hsvOverlay);\n\n\t\t//Nous allons utiliser le maintenant inutile hsvImage comme Mat de swap...\n\t\tImgproc.cvtColor(m_hsvOverlay, m_hsvImage, Imgproc.COLOR_GRAY2BGR);\n\t\t\n\t\t\n\t\t/*\n\t\t * findContour va trouver les contours des objets de l'image\n\t\t * \n\t\t */\n\t\tList<MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\tImgproc.findContours(m_hsvOverlay, contours, new Mat(), Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t//Core.multiply(srcImage, new ScacurrentFPSlar(0,0,0), srcImage);\n\n\t\t//Appliquer le masque...\n\n\t\t//Imgproc.cvtColor(m_hsvOverlay, m_hsvOverlay, Imgproc.COLOR_GRAY2BGR);\n\t\t//Core.bitwise_and(srcImage, m_hsvOverlay, srcImage);\n\n\t\tList<MatOfInt> convexhulls = new ArrayList<MatOfInt>(contours.size());\n\t\tList<MatOfPoint> targetHulls = new ArrayList<>();\n\t\tList<RotatedRect> rRects = new ArrayList<>();\n\t\tList<Double> orientations = new ArrayList<Double>();\n//\t\t//Dessiner les rectangles\n\t\tList<RotatedRect> selectedRect = new ArrayList<>();\n\t\tRotatedRect biggestRect = new RotatedRect();\n\t\tRotatedRect second = new RotatedRect();\n\t\tdouble biggestArea = 0;\n\t\tdouble secondBiggest = 0;\n\t\tPoint crochetPos = new Point();\n\t\tfor (int i = 0; i < contours.size(); i++)\n\t\t{\n//\t\t\t//Trier les contours qui ont une bounding box\n\t\t\tconvexhulls.add(i, new MatOfInt(6));\n\t\t\tdouble tempArea = Imgproc.contourArea(contours.get(i));\n\t\t\tif (tempArea > 100)\n\t\t\t{\n\t\t\t\tImgproc.convexHull(contours.get(i), convexhulls.get(i));\n\t\t\t\t//double contourSolidity = Imgproc.contourArea(contours.get(i))/Imgproc.contourArea(convexhulls.get(i));\n\t\t\t\t//Imgproc.drawContours(m_srcImage, contours, i, new Scalar(255, 255, 255), -1);\n\t\t\t\tMatOfPoint2f points = new MatOfPoint2f(contours.get(i).toArray());\n\t\t\t\tRotatedRect rRect = Imgproc.minAreaRect(points);\n\t\t\t\tMatOfPoint2f approx = new MatOfPoint2f();\n\t\t\t\tdouble epsilon = 0.012*Math.pow(Imgproc.arcLength(new MatOfPoint2f(contours.get(i).toArray()),true), 1.3);\n\t\t\t\tImgproc.approxPolyDP(new MatOfPoint2f(contours.get(i).toArray()),approx,epsilon,true);\n\t\t\t\tdouble convexArea = Imgproc.contourArea(approx);\n\t\t\t\tdouble ratio = rRect.size.area() / convexArea;\n\t\t\t\tImgproc.putText(m_srcImage, String.valueOf(ratio), new Point(30, i*70), 1, 1, new Scalar(255, 20, 20));\n\t\t\t\tImgproc.putText(m_srcImage, \"angle :\" + String.valueOf(Math.abs(rRect.angle%90)), rRect.center, 1, 1, new Scalar(155, 120, 20));\n\t\t\t\tMatOfPoint approxpoints = new MatOfPoint();\n\t\t\t\tapprox.convertTo(approxpoints, CvType.CV_32S);\n\t\t\t\tList<MatOfPoint> matofapprox = new ArrayList<>();\n\t\t\t\tmatofapprox.add(approxpoints);\n\t\t\t\tImgproc.drawContours(m_srcImage, matofapprox, 0, new Scalar(20, 25, 200), 5);\n\n\t\t\t\t//If its a tetragon, (ex, rectangle, trapezoid), add the convex hulls to the list\n\t\t\t\tif(approx.rows()==4) {\n\t\t\t\t\ttargetHulls.add(approxpoints);\n\t\t\t\t\trRects.add(rRect);\n\t\t\t\t}\n\t\t\t\tif (tempArea > biggestArea)\n\t\t\t\t{\n\t\t\t\t\tbiggestRect = rRect;\n\t\t\t\t\tbiggestArea = tempArea;\n\t\t\t\t}\n\t\t\t\tPoint[] vertices = new Point[4];\n\t\t\t\trRect.points(vertices);\n\t\t\t\tdouble Center_Y = rRect.center.y;\n\t\t\t\tdouble Center_X = rRect.center.x;\n\n\t\t\t\tScalar color = new Scalar(255, 0, 0);\n\n\t\t\t\tImgproc.line(m_srcImage, new Point(Center_X, Center_Y - 50), new Point(Center_X, Center_Y + 50), color, 2);\n\t\t\t\t//System.out.println(contourSolidity);\n\t\t\t}\n\t\t}\n\n\t\tArrayList<Tuple<Target, Target>> ListOfPairs = new ArrayList<>();\n\t\t//We need to make pairs of targets for further calculation\n\t\t//First we should sort the targetHulls by position along x\n\t\tArrayList<Target> ListOfTargets = new ArrayList<>();\n\t\tfor(int i = 0; i < targetHulls.size(); i++){\n\t\t\tListOfTargets.add(new Target(rRects.get(i), targetHulls.get(i)));\n\t\t}\n\n\t\tCollections.sort(ListOfTargets, new Comparator<Target>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Target o1, Target o2) {\n\t\t\t\treturn o1.rect.center.x < o2.rect.center.x ? -1 : o1.rect.center.x == o2.rect.center.x ? 0:1;\n\t\t\t}\n\t\t});\n\n\t\tBoolean skip = false;\n\t\tfor(int i = 0; i < ListOfTargets.size(); i++){\n\t\t\tdouble angle = Math.abs(ListOfTargets.get(i).rect.angle%90);\n\t\t\tif(skip){\n\t\t\t\tskip = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(angle > 60 && angle < 90 && i+1<targetHulls.size()) {\n\t\t\t\tListOfPairs.add(new Tuple(ListOfTargets.get(i), ListOfTargets.get(i+1)));\n\t\t\t\tskip = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tdouble highestDistance = 0;\n\t\tint chosenIndex = 0;\n\t\tfor(int i = 0; i<ListOfPairs.size(); i++){\n\t\t\tTuple<Target, Target> tempTarget = ListOfPairs.get(i);\n\t\t\t//Calculate mean point:\n\t\t\tPoint mean = new Point((tempTarget.x.rect.center.x + tempTarget.y.rect.center.x)/2, (tempTarget.x.rect.center.y + tempTarget.y.rect.center.y)/2);\n\t\t\t//Calcualte distance\n\t\t\tdouble distance = Math.sqrt(Math.pow((tempTarget.x.rect.center.x - tempTarget.y.rect.center.x),2) + Math.pow(tempTarget.x.rect.center.y = tempTarget.y.rect.center.y, 2));\n\t\t\t//calculate angle of mean point\n\t\t\tdouble degree = Math.atan(((mean.x-CENTRE_IMAGE_X)*CONV_PIXEL2CM)/FOV_LENGHT)*2;\n\t\t\tdegree = Math.toDegrees(degree);\n\t\t\tif(distance > highestDistance) {\n\t\t\t\tchosenIndex = i;\n\t\t\t\tm_degree = degree;\n\t\t\t\ttables.setAngle(degree, 0);\n\t\t\t\tSystem.out.println(degree);\n\t\t\t}\n\t\t\tMatOfPoint combinedPoints = new MatOfPoint();\n\t\t\tArrayList<Mat> concatList = new ArrayList<>();\n\t\t\tconcatList.add(tempTarget.x.hull);\n\t\t\tconcatList.add(tempTarget.y.hull);\n\t\t\tCore.vconcat(concatList, combinedPoints);\n\t\t\tArrayList<MatOfPoint> pointsList = new ArrayList<>();\n\t\t\tpointsList.add(combinedPoints);\n\t\t\tRect boundingRect = Imgproc.boundingRect(combinedPoints);\n\t\t\tPoint[] vertices = new Point[4];\n\t\t\tRotatedRect rRect = new RotatedRect();\n\t\t\trRect.angle = 0;\n\t\t\trRect.size = boundingRect.size();\n\t\t\trRect.center = new Point(boundingRect.x + (boundingRect.size().width/2), boundingRect.y + (boundingRect.size().height/2));\n\t\t\trRect.points(vertices);\n\t\t\tfor (int j = 0; j < 4; j++) //Dessiner un rectangle avec rotation\n\t\t\t{\n\t\t\t\tImgproc.line(m_srcImage, vertices[j], vertices[(j+1)%4], new Scalar(20,200,40), 5);\n\t\t\t}\n\t\t\tImgproc.drawMarker(m_srcImage, mean, new Scalar(40, 200, 200), Imgproc.MARKER_CROSS, 40, 1, Imgproc.LINE_AA);\n\t\t}\n\n\t\tCore.add(m_srcImage, backupImage, m_srcImage);\n\t}", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histogramSides = new Map[(img.getWidth() + 7) / 8];\n \t\t\n \t\t// be sure we select the 8 pixel groups sensibly\n \t\tif ((xoffs & 7) > 3)\n \t\t\txoffs = (xoffs + 7) & ~7;\n \t\telse\n \t\t\txoffs = xoffs & ~7;\n \t\t\n \t\tint width = img.getWidth();\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\t// first scan: get histogram for each range\n \t\t\t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = new HashMap<Integer, Integer>();\n \t\t\t\tMap<Integer, Integer> histogramSide = new HashMap<Integer, Integer>();\n \t\t\t\t\n \t\t\t\thistograms[x / 8] = histogram;\n \t\t\t\thistogramSides[x / 8] = histogramSide;\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\tint scmx;\n \t\t\t\tint scmn;\n \t\t\t\t\n \t\t\t\t// scan outside the 8 pixels to get a broader\n \t\t\t\t// idea of what colors are important\n \t\t\t\tscmn = Math.max(0, x - 4);\n \t\t\t\tscmx = Math.min(width, maxx + 4);\n \t\t\t\t\n \t\t\t\tint pixel = 0;\n \t\t\t\tfor (int xd = scmn; xd < scmx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tpixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tMap<Integer, Integer> hist = (xd >= x && xd < maxx) ? histogram : histogramSide;\n \t\t\t\t\t\n \t\t\t\t\tInteger cnt = hist.get(pixel);\n \t\t\t\t\tif (cnt == null)\n \t\t\t\t\t\tcnt = 1;\n \t\t\t\t\telse\n \t\t\t\t\t\tcnt++;\n \t\t\t\t\t\n \t\t\t\t\thist.put(pixel, cnt);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = histograms[x / 8];\n \t\t\t\tMap<Integer, Integer> histogramSide = histogramSides[x / 8];\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\t// get prominent colors, weighing colors that also\n \t\t\t\t// appear in surrounding pixels higher \n \t\t\t\tList<Pair<Integer, Integer>> sorted = new ArrayList<Pair<Integer,Integer>>();\n \t\t\t\tfor (Map.Entry<Integer, Integer> entry : histogram.entrySet()) {\n \t\t\t\t\tInteger c = entry.getKey();\n \t\t\t\t\tint cnt = entry.getValue() * 2;\n \t\t\t\t\tInteger scnt = histogramSide.get(c);\n \t\t\t\t\tif (scnt != null)\n \t\t\t\t\t\tcnt += scnt;\n \t\t\t\t\tsorted.add(new Pair<Integer, Integer>(c, cnt));\n \t\t\t\t}\n \t\t\t\tCollections.sort(sorted, new Comparator<Pair<Integer, Integer>>() {\n \t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Pair<Integer, Integer> o1,\n \t\t\t\t\t\t\tPair<Integer, Integer> o2) {\n \t\t\t\t\t\treturn o2.second - o1.second;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t});\n \t\n \t\t\t\tint fpixel, bpixel;\n \t\t\t\tif (sorted.size() >= 2) {\n \t\t\t\t\tfpixel = sorted.get(0).first;\n \t\t\t\t\tbpixel = sorted.get(1).first;\n \t\t\t\t} else {\n \t\t\t\t\tfpixel = bpixel = sorted.get(0).first;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint newPixel = 0;\n \t\t\t\tfor (int xd = x; xd < maxx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tnewPixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tif (newPixel != fpixel && newPixel != bpixel) {\n \t\t\t\t\t\tif (fpixel < bpixel) {\n \t\t\t\t\t\t\tnewPixel = newPixel <= fpixel ? fpixel : bpixel;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnewPixel = newPixel < bpixel ? fpixel : bpixel;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\timageData.setPixel(xd + xoffs, y + yoffs, newPixel);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }", "@Override\n\t\tprotected String doInBackground(String... arg0) {\n\t\t\tBitmap ret = takeScreenShot(0, 0 + mStatusBarHeight,\n\t\t\t\t\tmDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels\n\t\t\t\t\t\t\t- mStatusBarHeight);\n\n\t\t\t// CopyOfScreenShotActivity cc = new CopyOfScreenShotActivity(1);\n\t\t\t// Bitmap ret = cc.getScreenShot(cc.getDevice());\n\t\t\tif (ret != null) {\n\t\t\t\tif (cropRect != null) {// rectangle\n\t\t\t\t\tret = cropImage(ret, cropRect);\n\t\t\t\t\tif (mIsOval)\n\t\t\t\t\t\tret = Utils.getOval(ret);\n\t\t\t\t}\n\t\t\t\tcutSuccess = makeFile(ret);\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public void run(ImageProcessor ip) {\n ImagePlus impDark = WindowManager.getImage(DarkiD);\n ImageStack DarkStack = impDark.getStack();\n int width = DarkStack.getProcessor(1).getWidth();\n int height = DarkStack.getProcessor(1).getHeight();\n int dim = width * height;\n \n // Let's assign & declare all the local variables. \n //The pix-by-pix sum of the stack\n double[] sum;\n sum = new double[dim];\n \n //The pix-by-pix average of the stack\n double[] average;\n average = new double[dim];\n \n //The DARK signal pixel array\n double[] DARKpixels;\n DARKpixels = new double[dim];\n \n /* Scan the stack to weed out pics w/ pixel > saturation, then sum \n pix-by-pix through the stack. */\n int k = 0;\n for(int i=1; i<=DarkStack.getSize(); i++){\n double imgMax = DarkStack.getProcessor(i).getStatistics().max;\n if (imgMax < saturation){\n short[] pixels = (short[]) (DarkStack.getPixels(i));\n for (int j=0; j<dim; j++){\n sum[j] += (double)(pixels[j] & 0xffff);\n }\n } else \n k++;\n } \n \n // Average pix-by-pix\n for(int i=0; i<dim; i++){\n average[i] = (double) (sum[i]/(DarkStack.getSize() - k ));\n }\n \n /* Subtract off READ signal and normalize per exposure time. If \n a pixel has a value less than 0, then set it to zero.\n */\n ImagePlus impREAD = WindowManager.getImage(READiD);\n ImageProcessor READ_ip = impREAD.getProcessor();\n float[] READpixels = (float[]) ( READ_ip.getPixels() ); \n for(int i =0; i<dim; i++){\n DARKpixels[i] = (double)( (average[i] - READpixels[i])\n /(DarkTime - READTime) );\n if (DARKpixels[i]< 0)\n DARKpixels[i]=0; \n }\n \n // Make DARK image from pixels then show it. \n ImageProcessor DARK_ip = new FloatProcessor(width, \n height,DARKpixels); \n ImagePlus impDARK = new ImagePlus(\"DARK\",DARK_ip);\n impDARK.show();\n impDARK.draw();\n IJ.run(impDARK, \"Enhance Contrast\", \"saturated=0.35\");\n \n //Print out specs of the DARK image.\n ResultsTable rt = new ResultsTable();\n rt.incrementCounter();\n rt.addValue(\"Mean\",DARK_ip.getStatistics().mean);\n rt.addValue(\"Max\",DARK_ip.getStatistics().max);\n rt.addValue(\"Min\",DARK_ip.getStatistics().min);\n rt.addValue(\"Std.Dev.\",DARK_ip.getStatistics().stdDev);\n rt.showRowNumbers(false);\n rt.show(\"Results\");\n \n\t}", "void kill () {if (img != null) {img.flush (); img = null;}}", "private void performCrop(Uri img) {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(img, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n // cropIntent.putExtra(\"aspectX\", 1);\r\n //cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n // cropIntent.putExtra(\"outputX\", 256);\r\n // cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning in onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "@Override\npublic Image operate (Image source)\n{\n final Image thresholdImage = NIVision\n .imaqCreateImage(ImageType.IMAGE_U8, 0);\n\n // @TODO: Store NIVision.Range instead of integers so we don't make a\n // new one every time.\n NIVision.imaqColorThreshold(thresholdImage, source, 255,\n NIVision.ColorMode.HSL, this.hueRange, this.satRange,\n this.lumRange);\n source.free();\n return thresholdImage;\n}", "@SuppressWarnings(\"unused\")\n\tprivate void cloneImage() {\n//\t\tColorModel cm = offimg.getColorModel();\n//\t\t boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();\n//\t\t WritableRaster raster = offimg.copyData(null);\n//\t\t offimg2 = new BufferedImage(cm, raster, isAlphaPremultiplied, null);\n//\t\t BufferedImage currentImage = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);\n\n\t//Fastest method to clone the image (DOES NOT WORK for MACOS)\n//\t\t int[] frame = ((DataBufferInt)offimg.getRaster().getDataBuffer()).getData();\n//\t\t int[] imgData = ((DataBufferInt)offimg2.getRaster().getDataBuffer()).getData();\n//\t\t System.arraycopy(frame,0,imgData,0,frame.length);\n\t}", "private static void cut(GL10 gl, String modelName) throws IOException {\n\t\tmPiece0.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\tbbMin = new Point3d(mPiece0.bbMin.x, mPiece0.bbMin.y, mPiece0.bbMin.z);\n\t\tbbMax = new Point3d(mPiece0.bbMax.x, mPiece0.bbMax.y, mPiece0.bbMax.z);\n\n\t\t// make use of built surfaces to save texture duplication - reuse textureID\n\t\tfor (int i = 0; i < mPiece0.mSurfaces.length; i++) {\n\t\t\tSurface s = mSurfaces.get(i);\n\t\t\ts.textureID = mPiece0.mSurfaces[i].textureID;\n\t\t}\n\n\t\t// **************************** Y axis ****************************\n\t\tif (mNumCutsPerAxis[1] > 0) {\n\t\t\tcutOneDirection(new Point3d(0, 1, 0), (bbMax.y - bbMin.y) / ((float) mNumCutsPerAxis[1] + 1f));\n\t\t\t// move to front queue to start over\n\t\t\twhile (!mPieces.isEmpty())\n\t\t\t\tmQinfront.add(mPieces.remove(0));\n\t\t}\n\n\t\t// **************************** X axis ****************************\n\t\tif (mNumCutsPerAxis[0] > 0) {\n\t\t\tcutOneDirection(new Point3d(1, 0, 0), (bbMax.x - bbMin.x) / ((float) mNumCutsPerAxis[0] + 1f));\n\t\t\twhile (!mPieces.isEmpty())\n\t\t\t\tmQinfront.add(mPieces.remove(0));\n\t\t}\n\n\t\t// **************************** Z axis ****************************\n\t\tif (mNumCutsPerAxis[2] > 0)\n\t\t\tcutOneDirection(new Point3d(0, 0, 1), (bbMax.z - bbMin.z) / ((float) mNumCutsPerAxis[2] + 1f));\n\t\telse {\n\t\t\twhile (!mQinfront.isEmpty())\n\t\t\t\tmPieces.add(mQinfront.remove(0));\n\t\t}\n\n\t\t// now build them all, except interior pieces\n\t\tint i = 0;\n\t\twhile (i < mPieces.size()) {\n\t\t\t\n\t\t\tPiece piece = mPieces.get(i);\n\t\t\tpiece.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\t\t\n\t\t\t// toss if all interior\n\t\t\tboolean toss = true;\n\t\t\tint sLen = piece.mSurfaces.length;\n\t\t\tfor(int sIdx=0; sIdx<sLen; sIdx++) {\n\t\t\t\t\n\t\t\t\t// not interior if any surface other than last on list\n\t\t\t\tif((piece.mSurfaces[sIdx].idxLength > 0) && (sIdx != (sLen - 1))) {\n\t\t\t\t\ttoss = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(toss)\n\t\t\t\tmPieces.remove(i);\n\t\t\telse\n\t\t\t\tpiece.mIndex = i++;\n\t\t}\n\n\t\t// break discontinuous into multiple pieces\n\t\ti = 0;\n\t\twhile(i < mPieces.size()) {\n\t\t\t\n\t\t\tPiece[] ps = continuityTest(mPieces.get(i));\n\t\t\t\n\t\t\tif(ps != null) {\n\t\t\t\t\n\t\t\t\t// remove the culprit\n\t\t\t\tmPieces.remove(i);\n\t\t\t\t// discontinuous - broken into multiple\n\t\t\t\tfor (Piece p : ps) {\n\t\t\t\t\tp.build(gl, mSurfaces, mPiece0.mVerticies.size(), modelName);\n\t\t\t\t\tmPieces.add(i++, p);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\t\n\t\t// renumber\n\t\ti = 0;\n\t\tfor(Piece p : mPieces)\n\t\t\tp.mIndex = i++;\n\n\t\tmNumPieces = mPieces.size();\n\t}", "@SuppressWarnings(\"unused\")\r\n private void makeSubcutaneousFat2DVOI() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one VOI and one curve\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [curve.size()];\r\n int[] yVals = new int [curve.size()];\r\n int[] zVals = new int [curve.size()];\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n int[] xValsSubcutaneousVOI = new int [curve.size()];\r\n int[] yValsSubcutaneousVOI = new int [curve.size()];\r\n \r\n \r\n // the intensity profile along a radial line for a given angle\r\n short[] profile;\r\n \r\n // the x, y location of all the pixels along a radial line for a given angle\r\n int[] xLocs;\r\n int[] yLocs;\r\n try {\r\n profile = new short[xDim];\r\n xLocs = new int[xDim];\r\n yLocs = new int[xDim];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT allocate profile\");\r\n return;\r\n }\r\n\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n\r\n // find a subcutaneous fat contour point for each abdominal contour point\r\n // we know the abdominal contour points are located at three degree increments\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the abdomen VOI point\r\n // Find where the subcutaneous fat ends and the muscle starts\r\n \r\n // start at the end of the profile array since its order is from the\r\n // center-of-mass to the abdomen voi point\r\n \r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU && profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx <= 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n break;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n profile[count] = sliceBuffer[yOffset + x];\r\n xLocs[count] = x;\r\n yLocs[count] = y;\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n // profile contains all the source image intensity values along the line from\r\n // the center-of-mass to the newly computed abdomen VOI point\r\n // Find where the subcutaneous fat ends\r\n int idx = count - 5; // skip over the skin\r\n while (idx >= 0 && profile[idx] < muscleThresholdHU&& profile[idx] > airThresholdHU) {\r\n idx--;\r\n }\r\n if (idx == 0) {\r\n MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find visceral cavity in the intensity profile\");\r\n return;\r\n }\r\n xValsSubcutaneousVOI[contourPointIdx] = xLocs[idx];\r\n yValsSubcutaneousVOI[contourPointIdx] = yLocs[idx];\r\n\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(xValsSubcutaneousVOI, yValsSubcutaneousVOI, zVals);\r\n\r\n }", "@Override\n\tpublic void editorCut()\n\t{\n\t\teditorCopy();\n\t\teditorInsert(\"\");\n\t\tSystem.out.println(\"DEBUG: performing Cut\") ;\n\t}", "private void performCrop() {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(picUri, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n// cropIntent.putExtra(\"aspectX\", 1);\r\n// cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n// cropIntent.putExtra(\"outputX\", 256);\r\n// cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning li_history onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public void algorithmPerformed(AlgorithmBase algorithm) {\r\n\r\n if (algorithm instanceof AlgorithmAddMargins) {\r\n\r\n if ((cropAlgo.isCompleted() == true) && (resultImage != null)) { // in StoreInDest; \"new Image\"\r\n\r\n try {\r\n new ViewJFrameImage(resultImage, null, new Dimension(610, 200));\r\n } catch (OutOfMemoryError error) {\r\n MipavUtil.displayError(\"Out of memory: unable to open new frame\");\r\n }\r\n\r\n insertScriptLine();\r\n\r\n } else if ((cropAlgo.isCompleted() == true) && (resultImage == null)) {\r\n\r\n image = cropAlgo.getSrcImage();\r\n\r\n try {\r\n new ViewJFrameImage(image, null, new Dimension(610, 200));\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"Out of memory: unable to open new frame\");\r\n }\r\n\r\n insertScriptLine();\r\n\r\n } else if (cropAlgo.isCompleted() == false) {\r\n\r\n // algorithm failed but result image still has garbage\r\n if (resultImage != null) {\r\n resultImage.disposeLocal(); // clean up memory\r\n }\r\n\r\n resultImage = null;\r\n\r\n Vector<ViewImageUpdateInterface> imageFrames = image.getImageFrameVector();\r\n\r\n for (int i = 0; i < imageFrames.size(); i++) {\r\n ((Frame) (imageFrames.elementAt(i))).setTitle(titles[i]);\r\n ((Frame) (imageFrames.elementAt(i))).setEnabled(true);\r\n\r\n if ((((Frame) (imageFrames.elementAt(i))) != parentFrame) && (parentFrame != null)) {\r\n userInterface.registerFrame((Frame) (imageFrames.elementAt(i)));\r\n }\r\n }\r\n }\r\n }\r\n setComplete(cropAlgo.isCompleted());\r\n cropAlgo.finalize();\r\n cropAlgo = null;\r\n dispose();\r\n }", "public void transform(View view) {\n DrawRect.getCoord(1);\n\n // block to get coord os ROI\n ArrayList<Integer> full_x_ROIcoord = new ArrayList<>();\n ArrayList<Integer> full_y_ROIcoord = new ArrayList<>();\n\n if (xRed < 0 || xRed > 750 || yRed < 0 || yRed > 1000 ||\n xOrg < 0 || xOrg > 750 || yOrg < 0 || yOrg > 1000 ||\n xYell < 0 || xYell > 750 || yYell < 0 || yYell > 1000 ||\n xGreen < 0 || xGreen > 750 || yGreen < 0 || yGreen > 1000) {\n return;\n } else {\n // clear situation with x<= xYell\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n full_x_ROIcoord.add(x);\n full_y_ROIcoord.add(y);\n }\n }\n }\n // end block\n\n // block get contour via CannyFilter\n Mat sMat = oImage.submat(yRed, yGreen, xRed, xOrg);\n Imgproc.Canny(sMat, sMat, 25, 100 * 2);\n ArrayList<Double> subMatValue = new ArrayList<>();\n\n for (int x = 0; x < sMat.cols(); x++) {\n for (int y = 0; y < sMat.rows(); y++) {\n double[] ft2 = sMat.get(y, x);\n subMatValue.add(ft2[0]);\n }\n }\n int count = 0;\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n oImage.put(y, x, subMatValue.get(count));\n count++;\n }\n }\n // end block\n\n displayImage(oImage);\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "public void process(int myImageData[],int myImageIndex)\n {\n if( itrtnIndex > 0 && updateCntrIndex(myImageIndex))\n {\n cmptTtlEnergy(contourIndex);\n\n updtcontourData(contourIndex);\n checkCurvature();\n increaseIndex();\n/*\n try{\nThread.sleep(100);\n }catch(Exception e){\n \n }\n */\n }\n }", "void ProcessImage() {\n DoDescribe();\n }", "public void run()\n\t{\n\t\tint linCmbDistThreshold=2;\n\t\tint linCmbMinLenOvrLap=6;\n\t\tdouble linSlopeThreshold=0.1d;\n\t\tList<Line> listLines = new ArrayList<Line>();\n\t\tLine curLine;\n\t\t\n\t\tSystem.loadLibrary(Core.NATIVE_LIBRARY_NAME);\n\t\t\n\t\tString srcFilename = \"resources/tttorig.jpg\";\n\t\tMat src = Imgcodecs.imread(srcFilename);\n\t\t\n\t\tMat dst, cdst;\n\t\tdst= new Mat();\n\t\tcdst = new Mat();\n\t\t\n\t\tImgproc.Canny(src, dst, 50d, 200d, 3, true);\n\t\tImgproc.cvtColor(dst, cdst, Imgproc.COLOR_GRAY2BGR);\n\t\t\n\t\tMat lines;\n\t\tlines = new Mat();\n\t\t\n\t\tint threshold = 65;\n\t int minLineSize = 30;\n\t int lineGap = 25;\n\t\t\n\t\tImgproc.HoughLinesP(dst, lines, 1.27d, Math.PI/180, threshold, minLineSize, lineGap);\n\t\t\n\t\tdouble highSlope;\n\t\tdouble lowSlope;\n\t\tdouble[] vec;\n\t\tfor(int c = 0; c < lines.cols(); c++ )\n\t\t{\n\t\t\tfor(int r=0; r < lines.rows(); r++)\n\t\t\t{\n\t\t\t\tvec = lines.get(r, c);\n\t\t\t\t// x1, y1\n\t\t\t\tPoint start = new Point(vec[0], vec[1]);\n\t\t\t\t// x2, y2\n\t\t\t\tPoint end = new Point(vec[2], vec[3]);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tcurLine = new Line(start, end);\n\t\t\t\thighSlope=curLine.getSlope()+linSlopeThreshold;\n\t\t\t\tlowSlope=curLine.getSlope()-linSlopeThreshold; \n\t\t\t\t\n\t\t\t\tfor(Line lpln:listLines)\n\t\t\t\t{\n\t\t\t\t\tif(lpln.getSlope() > lowSlope && lpln.getSlope() < highSlope)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\n\t\t\t\tSystem.out.println(\"Lines: col[\"+c+\"] row[\"+r+\"]\");\n\n\t\t\t\tImgproc.line(cdst, start, end, new Scalar(RandomGenerator.pRand(245, 10),RandomGenerator.pRand(245, 10),RandomGenerator.pRand(245, 10)), 3);\n\t\t\t}\n\t\t}\n\n\t\t// Save the visualized detection.\n\t String filename = \"lineDetection.png\";\n\t System.out.println(String.format(\"Writing %s\", filename));\n\t Imgcodecs.imwrite(filename, cdst);\n\t\t\n\t}", "public static void main (String[] args) throws FitsException, IOException, ClassNotFoundException {\n inFits = FileLoader.loadFits(ImageDataTest.class , fileName);\n frArray = FitsRead.createFitsReadArray(inFits);\n rangeValues = FitsRead.getDefaultRangeValues();\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n BufferedImage bufferedImage = imageData.getImage(frArray);\n File outputfile = new File(FileLoader.getDataPath(ImageDataTest.class)+\"imageDataTest.png\");\n ImageIO.write(bufferedImage, \"png\", outputfile);\n\n\n\n //test ImageData with mask\n imageData = new ImageData(frArray, IMAGE_TYPE,imageMasks,rangeValues, 0,0, 100, 100, true );\n bufferedImage = imageData.getImage(frArray);\n outputfile = new File(FileLoader.getDataPath(ImageDataTest.class)+\"imageDataWithMaskTest.png\");\n ImageIO.write(bufferedImage, \"png\", outputfile);\n\n }", "public static void main(String[] args) throws Exception {\n\n String dataPath = FileLoader.getDataPath(CropFileTest.class);\n Fits inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n\n //create first FITS file\n String outFitsName1 =dataPath+ \"cropFileUsingMinMax_\"+fileName;\n int min_x = 47, min_y = 50, max_x = 349, max_y = 435;\n Fits outFits1 = CropFile.do_crop(inFits, min_x, min_y, max_x, max_y);\n FileOutputStream fout1 = new java.io.FileOutputStream(outFitsName1);\n BufferedDataOutputStream out1 = new BufferedDataOutputStream(fout1);\n outFits1.write(out1);\n fout1.close();\n out1.close();\n\n\n inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n String outFitsName2 =dataPath+ \"cropFileUsingMinMaxExtension_\"+fileName;\n //create first FITS file\n Fits outFits2 = CropFile.do_crop(inFits, 0, min_x, min_y, max_x, max_y);\n FileOutputStream fout2 = new java.io.FileOutputStream(outFitsName2);\n BufferedDataOutputStream out2 = new BufferedDataOutputStream(fout2);\n outFits2.write(out2);\n fout2.close();\n out2.close();\n\n\n\n\n //create the third FITS file\n //reload FITS file since the continues reading caused the file pointer issue\n inFits = FileLoader.loadFits(CropFileTest.class, fileName);\n String outFitsName3 =dataPath+ \"cropFileUsingWorldPtRadius_\"+fileName;\n double ra = 329.162375;\n double dec = 62.2954;\n double radius = 3.18;\n FileOutputStream fout3 = new java.io.FileOutputStream(outFitsName3);\n Fits outFits3 =CropFile.do_crop(inFits, new WorldPt(ra, dec), radius);\n BufferedDataOutputStream out3 = new BufferedDataOutputStream(fout3);\n outFits3.write(out3);\n fout3.close();\n out3.close();\n\n\n\n }", "public void place() {\n\t\tprocessing.image(Image, x, y);\n\t}", "public void process() {\n\tprocessing = true;\r\n\tCollections.sort(imageRequest, new Comparator<ImageRequest>() {\r\n\t @Override\r\n\t public int compare(ImageRequest i0, ImageRequest i1) {\r\n\t\tif (i0.zDepth < i1.zDepth)\r\n\t\t return -1;\r\n\t\tif (i0.zDepth > i1.zDepth)\r\n\t\t return 1;\r\n\t\treturn 0;\r\n\t }\r\n\r\n\t});\r\n\r\n\t// Draw alpha things\r\n\tfor (int i = 0; i < imageRequest.size(); i++) {\r\n\t ImageRequest ir = imageRequest.get(i);\r\n\t setzDepth(ir.zDepth);\r\n\t drawSprite(ir.sprite, ir.offX, ir.offY, false, false);\r\n\t}\r\n\r\n\t// Draw lighting\r\n\tfor (int i = 0; i < lightRequest.size(); i++) {\r\n\t LightRequest lr = lightRequest.get(i);\r\n\t drawLightRequest(lr.light, lr.x, lr.y);\r\n\t}\r\n\r\n\tfor (int i = 0; i < pixels.length; i++) {\r\n\t float r = ((lightMap[i] >> 16) & 0xff) / 255f;\r\n\t float g = ((lightMap[i] >> 8) & 0xff) / 255f;\r\n\t float b = (lightMap[i] & 0xff) / 255f;\r\n\r\n\t pixels[i] = ((int) (((pixels[i] >> 16) & 0xff) * r) << 16 | (int) (((pixels[i] >> 8) & 0xff) * g) << 8\r\n\t\t | (int) ((pixels[i] & 0xff) * b));\r\n\t}\r\n\r\n\timageRequest.clear();\r\n\tlightRequest.clear();\r\n\tprocessing = false;\r\n }" ]
[ "0.6657312", "0.6304464", "0.621173", "0.62111866", "0.6157284", "0.60518557", "0.60224986", "0.5957022", "0.58843493", "0.58623177", "0.5768812", "0.57676923", "0.5757076", "0.5752811", "0.5732741", "0.57121956", "0.5677058", "0.56292003", "0.5601367", "0.5579804", "0.5578865", "0.55607843", "0.556078", "0.55278826", "0.5527731", "0.5524197", "0.549607", "0.548798", "0.5460012", "0.5459262", "0.5445254", "0.5433402", "0.54328257", "0.5422337", "0.54126143", "0.54070556", "0.53952116", "0.53812945", "0.5367562", "0.53593445", "0.5357385", "0.53498214", "0.53489274", "0.53295034", "0.53293234", "0.53274536", "0.5324835", "0.5318362", "0.5313694", "0.530704", "0.5291822", "0.52879316", "0.528103", "0.52788913", "0.52752125", "0.525968", "0.5254677", "0.5248811", "0.5238658", "0.52327067", "0.52200085", "0.52100194", "0.5190493", "0.517667", "0.51712304", "0.51688457", "0.51634663", "0.5157819", "0.5151019", "0.5150083", "0.514363", "0.5139517", "0.5136977", "0.5134357", "0.5134226", "0.51282585", "0.5124035", "0.51127887", "0.5112584", "0.5106676", "0.5102255", "0.5099649", "0.5099141", "0.5098173", "0.5096337", "0.5095574", "0.5087316", "0.50868195", "0.5086114", "0.50746816", "0.5072633", "0.5069618", "0.50654906", "0.50625414", "0.5047846", "0.5043935", "0.5040014", "0.5033677", "0.5025564", "0.50174195" ]
0.60660195
5
Initialize setup border positions.
private void initBorderPositions(int blockX0, int blockY0, int blockWidth, int blockHeight) { // Top borderTopXMin = blockX0; borderTopXMax = blockX0 + blockWidth; borderTopYMin = blockY0; borderTopYMax = blockY0 + DEFAULT_BORDER_WEIGHT; // Right borderRightXMin = blockX0 + blockWidth - DEFAULT_BORDER_WEIGHT; borderRightXMax = blockX0 + blockWidth; borderRightYMin = blockY0; borderRightYMax = blockY0 + blockHeight; // Bottom borderBottomXMin = blockX0; borderBottomXMax = blockX0 + blockWidth; borderBottomYMin = blockY0 + blockHeight - DEFAULT_BORDER_WEIGHT; borderBottomYMax = blockY0 + blockHeight; // Left borderLeftXMin = blockX0; borderLeftXMax = blockX0 + DEFAULT_BORDER_WEIGHT; borderLeftYMin = blockY0; borderLeftYMax = blockY0 + blockHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n\n this.paint.setStyle(Paint.Style.FILL);\n this.mBorder.setStyle(Paint.Style.STROKE);\n this.mBorder.setColor(Color.GRAY);\n this.mBorder.setStrokeWidth(BORDER_STROKE);\n\n }", "private void setup() {\n // init paint\n paint = new Paint();\n paint.setAntiAlias(true);\n\n paintBorder = new Paint();\n setBorderColor(Color.WHITE);\n paintBorder.setAntiAlias(true);\n }", "public void createScreenBorders() {\n // set the screen's borders.\n this.upper = 0;\n this.lower = 600;\n this.left = 0;\n this.right = 800;\n }", "private void init() {\n \t\t// Initialise border cells as already visited\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tvisited[x][0] = true;\n \t\t\tvisited[x][size + 1] = true;\n \t\t}\n \t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\tvisited[0][y] = true;\n \t\t\tvisited[size + 1][y] = true;\n \t\t}\n \t\t\n \t\t\n \t\t// Initialise all walls as present\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\t\tnorth[x][y] = true;\n \t\t\t\teast[x][y] = true;\n \t\t\t\tsouth[x][y] = true;\n \t\t\t\twest[x][y] = true;\n \t\t\t}\n \t\t}\n \t}", "public void resetBorders(){\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, 10));\n } else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, topborder.get(i - 1).getHeight() + 1));\n }\n }\n\n\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25,height-minBorderHeight));\n } else {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, botborder.get(i - 1).getY() - 1));\n }\n }\n }", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tthis.borderRepulsion = new BorderRepulsionForce(new Bounds(0, 0, 100,\r\n\t\t\t\t100));\r\n\t\tthis.borderRepulsion.setPrefferedDistance(10);\r\n\t}", "protected void setBordersFromCell() {\n borderBefore = cell.borderBefore.copy();\n if (rowSpanIndex > 0) {\n borderBefore.normal = BorderSpecification.getDefaultBorder();\n }\n borderAfter = cell.borderAfter.copy();\n if (!isLastGridUnitRowSpan()) {\n borderAfter.normal = BorderSpecification.getDefaultBorder();\n }\n if (colSpanIndex == 0) {\n borderStart = cell.borderStart;\n } else {\n borderStart = BorderSpecification.getDefaultBorder();\n }\n if (isLastGridUnitColSpan()) {\n borderEnd = cell.borderEnd;\n } else {\n borderEnd = BorderSpecification.getDefaultBorder();\n }\n }", "@Override\n public void initialize() {\n double left = getBorder().getStrokes().get(0).getWidths().getLeft();\n canvas.widthProperty().bind(widthProperty().subtract(left * 2));\n canvas.heightProperty().bind(heightProperty().subtract(left * 2));\n canvas.setTranslateX(left);\n canvas.setTranslateY(left);\n\n // init properties value\n color.set(Color.BLUE);\n thickness.set(5);\n\n // addind mouse handlers\n canvas.setOnMousePressed(e -> {\n lastLineList.clear();\n handleMouseEvent(e);\n });\n canvas.setOnMouseDragged(e -> handleMouseEvent(e));\n canvas.setOnMouseReleased(e -> {\n handleMouseEvent(e);\n lastLine.setValue(new DrawingInfos(lastLineList));\n });\n }", "@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}", "private void setupAllBorderColorViews(){\n allBorderColorViews = new ArrayList<>();\n\n allBorderColorViews.add(hLLRow1);\n allBorderColorViews.add(hLLRow2);\n allBorderColorViews.add(hLLRow3);\n\n if (hLLRow4 != null){\n allBorderColorViews.add(hLLRow4);\n\n // if hLLRow4 is not null, we assume 5 and 6 aren't either\n allBorderColorViews.add(hLLRow5);\n allBorderColorViews.add(hLLRow6);\n }\n }", "private void createCanvasBorders() {\n\n\t\tLabel lblBorderMiddle = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderMiddle.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t\tlblBorderMiddle.setBounds(0, 72, 285, 2);\n\n\t\tLabel lblBorderBottom = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderBottom.setBounds(0, 198, 285, 2);\n\t\tlblBorderBottom.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderLeft = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderLeft.setBounds(0, 0, 2, 200);\n\t\tlblBorderLeft.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderRight = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderRight.setBounds(283, 0, 2, 200);\n\t\tlblBorderRight.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderTop = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderTop.setBounds(0, 0, 285, 2);\n\t\tlblBorderTop.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t}", "private void createBorders() {\r\n // Upper border rectangle\r\n Rectangle topRecFrame = new Rectangle(new Point(0, 0), WITH, SIZE + 20);\r\n // Left border rectangle\r\n Rectangle leftRecFrame = new Rectangle(new Point(0, SIZE + 21), SIZE, HEIGHT);\r\n // Right border rectangle\r\n Rectangle rightRecFrame = new Rectangle(new Point(WITH - SIZE, SIZE + 21), SIZE, HEIGHT);\r\n // Rectangle for block on top of upper block for the score\r\n Rectangle topRecScore = new Rectangle(new Point(0, 0), WITH, 20);\r\n Block topScore = new Block(topRecScore, Color.LIGHT_GRAY, 0);\r\n Block topFrame = new Block(topRecFrame, Color.GRAY, 0);\r\n Block leftFrame = new Block(leftRecFrame, Color.gray, 0);\r\n Block rightFrame = new Block(rightRecFrame, Color.gray, 0);\r\n topFrame.addToGame(this);\r\n leftFrame.addToGame(this);\r\n rightFrame.addToGame(this);\r\n topScore.addToGame(this);\r\n\r\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void setLayout(BorderLayout borderLayout) {\n\t\t\n\t}", "private BorderPane initializeBorderPane() {\n BorderPane toReturn = new BorderPane();\n\n // Set menu pane\n HBox menu = addTopBox();\n toReturn.setTop(menu);\n\n // Set center pane\n gameMap = new CreatureControl();\n toReturn.setCenter(gameMap);\n\n // Set bottom pane\n HBox bottom = addBottomBox();\n toReturn.setBottom(bottom);\n\n // Roll the animation\n timeline.setCycleCount(Timeline.INDEFINITE);\n\n // Roll the track\n title.setCycleCount(MediaPlayer.INDEFINITE);\n gaming.setCycleCount(MediaPlayer.INDEFINITE);\n playBGM();\n\n return toReturn;\n }", "private void initMargins() {\n // Margin Left\n JPanel marginLeft = new JPanel(new BorderLayout());\n marginLeft.setBackground(Resources.getLogoColor());\n marginLeft.setMinimumSize(new Dimension(10, 400));\n marginLeft.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginLeft, BorderLayout.WEST);\n // Margin Right\n JPanel marginRight = new JPanel(new BorderLayout());\n marginRight.setBackground(Resources.getLogoColor());\n marginRight.setMinimumSize(new Dimension(10, 400));\n marginRight.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginRight, BorderLayout.EAST);\n }", "private void initDesign(){\n\t\tlabel.setLayoutX(xPos);\n\t\tlabel.setLayoutY(yPos);\n\t\tlabel.setStyle(\"-fx-border-color: green\");\n\t}", "public void initialize() {\n redCircle.setCenterX(100);\n redCircle.setCenterY(60);\n\n blueCircle.setCenterX(300);\n blueCircle.setCenterY(60);\n\n checkOverlap();\n\n }", "private void initialize() {\n GridBagConstraints gridBagConstraints21 = new GridBagConstraints();\n gridBagConstraints21.gridx = 0;\n gridBagConstraints21.weightx = 1.0D;\n gridBagConstraints21.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints21.gridy = 1;\n GridBagConstraints gridBagConstraints11 = new GridBagConstraints();\n gridBagConstraints11.gridx = 0;\n gridBagConstraints11.insets = new java.awt.Insets(2, 2, 2, 2);\n gridBagConstraints11.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints11.weightx = 1.0D;\n gridBagConstraints11.weighty = 1.0D;\n gridBagConstraints11.gridy = 2;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0D;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n gridBagConstraints.gridy = 0;\n this.setLayout(new GridBagLayout());\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Manage Grid Map File\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,\n null, PortalLookAndFeel.getPanelLabelColor()));\n this.add(getGridMapFilePanel(), gridBagConstraints);\n this.add(getTablePanel(), gridBagConstraints11);\n this.add(getControlPanel(), gridBagConstraints21);\n }", "public void initialize() {\n\t\tmaze = new Block[width][height];\n\t\tborder();\n\t}", "protected void initialize() {\n\t\tsetBodyColor(Color.BLACK);\r\n\t\tsetGunColor(Color.BLACK);\r\n\t\tsetRadarColor(Color.BLACK);\r\n\t\tsetScanColor(Color.BLUE);\r\n\t\tsetBulletColor(Color.RED);\r\n\t}", "void updateBorder(int offset) {\n setBorder(new EmptyBorder(0, offset, 0, 0));\n }", "public void init() {\n setLayout(new BorderLayout());\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "private void setUp() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetupMessagePanel();\n\t\tsetupHomeButtonPanel();\n\t}", "private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}", "@Override\n\t\tpublic void setBorder(Border border) {\n\t\t}", "private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setBounds(new Rectangle(0, 0, 780, 530));\n\t\tthis.add(getJPanel_table(), BorderLayout.CENTER);\n\t\tthis.add(getJPanel_button(), BorderLayout.EAST);\n\t}", "public void setDefaultValues() {\n\t\ttfRow = new JTextField();\n\t\ttfRow.setText(\"0\");\n\t\ttfCol = new JTextField();\n\t\ttfCol.setText(\"0\");\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\ttfWest[i] = new JTextField();\n\t\t\ttfWest[i].setText(\"0\");\n\t\t\t;\n\t\t\ttfWest[i].setPreferredSize(new Dimension(50, 20));\n\t\t\ttfSouth[i] = new JTextField();\n\t\t\ttfSouth[i].setText(\"0\");\n\t\t\t;\n\t\t}\n\t\tfor (int row = 0; row < lblCenter.length; row++) {\n\t\t\tfor (int col = 0; col < lblCenter[row].length; col++) {\n\t\t\t\tlblCenter[row][col] = new JLabel(\"0\");\n\t\t\t\tlblCenter[row][col].setPreferredSize(new Dimension(30, 30));\n\t\t\t\tlblCenter[row][col].setHorizontalAlignment(JLabel.CENTER);\n\t\t\t\tlblCenter[row][col].setBackground(new java.awt.Color(150, 150, 150));\n\t\t\t\tlblCenter[row][col].setOpaque(true);\n\t\t\t}\n\t\t}\n\t}", "private void reSetBorder(ChessBorder mChessBorder) {\n\t\tmChessBorder.right = 0;\r\n\t\tmChessBorder.bottom = 0;\r\n\t\tmChessBorder.top = size;\r\n\t\tmChessBorder.left = size;\r\n\t}", "private void initialization() {\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\n inputSearch.setBackground(new Color(0,0,0,0));\n inputSearch.setBorder(BorderFactory.createMatteBorder(0, 0, 2, 0, new Color(12,152,232)));\n }", "@Override\n\tprotected void init() {\n\t\tsuper.init();\n\t\tisAnchorPointForPosition = true;\n\t\tsetContentSize(Screen.GAME_W, Screen.GAME_H);\n\t\tsetAnchor(Graphics.HCENTER | Graphics.VCENTER);\n\t}", "@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}", "private void setUpBlocks() {\n\t\tdouble xStart=0;\n\t\tdouble midPoint = getWidth()/2;\n\t\tint yStart = BRICK_Y_OFFSET;\t\n\t\t\n\t\tfor(int i = 0; i < NBRICK_ROWS; i++) {\n\t\t\t\n\t\t\txStart = midPoint - (NBRICKS_PER_ROW/2 * BRICK_WIDTH) - BRICK_WIDTH/2;\n\t\t\tlayRowOfBricks(xStart, yStart, i);\n\t\t\tyStart += BRICK_HEIGHT + BRICK_SEP;\n\t\t}\t\n\t}", "public void autonomousInit() {\n\t\ttopLeft = new TalonSRX(13);\n\t\tbotLeft = new TalonSRX(12);\n\t\ttopRight = new TalonSRX(10);\n\t\tbotRight = new TalonSRX(11);\n\t\t\n\t\tbotLeft.follow(topLeft);\n\t\tbotRight.follow(topRight);\n\t}", "Border createBorder();", "private void setupBoard() {\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension(myWidth, myHeight));\n myBoard.addObserver(this);\n enableStartupKeys();\n }", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "public Bordereau() {\n\t\tsuper();\n\t}", "private void setUp() {\r\n add(myNextPiece, BorderLayout.NORTH);\r\n add(myScorePanel, BorderLayout.CENTER);\r\n add(myControl, BorderLayout.SOUTH);\r\n }", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }", "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }", "public void init(VisualizationProperties properties) {\n edge = properties.getEdge();\n Coordinate[] coordinates = properties.getCoordinates();\n properties.setCoordinates(coordinates);\n calcLimits(properties);\n calcOrigin();\n }", "protected void initialize() {\n Constants.frontClimbPlatformPositionSetpoint = SmartDashboard.getNumber(\"Front Climb Platform Setpoint\", Constants.frontClimbPlatformPositionSetpoint);\n\n Constants.frontClimbCommandTimeout = SmartDashboard.getNumber(\"Front Climb Command Timeout\", Constants.frontClimbCommandTimeout);\n\n \tsetTimeout(Constants.frontClimbCommandTimeout);\n\n \tFrontClimb._legState = FrontClimb.LegState.LEGS_MOVING; \t\t\n Robot._frontClimber.moveToPosition(Constants.frontClimbPlatformPositionSetpoint);\n }", "private void initialize() {\n\t\tthis.setSize(629, 270);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setPreferredSize(new Dimension(629, 270));\n\t\tthis.setMinimumSize(new Dimension(629, 270));\n\t\tthis.setMaximumSize(new Dimension(629, 270));\n\t\tthis.add(getJSplitPane2(), BorderLayout.CENTER);\n\t}", "private void init_all() \r\n\t{\r\n\t\tinit_draw_line();\r\n\t\tinit_free_hand_draw();\r\n\t}", "public static void init()\n {\n\n addShapeless();\n\n addShaped();\n }", "@Before\n public void setUp() {\n defaultColor1 = new Color(10, 10, 10);\n defaultPosition1 = new Position(0, 100);\n defaultSize1 = new Size(20, 20);\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, defaultSize1);\n defaultColor2 = new Color(100, 100, 100);\n defaultPosition2 = new Position(50, 50);\n defaultSize2 = new Size(25, 25);\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, defaultSize2);\n }", "private void init() {\n\n mCursorPaint = new Paint();\n mCursorPaint.setColor(Color.BLUE);\n\n mLimitPaint = new Paint();\n mLimitPaint.setColor(Color.YELLOW);\n\n mCoveredPaint = new Paint();\n mCoveredPaint.setColor(Color.CYAN);\n\n mRangePaint = new Paint();\n mRangePaint.setColor(Color.DKGRAY);\n\n mEraserPaint = new Paint();\n mEraserPaint.setColor(Color.TRANSPARENT);\n // ensure the erasing effect\n mEraserPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));\n }", "private void setUpCollisionBox()\n {\n \txLeftOffsetCollisionBox = width/COLLISION_WIDTH_DIV;\n \tcollisionBoxHeight = height - COLLISION_BOX_H_OFFSET;\n \n \tcollisionBox = new Rectangle(\n\t\t\t\t \t\txPos, \n\t\t\t\t \t\tyPos, \n\t\t\t\t \t\t(int)width / 2,\n\t\t\t\t \t\tcollisionBoxHeight);\n }", "private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }", "public void setBorder(int borderHeight, int borderWidth){\n this.borderHeight = borderHeight;\n this.borderWidth = borderWidth;\n }", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "private Rectangle init(Cartoon cartoon) {\n cartoon.invertY(); \n Rectangle bb = cartoon.boundingBox();\n\n this.centerDiagram(cartoon, CartoonDrawer.BORDER_WIDTH, CartoonDrawer.BORDER_WIDTH, bb.width, bb.height, bb);\n Point currentCorner = bb.getLocation();\n bb.translate(CartoonDrawer.BORDER_WIDTH - currentCorner.x, CartoonDrawer.BORDER_WIDTH - currentCorner.y);\n return bb;\n }", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }", "public void borders() {\n if (loc.y > height) {\n vel.y *= -bounce;\n loc.y = height;\n }\n if ((loc.x > width) || (loc.x < 0)) {\n vel.x *= -bounce;\n } \n //if (loc.x < 0) loc.x = width;\n //if (loc.x > width) loc.x = 0;\n }", "@Override public void begin() {\n horizontalCorner = new Location( 0, 200 );\n verticalCorner = new Location( 200, 0 );\n }", "public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }", "private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setUp() {\n move = new MoveSlidingTiles(2, 5, 3, 1);\n }", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "private void boardInit() {\n for(int i = 0; i < this.boardHeight; i++)\n this.board[i][0] = ' ';\n for(int i = 0; i < this.boardWidth; i++)\n this.board[0][i] = ' ';\n \n for(int i = 1; i < this.boardHeight; i++) {\n for(int j = 1; j < this.boardWidth; j++) {\n this.board[i][j] = '*';\n }\n }\n }", "protected void initialize() {\n \t\n \t// TODO: Switch to execute on changes based on alignment\n \tRobot.lightingControl.set(LightingObjects.BALL_SUBSYSTEM,\n LightingControl.FUNCTION_BLINK,\n LightingControl.COLOR_ORANGE,\n 0,\t\t// nspace - don't care\n 300);\t// period_ms \n }", "private void initialize() {\r\n\t\tsetLabels();\r\n\t\tinitPoints();\r\n\t\tsetButtons();\r\n\t\tthis.setTitle(\"Digite os pesos dos pontos\");\r\n\t\tthis.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t}", "public void initConstants() {\n //-0.85832\n double approxAngle = -0.84532;\n fac = Params.arrowSpeed;\n\n switch (course) {\n case 0: //TL\n offsetY = 0;\n offsetX = -15;\n angle = -approxAngle; // In rad, approximation with Maple\n fac *= -1;\n offsetShadow = new Point(12, 0);\n GoffsetArrow = new Point(16, -12);\n break;\n case 1: //TR\n angle = approxAngle;\n offsetY = -8;\n offsetX = -2;\n offsetShadow = new Point(-25, 0);\n GoffsetArrow = new Point(-30, -20);\n break;\n case 2: //R\n offsetY = 0;\n offsetX = 0;\n offsetShadow = new Point(-5, -12);\n GoffsetArrow = new Point(-10, -25);\n break;\n case 3: //BR\n angle = -approxAngle;\n offsetX = -16;\n offsetY = -5;\n offsetShadow = new Point(10, 0);\n GoffsetArrow = new Point(12, -15);\n break;\n case 4: //BL\n angle = approxAngle; // In rad, approximation with Maple\n fac *= -1;\n offsetY = -1;\n offsetX = 1;\n offsetShadow = new Point(-25, 0);\n GoffsetArrow = new Point(-22, -20);\n break;\n case 5: //L\n offsetY = 0;\n offsetX = 0;\n offsetShadow = new Point(-5, -12);\n GoffsetArrow = new Point(-8, -25);\n break;\n default: //TL\n try {\n throw (new Exception(\"Wrong ori\"));\n } catch (Exception e) {\n }\n break;\n }\n }", "protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }", "protected void setBorder(Border border) {\n\t\tthis.border = border;\n\t}", "private void init() {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n controlPanel = new ControlPanel(this);\n canvas = new DrawingPanel(this);\n shapeController = ShapeController.getInstance();\n\n shapeController.setFactory(new RegularPolygonShapeFactory(6, 50));\n optionsPanel = new RegularPolygonOptionsPanel(this, 6, 50);\n toolPanel = new ToolPanel(this);\n\n add(optionsPanel, BorderLayout.NORTH);\n add(canvas, BorderLayout.CENTER);\n add(controlPanel, BorderLayout.SOUTH);\n add(toolPanel, BorderLayout.EAST);\n\n pack();\n }", "protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}", "public void preSetup(){\n // Any of your pre setup before the loop starts should go here\n \n // border\n blocks[0] = new Rectangle(0, 0, 25, 600);\n blocks[1] = new Rectangle(775, 0, 25, 600);\n blocks[2] = new Rectangle(0, 0, 800, 25);\n blocks[3] = new Rectangle(0, 575, 800, 25);\n \n // starting room\n // right wall\n blocks[5] = new Rectangle(WIDTH / 2 + 75, 400, 25, 150);\n // left wall\n blocks[10] = new Rectangle(WIDTH / 2 - 100, 400, 25, 150);\n // centre\n blocks[7] = new Rectangle(WIDTH / 2 - 10, 450, 20, 150);\n // top wall\n blocks[11] = new Rectangle(WIDTH / 2 - 50, 400, 100, 25);\n \n \n // remember to copy to the other side\n // cover (west)\n blocks[4] = new Rectangle(200, 200, 25, 75);\n blocks[6] = new Rectangle(200 , 400, 25, 75);\n blocks[8] = new Rectangle(200, 310, 25, 50);\n blocks[9] = new Rectangle(200, 0, 25, 170);\n blocks[17] = new Rectangle(200 - 50, 145, 70, 25);\n blocks[23] = new Rectangle(0, 60, 100, 24);\n blocks[24] = new Rectangle(70, 500, 24, 100);\n blocks[25] = new Rectangle(70, 500, 80, 24);\n blocks[26] = new Rectangle();\n \n \n // cover (east)\n blocks[15] = new Rectangle(WIDTH - 225, 200, 25, 75);\n blocks[14] = new Rectangle(WIDTH - 225 , 400, 25, 75);\n blocks[13] = new Rectangle(WIDTH - 225, 310, 25, 50);\n blocks[12] = new Rectangle(WIDTH - 225, 0, 25, 170);\n blocks[16] = new Rectangle(WIDTH - 225, 145, 70, 25);\n blocks[27] = new Rectangle(WIDTH - 100, 60, 100, 24);\n blocks[28] = new Rectangle(WIDTH - 94, 500, 24, 100);\n blocks[29] = new Rectangle(WIDTH - 94 - (80-24), 500, 80, 24);\n blocks[30] = new Rectangle();\n \n // cover (middle)\n // vertical\n blocks[18] = new Rectangle(WIDTH/ 2 - 10, 150, 20, 125);\n blocks[22] = new Rectangle(WIDTH/ 2 - 10, 300, 20, 50);\n // horizontal\n blocks[19] = new Rectangle(WIDTH/ 2 - 100, 175, 200, 20);\n blocks[20] = new Rectangle(WIDTH/ 2 - 100, 225, 200, 20);\n blocks[21] = new Rectangle(WIDTH/ 2 - 100, 350, 200, 20);\n \n \n // extras\n blocks[31] = new Rectangle();\n blocks[32] = new Rectangle();\n \n // flag on the level\n flag[0] = new Rectangle((int)(Math.random()*((WIDTH - 40) - 40 + 1)) + 40, (int)(Math.random()*((HEIGHT - 40) - 40 + 1)) + 40, 35, 26);\n flagPole[0] = new Rectangle(flag[0].x, flag[0].y, 4, 45);\n flagLogo[0] = new Rectangle(flag[0].x + 15, flag[0].y + (13/2), 20, 15);\n \n }", "private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }", "private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }", "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "private static void fillBorders()\n\t{\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tif(i==0 || i==board.length-1)\n\t\t\t\tArrays.fill(board[i], Cells.WALL);\n\t\t\telse\n\t\t\t{\n\t\t\t\tboard[i][0]=Cells.WALL;\n\t\t\t\tboard[i][board[i].length-1]=Cells.WALL;\n\t\t\t}\n\t\t}\n\t}", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "private void initialize() {\n //Asteroid Shape (8 sided)\n polygon = new Vector2f[]{new Vector2f(400, -800), new Vector2f(-400, -800), new Vector2f(-800, -400),\n new Vector2f(-800, 400), new Vector2f(-400, 800), new Vector2f(400, 800), new Vector2f(800, 400), new Vector2f(800, -400)};\n //Translation variables\n this.tx = spawnX;\n this.ty = spawnY; //Start above screen to gain momentum\n this.velocity = new Vector2f();\n\n //World initialize\n this.world = new Matrix3x3f();\n\n }", "public GoalViewer()\r\n/* 25: */ {\r\n/* 26: 28 */ setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n/* 27: */ }", "private void initialize() {\r\n \r\n // Set style\r\n setStroke(Color.BLACK);\r\n \r\n // Bind position to model.\r\n model.xProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterX(ShoeView.shoeToViewX(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n model.yProperty().addListener(new ChangeListener<Number>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\r\n if (newValue.doubleValue() == 1000) {\r\n setVisible(false);\r\n }\r\n else {\r\n setVisible(true);\r\n setCenterY(ShoeView.shoeToViewY(newValue.doubleValue(), model.getSide()));\r\n }\r\n }\r\n });\r\n }", "public void initialize(){\n this.height = DrawingHelper.getGameViewHeight();\n this.width = DrawingHelper.getGameViewWidth();\n this.xCoordinate = (AsteroidsData.getInstance().getShip().getxCoordinate() - this.width/2);\n this.yCoordinate = (AsteroidsData.getInstance().getShip().getyCoordinate() - this.height/2);\n\n initializeBounds();\n }", "private void init() {\r\n\t\tint linePos = this.playBoard.length / 2;\r\n\t\tint columnPos = this.playBoard[0].length / 2;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tplayBoard[i][j] = '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\tplayBoard[linePos - 1][columnPos - 1] = 'W';\r\n\t\tplayBoard[linePos - 1][columnPos] = 'B';\r\n\t\tplayBoard[linePos][columnPos] = 'W';\r\n\t\tplayBoard[linePos][columnPos - 1] = 'B';\r\n\t}", "@Test\n public void testBorderHorizontal() {\n System.out.println(\"borderHorizontal\");\n int x = 0;\n int y = 0;\n int decks = 0;\n int i = 0;\n int[][] field = null;\n int state = 0; \n instance.borderHorizontal(x, y, decks, i, field, state);\n \n }", "private void appearance()\r\n\t\t{\n\t\tgridLayout.setHgap(5);\r\n\t\tgridLayout.setVgap(5);\r\n\r\n\t\t//set the padding + external border with title inside the box\r\n\t\tBorder lineBorder = BorderFactory.createLineBorder(Color.BLACK);\r\n\t\tBorder outsideBorder = BorderFactory.createTitledBorder(lineBorder, title, TitledBorder.CENTER, TitledBorder.TOP);\r\n\t\tBorder marginBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5);\r\n\t\tthis.setBorder(BorderFactory.createCompoundBorder(outsideBorder, marginBorder));\r\n\r\n\t\t//set initial value to builder\r\n\t\tdiceBuilder.setInterval(min, max);\r\n\t\t}", "public void initialize() {\n\t\tbombLabel.setText(\"Flag: \" + game.getFlagCounter() + \"/\" + game.getNumOfBombs());\n\t\ttimerLabel.setText(\"Time: \" + 0);\n\t\tboard.getStyleClass().add(\"grid\");\n\t\tbtnArray = new Button[game.getHeight()][game.getWidth()];\n\t\tfor (int x = 0; x < game.getHeight(); x++) {\n\t\t\tfor (int y = 0; y < game.getWidth(); y++) {\n\t\t\t\tButton btn = new Button(\"\");\n\t\t\t\tbtnArray[x][y] = btn;\n\t\t\t\tbtn.setMaxSize(50, 50);\n\t\t\t\tbtn.setMinSize(50, 50);\n\t\t\t\t//Add Button to the board (GridPane)\n\t\t\t\tboard.add(btn, x, y);\n\t\t\t\tbtn.setId(x + \" . \" + y);\n\t\t\t\tbtn.setOnMouseClicked(e -> TileClicked(e));\n\t\t\t}\n\t\t}\n\t}", "private void drawWindowSetup(){\n\t\t//draw header\n\t\ttopBar.draw(graphics);\n\t\t//draw footer\n\t\tbottomBar.draw(graphics);\n\t\t//draw right bar\n\t\trightBar.draw(graphics);\n\t}", "private void init() {\n\t\tcreateSubjectField();\n\t\tcreateTextField();\n\t\tcreateButton();\n\t\tsetupSubjectPanel();\n\t\tsetupToDoPanel();\n\n\t\tsetBorder(BorderFactory.createTitledBorder(\"To Do List\"));\n\t\tsetLayout(new BorderLayout());\n\t\tadd(pnlSubject, BorderLayout.NORTH);\n\t\tadd(scroll, BorderLayout.CENTER);\n\t\tadd(pnlButton, BorderLayout.SOUTH);\n\t}", "private void updateBorderSpecs() {\n if(mPolygonShapeSpec.hasBorder()) {\n mBorderPaint.setStrokeWidth(mPolygonShapeSpec.getBorderWidth());\n mBorderPaint.setColor(mPolygonShapeSpec.getBorderColor());\n } else {\n mBorderPaint.setStrokeWidth(0);\n mBorderPaint.setColor(0);\n }\n updatePolygonSize();\n invalidate();\n }", "private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}", "protected void init() {\n currentState.bgColor = appliedState.bgColor = gc.getBackground();\n currentState.fgColor = appliedState.fgColor = gc.getForeground();\n currentState.font = appliedState.font = gc.getFont();\n currentState.lineAttributes = gc.getLineAttributes();\n appliedState.lineAttributes = clone(currentState.lineAttributes);\n currentState.graphicHints |= gc.getLineStyle();\n currentState.graphicHints |= gc.getAdvanced() ? ADVANCED_GRAPHICS_MASK\n : 0;\n currentState.graphicHints |= gc.getXORMode() ? XOR_MASK : 0;\n\n appliedState.graphicHints = currentState.graphicHints;\n\n currentState.relativeClip = new RectangleClipping(gc.getClipping());\n currentState.alpha = gc.getAlpha();\n }", "private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}", "public BorderPanel(){\r\n setLayout(new BorderLayout());\r\n setBackground(Color.green);\r\n JButton b1 = new JButton(\"Button 1\");\r\n JButton b2 = new JButton(\"Button 2\");\r\n JButton b3 = new JButton(\"Button 3\");\r\n JButton b4 = new JButton(\"Button 4\");\r\n JButton b5 = new JButton(\"Button 5\");\r\n add(b1, BorderLayout.CENTER);\r\n add(b2, BorderLayout.NORTH);\r\n add(b3, BorderLayout.SOUTH);\r\n add(b4, BorderLayout.EAST);\r\n add(b5, BorderLayout.WEST);\r\n }", "public void init(){\n this.grid[7][6].setWall(ERRGameMove.DOWN, false);\n this.grid[8][6].setWall(ERRGameMove.DOWN, false);\n this.grid[7][9].setWall(ERRGameMove.UP, false);\n this.grid[8][9].setWall(ERRGameMove.UP, false);\n \n this.grid[6][7].setWall(ERRGameMove.RIGHT, false);\n this.grid[6][8].setWall(ERRGameMove.RIGHT, false);\n this.grid[9][7].setWall(ERRGameMove.LEFT, false);\n this.grid[9][8].setWall(ERRGameMove.LEFT, false);\n }", "private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}", "private void setup() {\n this.jpanel = new JPanel(new BorderLayout());\n this.jframe = new JFrame(\"Minesweeper\");\n this.jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.jframe.setSize(sizeX * LENGTH + 18, (sizeY + 1) * LENGTH + 43);\n\n this.jframe.setVisible(true);\n this.jpanel.addMouseListener(this);\n this.jpanel.setSize(sizeX * LENGTH, (sizeY + 1) * LENGTH);\n this.jframe.add(this.jpanel);\n\n this.g = jpanel.getGraphics();\n }", "public void init() {\n LayoutParams params = new LayoutParams(\n KeyboardHandler.keyboard_width,\n KeyboardHandler.character_view_height);\n this.setLayoutParams(params);\n mWidth = params.width;\n mHeight = params.height;\n seperatorPaint.setStrokeWidth(2);\n seperatorPaint.setColor(KeyboardHandler.default_font_color);\n initCharAreas();\n }", "public void initialize() {\n\t\ttoolBar.setDrawingPanel(this.drawingPanel);\r\n\t\t//component initialize\r\n\t\tmenuBar.initialize();\r\n\t\ttoolBar.initialize();\r\n\t\tdrawingPanel.initialize();\r\n\t\t\r\n\t}", "public void setup() {\n\t\tshapes[0] =new Shape (10,10);\n\t\tshapes[1] = new Rect (20,20,10,10);\n\t\tshapes[2]=new Oval (30,30,10,10);\n\t\tshapes[3] = new RoundedRect (70,70,40,40);\n\t}" ]
[ "0.71780294", "0.69737434", "0.6700286", "0.66617393", "0.66321737", "0.6492679", "0.64327186", "0.6287483", "0.6239877", "0.6231945", "0.6203368", "0.6202462", "0.6183553", "0.61487126", "0.6140147", "0.61366695", "0.6085276", "0.6052699", "0.6024634", "0.60198754", "0.60042334", "0.5994605", "0.5990612", "0.59663904", "0.5928133", "0.5925897", "0.59202266", "0.591323", "0.5890914", "0.5882021", "0.58693546", "0.586567", "0.5864039", "0.5852478", "0.5844522", "0.5840882", "0.58280367", "0.58099043", "0.580617", "0.58011", "0.57886523", "0.5771962", "0.5767312", "0.5761346", "0.57405216", "0.57344383", "0.5722496", "0.5720614", "0.5719897", "0.5711201", "0.5710501", "0.5704612", "0.5695704", "0.5693254", "0.5682116", "0.5681742", "0.5681631", "0.56749725", "0.5665387", "0.5655486", "0.5651703", "0.56491673", "0.5645327", "0.5644768", "0.56322193", "0.5619145", "0.56139773", "0.5613289", "0.5609028", "0.56064415", "0.5606355", "0.5604508", "0.55935144", "0.5586524", "0.55800074", "0.5579394", "0.55785596", "0.55755097", "0.55732036", "0.5561076", "0.55599594", "0.5554649", "0.5549413", "0.5546481", "0.55452883", "0.5542938", "0.5542158", "0.5534199", "0.55315846", "0.55297095", "0.5524356", "0.5522921", "0.55198145", "0.55160344", "0.551469", "0.5510615", "0.55100393", "0.54910433", "0.5489729", "0.5488465" ]
0.72280264
0
Set Gaussian blur RGB.
private void doGaussainBlurRGB(BufferedImage img, int minBlurX, int maxBlurX, int minBlurY, int maxBlurY, int x, int y, int blurWidth, int blurHeight, int srcRgb) { img.setRGB(x, y, srcRgb); // Nothing blur // int[] inPixels = new int[blurWidth * blurHeight]; // int[] outPixels = new int[blurWidth * blurHeight]; // java.awt.image.Kernel kernel = GaussianFilter.makeKernel(0.667f); // GaussianFilter.convolveAndTranspose(kernel, inPixels, outPixels, // blurWidth, blurHeight, true, GaussianFilter.CLAMP_EDGES); // GaussianFilter.convolveAndTranspose(kernel, outPixels, inPixels, // blurHeight, blurWidth, true, GaussianFilter.CLAMP_EDGES); // img.setRGB(x, y, blurWidth, blurHeight, inPixels, 0, blurWidth); // int v = 0; // if ((maxBlurY - minBlurY) > (maxBlurX - minBlurX)) { // Left/Right? // v = (int) (Math.abs(240 - Math.abs(x - minBlurX) * 20)); // } else { // v = (int) (Math.abs(240 - Math.abs(y - minBlurY) * 20)); // } // img.setRGB(x, y, new Color(v, v, v).getRGB()); // NormalDistribution nd = new NormalDistribution(0, 1.44); // int r = (0xff & srcRgb); // int g = (0xff & (srcRgb >> 8)); // int b = (0xff & (srcRgb >> 16)); // srcRgb = r + (g << 8) + (b << 4) + (100 << 24); // img.setRGB(x, y, Color.white.getRGB()); // img.setRGB(x, y, new Color(220, 220, 220).getRGB()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage gaussianBlurImage(double raduis, double sigma)\n\t\t\tthrows MagickException;", "private void gaussianBlur() {\n targetImage = new Mat();\n Utils.bitmapToMat(lena, targetImage);\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_BGR2RGB);\n\n gaussianBlur(targetImage.getNativeObjAddr());\n\n // create a bitMap\n Bitmap bitMap = Bitmap.createBitmap(targetImage.cols(),\n targetImage.rows(), Bitmap.Config.RGB_565);\n // convert Mat to Android's bitmap:\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_RGB2BGR);\n Utils.matToBitmap(targetImage, bitMap);\n\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bitMap);\n }", "public native MagickImage blurImage(double raduis, double sigma)\n\t\t\tthrows MagickException;", "void blur();", "void blur();", "public void blurImage()\r\n {\r\n if (!isChanged && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {1/9f, 1/9f, 1/9f, 1/9f,1/9f,1/9f,1/9f,1/9f,1/9f,1/9f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp blur = new ConvolveOp(kernel); \r\n\t cropedEdited = blur.filter(cropedEdited, null);\r\n repaint();\r\n }", "public static void blur (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n\n float[] matrix = {\n 0.111f, 0.111f, 0.111f, \n 0.111f, 0.111f, 0.111f, \n 0.111f, 0.111f, 0.111f, \n };\n\n BufferedImageOp op = new ConvolveOp( new Kernel(3, 3, matrix) );\n BufferedImage sourceImage = deepCopy(bi);\n op.filter(sourceImage, bi);\n redoList.add(deepCopy(bi)); // add the image to the redo list\n }", "public void blur(){\n\n\n }", "public void useGaussianDeviates(){\n this.gaussianDeviates = true;\n }", "public native MagickImage blurImageChannel(int channel, double raduis,\n\t\t\tdouble sigma) throws MagickException;", "public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }", "public void setGaussian(double ragam, double x, double rataan) {\n g1 = 1 / Math.sqrt(2 * 22 / 7 * ragam * ragam);\n g3 = -((x - rataan) * (x - rataan)) / (2 * ragam * ragam);\n g2 = Math.pow(2.718, g3);\n gauss = g1 * g2;\n }", "private static void gaussianSmooth(double[] img, int width, int height, double sigma) {\n\t\tint radius = (int)Math.sqrt((6.908)*(2*sigma*sigma));\n\t\t// compute coefficients of the gaussian filter\n\t\tdouble[] filter = new double[2*radius+1];\n\t\tdouble filtersum = 0;\n\n\t\tfor(int i=-radius;i<=radius;i++) {\n\t\t\tdouble g = gaussian(i,sigma);\n\t\t\tfilter[i+radius]=g;\n\t\t\tfiltersum+=g;\n\t\t}\n\n\t\tfor(int i=-radius;i<=radius;i++) {\n\t\t\tfilter[i+radius]=filter[i+radius]/(2*filtersum);//2 since 1D-filter will be used in x and y directions\n\t\t}\n\n\t\tconvolveInX(img, width, height, filter, radius);\n\t\tconvolveInY(img, width, height, filter, radius);\n\n\t}", "void setColor(float r, float g, float b) {\n color c = color(r, g, b);\n for(int x = 0; x < _img.width; x++) {\n for(int y = 0; y < _img.height; y++) {\n _img.set(x, y, c);\n }\n }\n }", "public static BufferedImage blur( final BufferedImage input )\n {\n return BLUR.filter( input, null );\n }", "private native void setModelColor(float r,float g,float b);", "public void setGaussFK() {\n for (int i = 0; i < 10; i++) {\n setGaussian(devFK[i], nilai[i], meanFK[i]);\n gaussFK[i] = getGaussian();\n }\n }", "public static Picture gaussian(Picture picture) {\r\n double[][] gaussina = {\r\n {1.0/16, 2.0/16, 1.0/16},\r\n {2.0/16, 4.0/16, 2.0/16},\r\n {1.0/16, 2.0/16, 1.0/16}\r\n };\r\n return transform(picture, gaussina);\r\n }", "public void gaussianSmooth(final byte[] f, int width, int height, double sigma) {\n\t\tdouble[] img = new double[width * height];\n\t\tbyteToDouble(f, img);\n\t\tgaussianSmooth(img, width, height, sigma);\n\t\tdoubleToByte(f, img);\n\t\t//System.out.println(\"finish\");\n\t}", "public static void blurIn(Node node) {\n GaussianBlur blur = (GaussianBlur) node.getEffect();\n Timeline timeline = new Timeline();\n KeyValue kv = new KeyValue(blur.radiusProperty(), NO_BLUR);\n KeyFrame kf = new KeyFrame(Duration.millis(LIFESPAN_BLUR), kv);\n timeline.getKeyFrames().add(kf);\n timeline.setOnFinished(actionEvent -> node.setEffect(null));\n timeline.play();\n }", "private void doBlur(int times){\n \n int pixel, x,y;\n long s,r,g,b;\n //times the image will be blurred with the kernel\n for (int t = 0; t < times; t++) {\n //march pixels\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n //reset colors\n r = g = b = s = 0;\n //march pixels inside kernel\n for (int k = 0; k < kernelSize; k++) {\n for (int l = 0; l < kernelSize; l++) {\n //get rgb color from pixel\n x = j + l - kernelCenter; \n y = i + k - kernelCenter;\n try{\n if( x>=0 && x<512 && y>=0 && y<512 ){\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n r += ((pixel >> 16) & 0xff) * kernel[k][l];\n g += ((pixel >> 8) & 0xff) * kernel[k][l];\n b += ((pixel) & 0xff) * kernel[k][l];\n s += kernel[k][l];\n }\n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"Error en \"+x+\",\"+y);\n }\n }\n }\n //averages\n r = Math.round(r/s);\n if(r>255) {System.out.println(r+\" entro r > 255 en \"+j+\",\"+i); r=255; }\n else if(r<0) {System.out.println(r+\" entro r < 255 en \"+j+\",\"+i); r=0; }\n g = Math.round(g/s);\n if(g>255) {System.out.println(g+\" entro g > 255 en \"+j+\",\"+i); g=255; }\n else if(g<0) {System.out.println(g+\" entro g < 255 en \"+j+\",\"+i); g=0; }\n b = Math.round(b/s);\n if(b>255) {System.out.println(b+\" entro b > 255 en \"+j+\",\"+i); b=255; }\n else if(b<0) {System.out.println(b+\" entro b < 255 en \"+j+\",\"+i); b=0; }\n //set the new rgb\n imageKerneled2.setRGB(j,i,new Color((int)r,(int)g,(int)b).getRGB());\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished blur: \"+(t+1));\n }\n }", "public void setRgbColorAtPowerOnBg(int newval) throws YAPI_Exception\n {\n _rgbColorAtPowerOn = newval;\n _ycolorled.set_rgbColorAtPowerOn(newval);\n }", "public void setBrightness(float bri) {\r\n\t\thsb[2] = bri;\r\n\t}", "public void setColor(float r, float g, float b, float a);", "public static Picture gaussian(Picture picture) {\n double[][] weights = { { 1 / 16.0, 2 / 16.0, 1 / 16.0 }, { 2 / 16.0, 4 / 16.0, 2 / 16.0 },\n { 1 / 16.0, 2 / 16.0, 1 / 16.0 }, };\n return kernel(picture, weights);\n }", "public native void setFilter(int filter) throws MagickException;", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "void setColor(int r, int g, int b);", "public static int getGreyscale(int argb){\n\t\tint red = argb & 0xff;\n\t\tint green = (argb >> 8) & 0xff;\n\t\tint blue = (argb >> 16) & 0xff;\n\t\tint avg = ((red + green + blue) / 3) & 0xff;\n\t\tint grey = (0xff << 24) + (avg << 16) + (avg << 8) + avg;\n\t\treturn grey;\n\t}", "private void overexposure(Bitmap bmp) {\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n int[] pixels = new int[w*h];\n bmp.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++) {\n float[] hsv = new float[3];\n Color.RGBToHSV(Color.red(pixels[i]), Color.green(pixels[i]), Color.blue(pixels[i]), hsv);\n hsv[2] *= 1.5;\n pixels[i] = Color.HSVToColor(hsv);\n }\n bmp.setPixels(pixels, 0, w, 0, 0, w, h);\n }", "public void adjustRgba( float[] rgba, float value ) {\n rgba[ 3 ] *= value * value;\n }", "public void setColor(int r, int g, int b);", "public void setBackgroundImage(BufferedImage inputImage) {\r\n\t\tif (inputImage == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Background image is null!\");\r\n\t\t} else {\r\n\t\t\tthis.backgroundImage = imageBlur.averageBlur(inputImage, blurRadius);\r\n\t\t}\r\n\t}", "private void brightnessEffect(int barra) {\n float val = barra / 20f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_BRIGHTNESS);\n effect.setParameter(\"brightness\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private void saturateEffect(int barra) {\n float val = barra / 100f - 1f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_SATURATE);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "public int filterRGB(int x, int y, int argb) {\n color = new Color(argb);\n newBlue = multColor(color.getBlue(), blueMultiplier);\n newGreen = multColor(color.getGreen(), greenMultiplier);\n newRed = multColor(color.getRed(), redMultiplier);\n newColor = new Color(newRed, newGreen, newBlue);\n return (newColor.getRGB());\n }", "public static void bilateralTextureFilter(Mat src, Mat dst, int fr, int numIter, double sigmaAlpha, double sigmaAvg)\r\n {\r\n \r\n bilateralTextureFilter_0(src.nativeObj, dst.nativeObj, fr, numIter, sigmaAlpha, sigmaAvg);\r\n \r\n return;\r\n }", "public void filterImage()\r\n {\r\n\t if (!isInverted && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {0.0f, 1.0f, 0.0f, -1.0f,brightnessLevel,1.0f,0.0f,0.0f,0.0f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp change = new ConvolveOp(kernel); \r\n\t cropedEdited = change.filter(cropedEdited, null);\r\n repaint();\r\n }", "public static void blurOut(Node node) {\n GaussianBlur blur = new GaussianBlur(NO_BLUR);\n node.setEffect(blur);\n Timeline timeline = new Timeline();\n KeyValue kv = new KeyValue(blur.radiusProperty(), BLUR);\n KeyFrame kf = new KeyFrame(Duration.millis(LIFESPAN_BLUR), kv);\n timeline.getKeyFrames().add(kf);\n timeline.play();\n }", "void greyscale();", "void greyscale();", "public static Picture motionBlur(Picture picture) {\n double[][] weights = { { 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },\n { 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },\n { 0.0, 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },\n { 0.0, 0.0, 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0, 0.0 },\n { 0.0, 0.0, 0.0, 0.0, 1 / 9.0, 0.0, 0.0, 0.0, 0.0 },\n { 0.0, 0.0, 0.0, 0.0, 0.0, 1 / 9.0, 0.0, 0.0, 0.0 },\n { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1 / 9.0, 0.0, 0.0 },\n { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1 / 9.0, 0.0 },\n { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1 / 9.0 }, };\n return kernel(picture, weights);\n }", "private void adjustBrightness(int[][] colorArray,double factor){\n\t\tfor(int i=0;i<colorArray.length;i++){\n\t\t\tfor(int j=0;j<colorArray[0].length;j++){\n\t\t\t\tdouble newVal=colorArray[i][j]*factor;\n\t\t\t\tif(newVal>255){//if the value exceeds the color limit assign to the max value\n\t\t\t\t\tnewVal=255.0;\n\t\t\t\t}\n\t\t\t\tcolorArray[i][j]=(int) newVal;\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}", "int[][][] blurImage(int[][][] imageArray, int height, int width);", "public void blurShadow(Graphics2D g, Shape clipShape) {\n Rectangle tmp = clipShape.getBounds();\n int width = tmp.x + tmp.width;\n int height = tmp.y + tmp.height;\n tmp.setRect(0, 0, width + getEffectWidth() * 2 + 1,\n height + getEffectWidth() * 2 + 1);\n\n // Apply the border glow effect \n BufferedImage clipImage = getClipImage(tmp);\n Graphics2D g2dImage = clipImage.createGraphics();\n try {\n /* clear the buffer */\n g2dImage.setComposite(AlphaComposite.Clear);\n g2dImage.fillRect(0, 0, clipImage.getWidth(), clipImage.getHeight());\n /* translate with offset */\n g2dImage.translate(getEffectWidth() - getOffset().getX(),\n getEffectWidth() - getOffset().getY());\n /* */\n g2dImage.setComposite(AlphaComposite.Src);\n g2dImage.setPaint(getBrushColor());\n g2dImage.translate(offset.getX(), offset.getY());\n g2dImage.fill(clipShape);\n g2dImage.translate(-offset.getX(), -offset.getY());\n } finally {\n /* draw the final image */\n g2dImage.dispose();\n }\n g.drawImage(clipImage, blurKernel, -getEffectWidth() + (int) getOffset().getX(),\n -getEffectWidth() + (int) getOffset().getY());\n }", "public void setGrayscale() throws MagickException {\n\t\tQuantizeInfo quantizeInfo = new QuantizeInfo();\n\t\tquantizeInfo.setColorspace(ColorspaceType.GRAYColorspace);\n\t\tquantizeInfo.setNumberColors(256);\n\t\tquantizeInfo.setTreeDepth(8);\n\t\tquantizeImage(quantizeInfo);\n\t}", "@Override\r\n\tpublic void makeTransform() {\n\r\n\t\tImgproc.GaussianBlur(src, dst, new Size(size, size),\r\n\t\t\t\tTransConstants.GAUSSIAN_SIGMA);\r\n\r\n\t}", "@Override\n protected int getBlurRadius() {\n return 7;\n }", "private void grayscale(){\n int len= currentIm.getRows() * currentIm.getCols();\n \n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= DM.getRed(rgb);\n int blue= DM.getBlue(rgb);\n int green= DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n \n double brightness = 0.3 * red + 0.6 * green + 0.1 * blue;\n \n currentIm.setPixel(p,\n (alpha << 24) | ((int)brightness << 16) | ((int)brightness << 8) | (int)brightness);\n \n }\n }", "public void setBlurSize(float blurSize) {\n mBlurSize = blurSize;\n runOnDraw(new Runnable() {\n @Override\n public void run() {\n initTexelOffsets();\n }\n });\n }", "public Gaussian() {\r\n this(1, 0, 1);\r\n }", "private Picture blur(Picture p, int blurredFactor) {\n\t\tPicture output = new PictureImpl(p.getWidth(), p.getHeight());\n\t\tdouble totalRed = 0.0;\n\t\tdouble totalGreen = 0.0;\n\t\tdouble totalBlue = 0.0;\n\t\tint total = 0;\n\t\tfor (int i = 0; i < p.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < p.getHeight(); j++) {\n\t\t\t\tfor (int m = i - blurredFactor; m < i - blurredFactor + (2 * blurredFactor + 1); m++) {\n\t\t\t\t\tfor (int n = j - blurredFactor; n < j - blurredFactor + (2 * blurredFactor + 1); n++) {\n\t\t\t\t\t\tif ((m - blurredFactor >= 0 && n - blurredFactor >= 0)\n\t\t\t\t\t\t\t\t&& (m < p.getWidth() && n < p.getHeight())) {\n\t\t\t\t\t\t\ttotalRed = totalRed + p.getPixel(m, n).getRed();\n\t\t\t\t\t\t\ttotalGreen = totalGreen + p.getPixel(m, n).getGreen();\n\t\t\t\t\t\t\ttotalBlue = totalBlue + p.getPixel(m, n).getBlue();\n\t\t\t\t\t\t\ttotal++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdouble avgRed = totalRed / total;\n\t\t\t\tdouble avgGreen = totalGreen / total;\n\t\t\t\tdouble avgBlue = totalBlue / total;\n\t\t\t\toutput.setPixel(i, j, new ColorPixel(avgRed, avgGreen, avgBlue));\n\t\t\t\ttotalRed = 0.0;\n\t\t\t\ttotalGreen = 0.0;\n\t\t\t\ttotalBlue = 0.0;\n\t\t\t\ttotal = 0;\n\t\t\t}\n\n\t\t}\n\n\t\treturn output;\n\t}", "public static Bitmap blurBitmap(Context context, Bitmap bitmap) {\n Bitmap outBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\n // Initialize Renderscript, which provides RenderScript context. Before creating other RS classes, you must create this class, which controls the initialization, resource management and release of Renderscript.\n RenderScript rs = RenderScript.create(context);\n\n // Creating Gauss Fuzzy Objects\n ScriptIntrinsicBlur blurScript = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));\n\n // Create Allocations, the main way to pass data to the RenderScript kernel, and create a backup type to store a given type\n Allocation allIn = Allocation.createFromBitmap(rs, bitmap);\n Allocation allOut = Allocation.createFromBitmap(rs, outBitmap);\n\n //Set ambiguity (Note: Radius can only be set to the maximum25.f)\n blurScript.setRadius(15.f);\n\n // Perform the Renderscript\n blurScript.setInput(allIn);\n blurScript.forEach(allOut);\n\n // Copy the final bitmap created by the out Allocation to the outBitmap\n allOut.copyTo(outBitmap);\n\n // recycle the original bitmap\n // bitmap.recycle();\n\n // After finishing everything, we destroy the Renderscript.\n rs.destroy();\n\n return outBitmap;\n\n }", "public final static int RGB2Grey(int argb) {\n int r = (argb >> 16) & 0xff;\n int g = (argb >> 8) & 0xff;\n int b = (argb) & 0xff;\n\n //int rgb=(0xff000000 | ((r<<16)&0xff0000) | ((g<<8)&0xff00) | (b&0xff));\n int y = (int) Math.round(0.299f * r + 0.587f * g + 0.114f * b);\n return y;\n }", "public void setSaturation(float value) {\n colorizerMatrix.setSaturation(value);\n ColorMatrixColorFilter colorizerFilter = new ColorMatrixColorFilter(colorizerMatrix);\n mBitmapDrawable.setColorFilter(colorizerFilter);\n }", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "public static int unpackGrayscale(int argb) {\n\t return (unpackRed(argb) + unpackGreen(argb) + unpackBlue(argb)) / 3;\n\t}", "void setBlue(int x, int y, int value);", "public static void main(String... args) throws Exception {\n\t\tString dataDir = Utils.getSharedDataDir(BluranImage.class) + \"ModifyingImages/\";\r\n\t\t//ExStart:BluranImage\r\n\t\tImage image = Image.load(dataDir + \"aspose-logo.jpg\");\r\n\t\t// Convert the image into RasterImage.\r\n\t\tRasterImage rasterImage = (RasterImage) image;\r\n\r\n\t\t// Pass Bounds[rectangle] of image and GaussianBlurFilterOptions\r\n\t\t// instance to Filter method.\r\n\t\trasterImage.filter(rasterImage.getBounds(), new GaussianBlurFilterOptions(5, 5));\r\n\r\n\t\t// Save the results to output path.\r\n\t\trasterImage.save(dataDir + \"BluranImage_out.gif\");\r\n\t\t//ExEnd:BluranImage\r\n\t}", "public void scaleColor(double rScale, double gScale, double bScale)\n {\n \n Pixel[] originPixel = this.getPixels();\n //loop through all pixels in the calling object and parameter \n for(Pixel pixelobj:originPixel){\n pixelobj.setGreen((int)((double)pixelobj.getGreen()*gScale));\n pixelobj.setBlue((int)((double)pixelobj.getBlue()*bScale));\n pixelobj.setRed((int)((double)pixelobj.getRed()*rScale));\n //check conditions and set ceiling and floor for values above and below them.\n if(pixelobj.getGreen()>255){\n pixelobj.setGreen(255);\n }\n if(pixelobj.getRed()>255){\n pixelobj.setRed(255);\n }\n if(pixelobj.getBlue()>255){\n pixelobj.setBlue(255);\n }\n if(pixelobj.getBlue()<0){\n pixelobj.setBlue(0);\n }\n if(pixelobj.getRed()<0){\n pixelobj.setRed(0);\n }\n if(pixelobj.getGreen()<0){\n pixelobj.setGreen(0);\n }\n }\n \n \n }", "public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }", "public Builder setNoiseSigma(float value) {\n\n gradientNoiseSigmaCase_ = 1;\n gradientNoiseSigma_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "public void setColor( float[] c )\n\t{\n\t\tcolorWeight[0] = c[0];\n\t\tcolorWeight[1] = c[1];\n\t\tcolorWeight[2] = c[2];\n\t\t\n\t\t//color = null;\n\t\tcolor = new Color( colorWeight[0], colorWeight[1], colorWeight[2] );\n\t}", "public static Picture motionBlur(Picture picture) {\r\n double[][] motionBlur = {\r\n {1.0/9,0,0,0,0,0,0,0,0},\r\n {0,1.0/9,0,0,0,0,0,0,0},\r\n {0,0,1.0/9,0,0,0,0,0,0},\r\n {0,0,0,1.0/9,0,0,0,0,0},\r\n {0,0,0,0,1.0/9,0,0,0,0},\r\n {0,0,0,0,0,1.0/9,0,0,0},\r\n {0,0,0,0,0,0,1.0/9,0,0},\r\n {0,0,0,0,0,0,0,1.0/9,0},\r\n {0,0,0,0,0,0,0,0,1.0/9},\r\n };\r\n return transform(picture, motionBlur);\r\n }", "public static void applyBlurredBackground(final Context context, View srcView, final View destView, final float radius, final int dimColor) {\n destView.setBackgroundColor(context.getResources().getColor(dimColor));\n //\n final Bitmap bitmap = UiUtil.getDrawingCache(srcView);\n new AsyncTaskLoader<Drawable>(context) {\n\n @Override\n public Drawable loadInBackground() {\n BitmapDrawable drawable = null;\n if (bitmap != null) {\n try {\n UiUtil.applyBlur(getContext(), bitmap, radius);\n drawable = new BitmapDrawable(context.getResources(), bitmap);\n drawable.setColorFilter(context.getResources().getColor(dimColor), PorterDuff.Mode.DARKEN);\n } catch (RSRuntimeException | OutOfMemoryError e) {\n Timber.w(e, \"Blurred background will be replaced to dimmed due to error\");\n bitmap.recycle();\n }\n }\n return drawable;\n }\n\n @Override\n public void deliverResult(Drawable data) {\n try {\n if (data != null) {\n UiUtil.setBackgroundCompat(destView, data);\n }\n } catch (OutOfMemoryError e) {\n Timber.w(e, \"Blurred background will be replaced to dimmed due to error\");\n }\n }\n }.forceLoad();\n\n }", "private void blueGradient(BufferedImage myBufferedImage,\n ImageView myImage) {\n gradientPainter.setGradientColor(Color.BLUE);\n BufferedImage img = gradientPainter.process(myBufferedImage);\n myImage.setImage(SwingFXUtils.toFXImage(img, null));\n }", "void fill(int rgb);", "private void grainEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_GRAIN);\n effect.setParameter(\"strength\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void SetRGB(byte numR, byte numG, byte numB) {\r\n\t\tm_numR = numR;\r\n\t\tm_numG = numG;\r\n\t\tm_numB = numB;\r\n\t}", "public void setForeground(float[] rvba_01){\n\t\tswingComponent.setForeground(new Color(rvba_01[R_INDEX], rvba_01[G_INDEX], rvba_01[B_INDEX], rvba_01[A_INDEX]));\n\t}", "private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);//\n Canvas c = new Canvas(bmpGrayscale);\n Paint paint = new Paint();\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n paint.setColorFilter(f);\n c.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGrayscale;\n }", "public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}", "public void setHslColorBg(int newval) throws YAPI_Exception\n {\n _hslColor = newval;\n _ycolorled.set_hslColor(newval);\n }", "public void setFilterIntensity(float value) {\n if(mNativeAddress != 0)\n nativeSetFilterIntensity(mNativeAddress, value);\n }", "private float gauss (int whatMask, int size) {\n int mu = 0;\n double sigma = 1/(size*Math.sqrt(2*Math.PI));\n return (float) (1/(sigma*Math.sqrt(2*Math.PI))*Math.exp(-(whatMask-mu)*(whatMask-mu)/(2*sigma*sigma)));\n }", "public static void main(String[]args){\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Enter an image file name: \");\n String fileName = reader.nextLine();\n APImage theOriginal = new APImage(fileName);\n theOriginal.draw();\n\n // Create a copy of the image to blur\n APImage newImage = theOriginal.clone();\n\n // Visit all pixels except for those on the perimeter\n for (int y = 1; y < theOriginal.getHeight() - 1; y++)\n for (int x = 1; x < theOriginal.getWidth() - 1; x++){\n\n // Obtain info from the old pixel and its neighbors\n Pixel old = theOriginal.getPixel(x, y);\n Pixel left = theOriginal.getPixel(x - 1, y);\n Pixel right = theOriginal.getPixel(x + 1, y);\n Pixel top = theOriginal.getPixel(x, y - 1);\n Pixel bottom = theOriginal.getPixel(x, y + 1);\n int redAve = (old.getRed() + left.getRed() + right.getRed() + \n top.getRed() + bottom.getRed()) / 5;\n int greenAve = (old.getGreen() + left.getGreen() + right.getGreen() + \n top.getGreen() + bottom.getGreen()) / 5;\n int blueAve = (old.getBlue() + left.getBlue() + right.getBlue() + \n top.getBlue() + bottom.getBlue()) / 5;\n\n // Reset new pixel to that info\n Pixel newPixel = newImage.getPixel(x, y);\n newPixel.setRed(redAve);\n newPixel.setGreen(greenAve);\n newPixel.setBlue(blueAve);\n }\n System.out.print(\"Press return to continue:\");\n reader.nextLine();\n newImage.draw();\n }", "private void changeShapeColor(int r, int g, int b)\n\t{\n\t\tthis.red = r;\n\t\tthis.green = g;\n\t\tthis.blue = b;\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tPicture unfiltered = copy(_original_pic);\n\n\t\tint blurFactor = _blur_slider.getValue();\n\t\tdouble brightenFactor = _brightness_slider.getValue();\n\t\tdouble saturateFactor = _saturation_slider.getValue();\n\n\t\tPicture blurredOutput = blur(unfiltered, blurFactor);\n\t\tPicture saturatedOutput = saturate(blurredOutput, saturateFactor);\n\t\tPicture brightenedOutput = brighten(saturatedOutput, brightenFactor);\n\t\tObservablePicture output = brightenedOutput.createObservable();\n\t\t_picture_view.setPicture(output);\n\t}", "public void setBfImageByData(int [][][] data){\r\n\t\tBfImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int j = 0; j < height; j++) {\r\n\t\t\t\tint [] rgb = data[j][i];\r\n\t\t\t\tif (rgb[0] == -1){\t//is transparent\r\n\t\t\t\t\tBfImage.setRGB(i, j, Transparency.TRANSLUCENT);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tBfImage.setRGB(i, j, Utils.getRGB(rgb[0], rgb[1], rgb[2]));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setFilters(int min, int mag) {\r\n \t\r\n \tthis.minFilter = min;\r\n \tthis.magFilter = mag;\r\n \tGLES10.glTexParameterf(GLES10.GL_TEXTURE_2D, GLES10.GL_TEXTURE_MIN_FILTER, this.minFilter);\r\n \tGLES10.glTexParameterf(GLES10.GL_TEXTURE_2D, GLES10.GL_TEXTURE_MAG_FILTER, this.magFilter);\r\n }", "private void prepareBlurredBitmap() {\n Bitmap bitmap;\n Bitmap bitmap2;\n Bitmap bitmap3;\n Canvas canvas;\n Bitmap bitmap4;\n Bitmap bitmap5;\n if (this.mIsSkipDrawFrame) {\n invalidateTargetViewsInSubThread();\n return;\n }\n Canvas canvas2 = this.mBalanceCanvas;\n if (!(canvas2 == null || (bitmap5 = this.mBitmapForBlur) == null)) {\n canvas2.drawBitmap(bitmap5, 0.0f, 0.0f, (Paint) null);\n }\n for (Map.Entry<View, HwBlurEntity> entityEntry : this.mTargetViews.entrySet()) {\n HwBlurEntity blurEntity = entityEntry.getValue();\n if (entityEntry.getKey().isShown() && blurEntity.isEnabled() && (canvas = this.mBalanceCanvas) != null && (bitmap4 = this.mBitmapForBlur) != null) {\n blurEntity.drawBitmapForBlur(canvas, bitmap4, this.mBlurUnionRect, 15);\n }\n }\n if (!(this.mIsBitmapCopying || (bitmap = this.mBalanceBitmap) == null || (bitmap2 = this.mBlurredBitmap) == null)) {\n int result = this.mAlgorithm.blur(bitmap, bitmap2, 8);\n if (result != 0 && DEBUG) {\n String str = TAG;\n Log.w(str, \" mAlgorithm.blur occurred some error, error code= \" + result);\n }\n Bitmap bitmap6 = this.mBlurredBitmap;\n if (!(bitmap6 == null || (bitmap3 = this.mBitmapForDraw) == null || !bitmap6.sameAs(bitmap3))) {\n return;\n }\n }\n if (this.mIsDecorViewChanged) {\n this.mIsDecorViewChanged = false;\n }\n invalidateTargetViewsInSubThread();\n }", "public static void fastGlobalSmootherFilter(Mat guide, Mat src, Mat dst, double lambda, double sigma_color)\r\n {\r\n \r\n fastGlobalSmootherFilter_1(guide.nativeObj, src.nativeObj, dst.nativeObj, lambda, sigma_color);\r\n \r\n return;\r\n }", "private void blackwhiteEffect(float min, float max) {\n float val_min = min / 200f;\n float val_max = max / 200f;\n Log.i(\"kike\", \"valor min : \" + val_min + \" valor max : \" + val_max + \" barra: \" + min + \" \" + max);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_BLACKWHITE);\n effect.setParameter(\"black\", val_min);\n effect.setParameter(\"white\", val_max);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public native MagickImage embossImage(double raduis, double sigma)\n\t\t\tthrows MagickException;", "public void SetRGBA(byte numR, byte numG, byte numB, byte numA) {\r\n\t\tm_numR = numR;\r\n\t\tm_numG = numG;\r\n\t\tm_numB = numB;\r\n\t\tm_numA = numA;\r\n\t}", "public void setColor(int r, int g, int b, int a) {\n color[0] = r / 255f;\n color[1] = g / 255f;\n color[2] = b / 255f;\n color[3] = a / 255f;\n }", "private void vignetteEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_VIGNETTE);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void handle(ActionEvent ae) {\n if(blurVal == 10.0) { \n blurVal = 1.0; \n btnBlur.setEffect(null); \n btnBlur.setText(\"Blur off\"); \n } else { \n blurVal++; \n btnBlur.setEffect(blur); \n btnBlur.setText(\"Blur on\"); \n } \n blur.setWidth(blurVal); \n blur.setHeight(blurVal); \n }", "public void setGaussWeights(float peak, float low, int itmin, int itmax, int ntf) {\n float[] w = zerofloat(ntf);\n float center = (itmax+itmin)/2.0f;\n float width = (itmax-itmin)/2.0f;\n for (int i=0; i<ntf; ++i) {\n w[i] = peak*exp(-(i-center)*(i-center)/(2.0f*width*width))+low;\n }\n _w1D = w;\n _weights = true;\n }", "public void grayscale(int start, int end)\n {\n Pixel[] originPixel = this.getPixels();\n int colorIntensity =0;\n //loop through all pixels in the calling object and parameter \n for(int index=start;index<=end;index++){\n colorIntensity = (int) ((originPixel[index].getRed() + originPixel[index].getGreen() \n +originPixel[index].getBlue()) / 3);\n originPixel[index].setGreen(colorIntensity);\n originPixel[index].setBlue(colorIntensity);\n originPixel[index].setRed(colorIntensity); \n }\n \n }", "private void filllightEffect(int barra) {\n float val = barra / 75f - 1.3333333f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_FILLLIGHT);\n effect.setParameter(\"strength\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void gaussianSmooth(Img i, double sigma) {\n int half = (int) (sigma * Math.sqrt(6 * Math.log(10)));\n int size = 1 + 2 * half;\n System.out.printf(\"Size: %d\\n\", size);\n double[] mask = new double[size];\n double mask_sum = 0;\n for (int k = 0; k <= half; k++) {\n double value = Math.exp(-k * k / (2 * sigma * sigma)) / (sigma * Math.sqrt(2 * Math.PI));\n mask_sum += (k == 0) ? value : value * 2;\n mask[half + k] = value;\n mask[half - k] = value;\n }\n // normalize the mask\n for (int k = 0; k < size; k++) {\n mask[k] = mask[k] / mask_sum;\n }\n System.out.printf(\"Mask: %s\\n\", Arrays.toString(mask));\n\n // 2D convolution using 1D mask in x\n double[] i_temp = new double[i.img.length];\n for (int x = 0; x < i.img.length; x++) {\n i_temp[x] = (double) (i.img[x] & 0xFF);\n }\n for (int x = half; x < i.height - half; x++) {\n for (int y = half; y < i.width - half; y++) {\n i_temp[x * i.width + y] = 0;\n for (int s = -half; s <= half; s++) {\n i_temp[x * i.width + y] += (double) (i.img[(x + s) * i.width + y] & 0xFF) * mask[half - s];\n }\n }\n }\n\n // 2D convolution using 1D mask in y\n for (int x = half; x < i.height - half; x++) {\n for (int y = half; y < i.width - half; y++) {\n double f = 0;\n for (int s = -half; s <= half; s++) {\n f += i_temp[x * i.width + y + s] * mask[half - s];\n }\n i.img[x * i.width + y] = (byte) f;\n }\n }\n }", "public void recolor(double nr, double ng, double nb){\n ir = (float)nr;\n ig = (float)ng;\n ib = (float)nb;\n }", "public void setGaussWeights(float peak, float low, int itmin, int itmax, \n int ixmin, int ixmax, int ntf, int nx) {\n float[][] w = zerofloat(ntf,nx);\n float centert = (itmax+itmin)/2.0f;\n float centerx = (ixmax+ixmin)/2.0f;\n float widtht = (itmax-itmin)/2.0f;\n float widthx = (ixmax-ixmin)/2.0f;\n float x = 0.0f;\n float t = 0.0f;\n for (int ix=0; ix<nx; ++ix) {\n for (int it=0; it<ntf; ++it) {\n x = (ix-centerx)*(ix-centerx)/(2.0f*widthx*widthx); \n t = (it-centert)*(it-centert)/(2.0f*widtht*widtht); \n w[ix][it] = peak*exp(-(x+t))+low;\n }\n }\n _w2D = w;\n _weights = true;\n }", "public void setColor(GrayColor color){\n this.color = color;\n }", "public ColorComponentScaler(double rm, double gm, double bm) {\n canFilterIndexColorModel = true;\n redMultiplier = rm;\n greenMultiplier = gm;\n blueMultiplier = bm;\n h = 0;\n s = 0;\n l = 0;\n }" ]
[ "0.6430112", "0.6372417", "0.60554963", "0.5970721", "0.5970721", "0.57757723", "0.5607329", "0.5584428", "0.5487746", "0.54279125", "0.5424302", "0.54174364", "0.5369479", "0.53644013", "0.5364185", "0.5304506", "0.5247837", "0.5243864", "0.5204535", "0.5180071", "0.51450616", "0.5143529", "0.50906897", "0.5089764", "0.50881904", "0.5083899", "0.5074898", "0.5047317", "0.5027657", "0.5026025", "0.502257", "0.50062275", "0.4993138", "0.49634868", "0.49136674", "0.49090767", "0.48977017", "0.4894063", "0.48891792", "0.48774987", "0.48705494", "0.48705494", "0.48695353", "0.4847657", "0.481247", "0.47848478", "0.47694114", "0.47685242", "0.47673935", "0.47673395", "0.47534785", "0.47525486", "0.47155327", "0.4701084", "0.4696299", "0.46779346", "0.4644656", "0.46417865", "0.46379966", "0.46116766", "0.46046576", "0.45909366", "0.45906436", "0.45712185", "0.45707613", "0.45687455", "0.45670938", "0.45557272", "0.4553472", "0.45501646", "0.45466802", "0.45455799", "0.4544726", "0.45382822", "0.4520371", "0.45202136", "0.45174223", "0.45171148", "0.45164526", "0.4511533", "0.45097306", "0.45046663", "0.4503924", "0.44835356", "0.4478881", "0.4465483", "0.44574898", "0.44564196", "0.44561327", "0.4456019", "0.44466045", "0.44454682", "0.44448775", "0.44360635", "0.44284767", "0.44192708", "0.44181734", "0.44138917", "0.44071692", "0.44018617" ]
0.6451652
0
Get the gray translucent RGB value.
private static int getGrayTranslucentRGB(int rgb) { int r = (0xff & rgb); int g = (0xff & (rgb >> 8)); int b = (0xff & (rgb >> 16)); rgb = r + (g << 8) + (b << 16) + (100 << 24); // rgb = r + (g << 8) + (b << 16); // 亮一些 return rgb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHighLightColor();", "private static int getGray(int pixel)\n {\n /*\n // Extract r, g, b components of the hex value\n int r = (pixel >> 16) - 0xFFFFFF00;\n int g = (pixel >> 8) - (0xFFFF0000 | (r << 8));\n int b = (pixel) - (0xFF000000 | (r << 16) | (g << 8));\n\n // Get the max of the three components\n int gray = maxVal(maxVal(r, g), b);\n\n // Return a fully gray pixel\n return 0xFF000000 | (gray << 16) | (gray << 8) | gray;\n */\n return 0xFFFFFFFF;\n }", "public static int getGreyscale(int argb){\n\t\tint red = argb & 0xff;\n\t\tint green = (argb >> 8) & 0xff;\n\t\tint blue = (argb >> 16) & 0xff;\n\t\tint avg = ((red + green + blue) / 3) & 0xff;\n\t\tint grey = (0xff << 24) + (avg << 16) + (avg << 8) + avg;\n\t\treturn grey;\n\t}", "public GrayColor getColor(){\n return this.color;\n }", "public int getTransparency() {\n/* 148 */ return this.bufImg.getColorModel().getTransparency();\n/* */ }", "public Color getColor() {\r\n return Color.GRAY;\r\n }", "public Color getColor() {\n\t\treturn Color.GRAY;\n\t}", "public float brightness() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n int V = Math.max(b, Math.max(r, g));\n\n return (V / 255.f);\n }", "RGB getOldColor();", "public int getRgbColor()\n {\n return _rgbColor;\n }", "double getTransparency();", "static public int getGreen(int color) {\n return (color >> 8) & 0xff;\n }", "java.awt.Color getColor();", "public final static int RGB2Grey(int argb) {\n int r = (argb >> 16) & 0xff;\n int g = (argb >> 8) & 0xff;\n int b = (argb) & 0xff;\n\n //int rgb=(0xff000000 | ((r<<16)&0xff0000) | ((g<<8)&0xff00) | (b&0xff));\n int y = (int) Math.round(0.299f * r + 0.587f * g + 0.114f * b);\n return y;\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public static int unpackGrayscale(int argb) {\n\t return (unpackRed(argb) + unpackGreen(argb) + unpackBlue(argb)) / 3;\n\t}", "public static int color(int bg) {\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "public static int weakRGB(int rgb,float alpha){\r\n\t\tif(alpha==1.0){\r\n\t\t\treturn rgb;\r\n\t\t}\r\n\t\t\r\n\t\tint a = (int)(alpha*0xff);\r\n\t\tint nrgb = 0xff000000;\r\n\t\tint r = a*((rgb&0x00ff0000)>>16); //red\r\n\t\tr/=0xff;\r\n\t\tnrgb += r<<16;\r\n\t\tr = a*((rgb&0x0000ff00)>>8); \t //green\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r<<8;\r\n\t\tr = a*(rgb&0x000000ff); \t //blue\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r;\r\n\t//\tnrgb+=0xff000000;\r\n\t\t\r\n\t\treturn nrgb;\r\n\t}", "private native int grayToRgb(byte src[],int dst[]);", "public int getTransparency() {\n return Color.TRANSLUCENT;\n }", "public int colorLevelDifference(Pixel p){\n return Math.abs(p.getColor().getGrayLevel() - this.getColor().getGrayLevel());\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public Color brighter()\n {\n return color.brighter();\n }", "public abstract RGBIColor toRGBColor();", "private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}", "@ColorInt\n public int getColor() {\n return Color.HSVToColor(mColorHSV);\n }", "public static int getHoloBlue() {\n\t\treturn Color.rgb(51, 181, 229);\n\t}", "public Scalar getScalarRGBA() {\n return convertColorScalar(ColorSpace.RGBA);\n }", "public native PixelPacket getBackgroundColor() throws MagickException;", "public static int getColorB(int color) {\r\n return color & 0xff;\r\n }", "int getColour();", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}", "public static int getGreen(int color) {\n return color & 0x000000FF;\n }", "public Color getBackFlankingGapColor() {\n\t\treturn backgap ? Color.red : Color.lightGray;\n\t}", "public Integer getColor() {\n\t\treturn color;\n\t}", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}", "static public int getRed(int color) {\n return (color >> 16) & 0xff;\n }", "public float getBrightness() {\r\n\t\treturn hsb[2];\r\n\t}", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public float saturation() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float S;\n\n if (V == temp) {\n S = 0;\n } else {\n S = (V - temp) / (float) V;\n }\n\n return S;\n }", "private Color getColor( float value ) {\n float[] rgba = (float[]) baseRgba_.clone();\n shader_.adjustRgba( rgba, value );\n return new Color( rgba[ 0 ], rgba[ 1 ], rgba[ 2 ], rgba[ 3 ] );\n }", "static public int getBlue(int color) {\n return color & 0xff;\n }", "public Color getColor() {\n return Color.YELLOW;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "public static int MeanRGBtoGray(int r, int g, int b) {\n return (r + b + g) / 3;\n }", "@Override\n public native Color getPixelColor(int x, int y);", "public Color getColor();", "public Color getColor();", "public Color getColor();", "public static Color getColor() { return lblColor.getBackground(); }", "public Color getCurrentColor();", "public Color getRedBlack() {\r\n\t\tif (isRed())\r\n\t\t\treturn Color.RED;\r\n\t\telse\r\n\t\t\treturn Color.BLACK;\r\n\r\n\t}", "public static int toBGR(Color color) {\n int result = (int) (color.getBlue() * 0xFF);\n result = (result << 8) + (int) (color.getGreen() * 0xFF);\n result = (result << 8) + (int) (color.getRed() * 0xFF);\n return result;\n }", "public ColorPlus darkenRGB(int value) {\n\t\tint r = this.getRed();\n\t\tint g = this.getGreen();\n\t\tint b = this.getBlue();\n\n\t\tr = (Math.max(r - value, 0));\n\t\tg = (Math.max(g - value, 0));\n\t\tb = (Math.max(b - value, 0));\n\t\treturn new ColorPlus(r,g,b);\n\t}", "public static Bitmap ChangeGrey(Bitmap src, int depth, double red, double green, double blue) {\n int width = src.getWidth();\n int height = src.getHeight();\n Bitmap finalBitmap = Bitmap.createBitmap(width, height, src.getConfig());\n final double grayScale_Red = 0.3;\n final double grayScale_Green = 0.59;\n final double grayScale_Blue = 0.11;\n\n int channel_aplha, channel_red, channel_green, channel_blue;\n int pixel;\n for (int x = 0; x < width; ++x) {\n for (int y = 0; y < height; ++y) {\n pixel = src.getPixel(x, y);\n channel_aplha = Color.alpha(pixel);\n channel_red = Color.red(pixel);\n channel_green = Color.green(pixel);\n channel_blue = Color.blue(pixel);\n channel_blue = channel_green = channel_red = (int) (grayScale_Red * channel_red + grayScale_Green * channel_green + grayScale_Blue * channel_blue);\n channel_red += (depth * red);\n\n if (channel_red > 255) {\n channel_red = 255;\n }\n channel_green += (depth * green);\n if (channel_green > 255) {\n channel_green = 255;\n }\n channel_blue += (depth * blue);\n if (channel_blue > 255) {\n channel_blue = 255;\n }\n finalBitmap.setPixel(x, y, Color.argb(channel_aplha, channel_red, channel_green, channel_blue));\n }\n }\n return finalBitmap;\n }", "public Color getPitColor(){\n\t\treturn Color.GRAY;\n\t}", "public static int getGrayscale(int rgb[]) throws Exception {\r\n\t\t//Weights;\r\n\t\tdouble redWeight = 0.2126;\r\n\t\tdouble greenWeight = 0.7152;\r\n\t\tdouble blueWeight = 0.0722;\r\n\r\n\t\t//Multiplies the RGB by the Weights:\r\n\t\tint redWeighted = (int) (rgb[0] * redWeight);\r\n\t\tint greenWeighted = (int) (rgb[1] * greenWeight);\r\n\t\tint blueWeighted = (int) (rgb[2] * blueWeight);\r\n\r\n\t\t//Gets the GrayScale Value:\r\n\t\tint grayscale = redWeighted + greenWeighted + blueWeighted;\r\n\r\n\t\t//Returns the GrayScale Value:\r\n\t\treturn grayscale;\r\n\t}", "public static int NTSCRGBtoGray(int r, int g, int b) {\n return (int) (0.2126 * r + 0.7152 * g + 0.0722 * b);\n }", "public static int color(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tint bg = prefs.getInt(\"menu.background\", 0x7c000000);\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}", "public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}", "public static int getBlue(int color) {\n return (color & 0x0000FF00) >> 8;\n }", "public final int getG() {\n\t\treturn green;\n\t}", "public int getColor();", "public int getColor();", "public static int ARGB_NTSC(int p) {\n int r = (p & 0xff0000) >> 16;\n int g = (p & 0xff00) >> 8;\n int b = p & 0xff;\n return NTSCRGBtoGray(r, g, b);\n }", "public float getBrightness(float p_70013_1_) {\n/* 202 */ return super.getBrightness(p_70013_1_);\n/* */ }", "public abstract RGBFColor toRGBFColor();", "public int getGlobalBrightness()\n {\n int result = -1;\n\n // Verify service is connected\n assertService();\n \n try {\n result = mLedService.getGlobalBrightness();\n } catch (RemoteException e) {\n Log.e(TAG, \"getGlobalBrightness failed\");\n }\n \n return result;\n }", "public static Color fromBGR(int rgb) {\n return Color.rgb(rgb & 0xFF, (rgb >> 8) & 0xFF, (rgb >> 16) & 0xFF);\n }", "public static Mat rapidConvertRGBAToGRAY(Mat rgba) {\n Mat gray = new Mat(rgba.rows(), rgba.cols(), CvType.CV_8UC1);\n Imgproc.cvtColor(rgba, gray, Imgproc.COLOR_RGBA2GRAY);\n return gray;\n }", "public GameColor getColor();", "public int getGreen(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int green = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n green = bdata[1] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n green = sdata[1] & 0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n green = idata[1];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[1] != 8) {\n int shift = nBits[1] - 8;\n green = ((shift > 0) \n ? (green>>shift)\n : (green<<(-shift)));\n\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (green*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return green;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[1] * 255.0f);\n }", "public int getRgbColorAtPowerOn()\n {\n return _rgbColorAtPowerOn;\n }", "public BufferedImage RGB2GRAYSCALE() {\r\n\t\t\r\n\t\tdestImg = new BufferedImage(W, H, BufferedImage.TYPE_BYTE_GRAY);\r\n\t\tdestRaster = destImg.getRaster();\r\n\t\t\r\n\t\tfor(int row=0; row < H; row++) {\r\n\t\t\tfor(int col=0; col < W; col++) {\r\n\t\t\t\tfloat gray = 0;\r\n\t\t\t\tfor(int band=0; band<srcRaster.getNumBands(); band++) {\r\n\t\t\t\t\tint sample = srcRaster.getSample(col, row, band);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (band == 0) { //red\r\n\t\t\t\t\t\tgray += 0.299 * sample;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (band == 1) {\t//green\r\n\t\t\t\t\t\tgray += 0.587 * sample;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse if (band == 2) {\t//blue\r\n\t\t\t\t\t\tgray += 0.114 * sample;\r\n\t\t\t\t\t\tgray = Math.round(gray);\r\n\t\t\t\t\t\tdestRaster.setSample(col, row, 0, gray);\t//gray\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn destImg;\r\n\t}", "public int getBlue(Object inData) {\n if (is_sRGB) {\n boolean needAlpha = (supportsAlpha && isAlphaPremultiplied);\n int alp = 0;\n int blue = 0;\n switch (transferType) {\n case DataBuffer.TYPE_BYTE:\n byte bdata[] = (byte[])inData;\n blue = bdata[2] & 0xff;\n if (needAlpha) {\n alp = bdata[numColorComponents] & 0xff;\n }\n break;\n case DataBuffer.TYPE_USHORT:\n short sdata[] = (short[])inData;\n blue = sdata[2] & 0xffff;\n if (needAlpha) {\n alp = sdata[numColorComponents] & 0xffff;\n }\n break;\n case DataBuffer.TYPE_INT:\n int idata[] = (int[])inData;\n blue = idata[2];\n if (needAlpha) {\n alp = idata[numColorComponents];\n }\n break;\n default:\n throw new\n UnsupportedOperationException(\"This method has not \"+\n \"been implemented for transferType \" + transferType);\n }\n if (nBits[2] != 8) {\n int shift = nBits[2] - 8;\n return ((shift > 0) \n ? (blue>>shift)\n : (blue<<(-shift)));\n }\n if (needAlpha) {\n return (alp != 0)\n ? (int) (blue*((1<<nBits[numColorComponents])-1.f)/alp)\n : 0;\n }\n else {\n return blue;\n }\n }\n // REMIND: possible grayscale optimization here\n // else if (colorSpaceType == ColorSpace.TYPE_GRAY) {\n // return getGray(inData);\n // }\n\n int pixel[];\n if (inData instanceof int[]) {\n pixel = (int[])inData;\n } else {\n pixel = DataBuffer.toIntArray(inData);\n if (pixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n\n // Normalize the pixel in order to convert it\n float[] norm = getNormalizedComponents(pixel, 0, null, 0);\n // Note that getNormalizedComponents returns non-premultiplied values\n float[] rgb = colorSpace.toRGB(norm);\n return (int) (rgb[2] * 255.0f);\n }", "public int getLightColor() {\n return this.lightColor;\n }", "public static int getColor(int r, int g, int b) {\r\n return 0xff000000 | (r << 16) | (g << 8) | b;\r\n }", "public double getBrightness() {return brightness; }", "protected int getColor() {\n return Color.TRANSPARENT;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public PxlColor getPxlColor() {\r\n\t\t// System.out.println(\"Getting \" + n);\r\n\t\treturn (value.getPxlColor());\r\n\t}", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "int getGreen(int x, int y);", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "public static int getRed(int color) {\n return (color & 0x00FF0000) >> 16;\n }", "public int getBiomeGrassColor()\n {\n double d0 = (double)this.getFloatTemperature();\n double d1 = (double)this.getFloatRainfall();\n return ((ColorizerGrass.getGrassColor(d0, d1) & 16711422) + 5115470) / 2;\n }", "private Color getColor(RGB rgb)\n\t{\n\t\treturn rgb == null ? null : colorRegistry.get(rgb);\n\t}", "public int getIntColor(final double value) {\n final Color color = getColor(value);\n return ((byte) (color.getOpacity() * 255) << 24) + ((byte) (color.getRed() * 255) << 16)\n + ((byte) (color.getGreen() * 255) << 8) + ((byte) (color.getBlue() * 255));\n }", "public float getColorFadeLevel() {\n return mColorFadeLevel;\n }", "public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "RGB getNewColor();", "int getColorOfTexture(BufferedImage bufferedImage, int blockY) {\n double brightnessMin = 0.85;\n double blockYCoordinateBrightnessChange = 0.0015;\n double brightnessMultiplier = TeraMath.clamp(brightnessMin + blockY * blockYCoordinateBrightnessChange, brightnessMin, 1);\n int r = 0;\n int g = 0;\n int b = 0;\n for (int x = 0; x < bufferedImage.getWidth(); ++x) {\n for (int y = 0; y < bufferedImage.getHeight(); ++y) {\n Color color = new Color(bufferedImage.getRGB(x, y));\n r += color.getRed();\n g += color.getGreen();\n b += color.getBlue();\n }\n }\n int imageSize = bufferedImage.getWidth() * bufferedImage.getHeight();\n r /= imageSize;\n r *= brightnessMultiplier;\n g /= imageSize;\n g *= brightnessMultiplier;\n b /= imageSize;\n b *= brightnessMultiplier;\n // get rid of the alpha because it is always 255\n return new Color(r, g, b).getRGB() & 0x00FFFFFF;\n }", "public Color getBlack() {\n return fBlack;\n }" ]
[ "0.6824485", "0.6731019", "0.6588025", "0.65836656", "0.65623975", "0.64938974", "0.6417874", "0.6381022", "0.6367853", "0.63161904", "0.6264023", "0.62640005", "0.6219009", "0.6215964", "0.6169531", "0.6169531", "0.6169531", "0.6169531", "0.6169531", "0.616054", "0.61410904", "0.614067", "0.6105612", "0.61033636", "0.607883", "0.6074908", "0.6072951", "0.6050797", "0.60355335", "0.6022941", "0.60221136", "0.5985359", "0.596769", "0.59342253", "0.59194785", "0.59114337", "0.5908661", "0.5902756", "0.5851911", "0.5850065", "0.58445823", "0.5844536", "0.5844486", "0.5844426", "0.58416575", "0.584142", "0.5836219", "0.5831752", "0.5829307", "0.5818018", "0.58113587", "0.5795947", "0.5795878", "0.5795878", "0.5795878", "0.5793239", "0.5789514", "0.5780212", "0.5773589", "0.5762676", "0.575558", "0.57426697", "0.5737942", "0.5733296", "0.57142526", "0.5710988", "0.5709704", "0.5682996", "0.567016", "0.567016", "0.5661788", "0.5648869", "0.5647319", "0.564626", "0.56420815", "0.5639365", "0.56217027", "0.5619249", "0.5608021", "0.56058973", "0.5595329", "0.5590693", "0.5589498", "0.5557692", "0.55576795", "0.555732", "0.5556371", "0.5554169", "0.5552791", "0.555176", "0.5551115", "0.55507934", "0.55497247", "0.55488586", "0.55422467", "0.5538963", "0.5528153", "0.5526638", "0.55240375", "0.5522851" ]
0.76136637
0
Compression primary and block image.
public TailoredImage compress() { setPrimaryImg(snappyCompress(getPrimaryImg())); setBlockImg(snappyCompress(getBlockImg())); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreateCompression() {\n double[][] Ydct = new double[8][8];\n double[][] Cbdct = new double[8][8];\n double[][] Crdct = new double[8][8];\n\n /*\n Tenemos que coger una matriz de 8x8 que sera nuestro pixel a comprimir. Si la matriz se sale de los parametros\n altura y anchura, haremos padding con 0, para que sea negro.\n */\n\n\n for (int i = 0; i < height; i += 8) {\n for (int j = 0; j < width; j += 8) {\n for (int x = 0; x < 8; ++x) {\n for (int y = 0; y < 8; ++y) {\n if (i + x >= height || j + y >= width) {\n Ydct[x][y] = 0;\n Cbdct[x][y] = 0;\n Crdct[x][y] = 0;\n } else {\n Ydct[x][y] = (double) imagenYCbCr[x + i][y + j][0] - 128;\n Cbdct[x][y] = (double) imagenYCbCr[x + i][y + j][1] - 128;\n Crdct[x][y] = (double) imagenYCbCr[x + i][y + j][2] - 128;\n }\n }\n }\n\n\n /*\n Haremos el DCT2 de cada componente de color para el pixel\n */\n\n\n Ydct = dct2(Ydct);\n Cbdct = dct2(Cbdct);\n Crdct = dct2(Crdct);\n\n /*\n Quantizamos los DCT de cada componente del color\n */\n\n for (int v = 0; v < 8; ++v) {\n for (int h = 0; h < 8; ++h) {\n Ydct[v][h] = Math.round(Ydct[v][h] / QtablesLuminance[quality][v][h]);\n Cbdct[v][h] = Math.round(Cbdct[v][h] / QtablesChrominance[quality][v][h]);\n Crdct[v][h] = Math.round(Crdct[v][h] / QtablesChrominance[quality][v][h]);\n\n }\n }\n\n\n /*\n Hacemos el encoding con Huffman HAY QUE RECORRER EN ZIGZAG CADA MATRIZ\n */\n\n int u = 1;\n int k = 1;\n int contador = 0;\n for (int element = 0; element < 64; ++element, ++contador) {\n Yencoding.add((int) Ydct[u - 1][k - 1]);\n Cbencoding.add((int) Cbdct[u - 1][k - 1]);\n Crencoding.add((int) Crdct[u - 1][k - 1]);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n }\n }\n }\n }", "public native int getCompression() throws MagickException;", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "public void setImageCompression(byte comp) {\n this.compression = comp;\n }", "@Override\n\tpublic void Compress() {\n\t\t\n\t}", "public void compressImage(String path, String module) {\n pathtoUpload = path;\n String imagePath = getRealPathFromURI(path);\n Bitmap scaledBitmap = null;\n BitmapFactory.Options options = new BitmapFactory.Options();\n// by setting this field as true, the actual bitmap pixels are not loaded in the memory. Just the bounds are loaded. If\n// you try the use the bitmap here, you will get null.\n options.inJustDecodeBounds = true;\n Bitmap bmp = BitmapFactory.decodeFile(imagePath, options);\n int actualHeight = options.outHeight;\n int actualWidth = options.outWidth;\n// max Height and width values of the compressed image is taken as 816x612\n if (actualWidth > 0 && actualHeight > 0) {\n float maxHeight = 816.0f;\n float maxWidth = 612.0f;\n float imgRatio = 0;\n float maxRatio = 0;\n if (actualHeight != 0) {\n imgRatio = actualWidth / actualHeight;\n }\n if (maxHeight != 0) {\n maxRatio = maxWidth / maxHeight;\n }\n // width and height values are set maintaining the aspect ratio of the image\n if (actualHeight > maxHeight || actualWidth > maxWidth) {\n if (imgRatio < maxRatio) {\n imgRatio = maxHeight / actualHeight;\n actualWidth = (int) (imgRatio * actualWidth);\n actualHeight = (int) maxHeight;\n } else if (imgRatio > maxRatio) {\n imgRatio = maxWidth / actualWidth;\n actualHeight = (int) (imgRatio * actualHeight);\n actualWidth = (int) maxWidth;\n } else {\n actualHeight = (int) maxHeight;\n actualWidth = (int) maxWidth;\n }\n }\n options.inSampleSize = calculateInSampleSize(options, actualWidth, actualHeight);\n options.inJustDecodeBounds = false;\n options.inPurgeable = true;\n options.inInputShareable = true;\n options.inTempStorage = new byte[16 * 1024];\n try {\n bmp = BitmapFactory.decodeFile(imagePath, options);\n } catch (OutOfMemoryError exception) {\n exception.printStackTrace();\n }\n try {\n scaledBitmap = Bitmap.createBitmap(actualWidth, actualHeight, Bitmap.Config.ARGB_8888);\n } catch (OutOfMemoryError exception) {\n exception.printStackTrace();\n }\n float ratioX = actualWidth / (float) options.outWidth;\n float ratioY = actualHeight / (float) options.outHeight;\n float middleX = actualWidth / 2.0f;\n float middleY = actualHeight / 2.0f;\n\n Matrix scaleMatrix = new Matrix();\n scaleMatrix.setScale(ratioX, ratioY, middleX, middleY);\n\n Canvas canvas = new Canvas(scaledBitmap);\n canvas.setMatrix(scaleMatrix);\n canvas.drawBitmap(bmp, middleX - bmp.getWidth() / 2, middleY - bmp.getHeight() / 2, new Paint(Paint.FILTER_BITMAP_FLAG));\n ExifInterface exif;\n try {\n exif = new ExifInterface(imagePath);\n\n int orientation = exif.getAttributeInt(\n ExifInterface.TAG_ORIENTATION, 0);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n Matrix matrix = new Matrix();\n if (orientation == 6) {\n matrix.postRotate(90);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n } else if (orientation == 3) {\n matrix.postRotate(180);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n } else if (orientation == 8) {\n matrix.postRotate(270);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n }\n scaledBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0,\n scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix,\n true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n FileOutputStream out = null;\n //String filename = getFilename();\n File outFile = new File(imagePath);\n if (outFile != null && outFile.exists()) {\n outFile.delete();\n }\n try {\n out = new FileOutputStream(outFile);\n scaledBitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);\n out.flush();\n out.close();\n\n if (module.equals(ApplicationConstant.MODULE_CAPTURE)) {\n captureImage.setImageURI(Uri.parse(pathtoUpload));\n }\n if (module.equals(ApplicationConstant.MODULE_GALLERY)) {\n captureImage.setImageBitmap(BitmapFactory.decodeFile(pathtoUpload));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public native void setCompression(int value) throws MagickException;", "Compress(double[][][] Image){\n \n /** Step 1 */\n R1 = new Reduce(Image);\n A1 = R1.Nearest(2);\n // A1 = R1.Bilinear(2);\n \n /** Step 2 */ \n R2 = new Reduce(A1);\n A2 = R2.Nearest(2);\n //A2 = R2.Bilinear(2);\n \n /** Step 3 */\n R3 = new Reduce(A2);\n A3 = R3.Nearest(2);\n //A3 = R3.Bilinear(2);\n \n /** Step 4 */\n R4 = new Reduce(A3);\n A4 = R4.Nearest(2);\n //A4 = R4.Bilinear(2);\n\n }", "public TailoredImage uncompress() {\n\t\t\tsetPrimaryImg(snappyUnCompress(getPrimaryImg()));\n\t\t\tsetBlockImg(snappyUnCompress(getBlockImg()));\n\t\t\treturn this;\n\t\t}", "public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public int compressPhoto(int photoID) {\n // This method compresses a photo to a suitable size to be displayed on cards.\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(getResources(), photoID, options);\n int imageHeight = options.outHeight;\n int imageWidth = options.outWidth;\n String imageType = options.outMimeType;\n\n // Load a Scaled Down Version into Memory\n options.inSampleSize = calculateInSampleSize(options, 1000, 750);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return photoID;\n\n\n }", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "@Override\n public byte[] compress(byte[] imagen) {\n ResetVarC();\n /*\n Declaraciones de variables\n */\n char[] imagenaux = new char[imagen.length];\n for (int j = 0; j < imagen.length; j++) {\n imagenaux[j] = (char) (imagen[j] & 0xFF);\n }\n\n getWidthandHeight(imagenaux);\n\n imagenYCbCr = new int[height][width][3];\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int[] RGB = {(int) imagenaux[iterator], (int) imagenaux[iterator + 1], (int) imagenaux[iterator + 2]};\n imagenYCbCr[i][j] = RGBtoYCbCr(RGB);\n iterator += 3;\n }\n }\n\n CreateCompression();\n\n\n Huffman comprimirY = new Huffman();\n Huffman comprimirCB = new Huffman();\n Huffman comprimirCR = new Huffman();\n\n String Yen = comprimirY.compressHuffman(Yencoding);\n String Cben = comprimirCB.compressHuffman(Cbencoding);\n String Cren = comprimirCR.compressHuffman(Crencoding);\n\n\n Map<Integer, Integer> freqY = comprimirY.getFrequencies();\n Map<Integer, Integer> freqCb = comprimirCB.getFrequencies();\n Map<Integer, Integer> freqCr = comprimirCR.getFrequencies();\n\n\n CreateFreq(freqY, freqCb, freqCr);\n\n return JPEGFile(freqY, freqCb, freqCr, Yen, Cben, Cren);\n }", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static byte[] packMtx(byte[] block1, byte[] block2, byte[] block3) {\n int copyDist = Math.max(block1.length, Math.max(block2.length, block3.length)) +\n LzcompCompress.getPreloadSize();\n byte[] compressed1 = LzcompCompress.compress(block1);\n byte[] compressed2 = LzcompCompress.compress(block2);\n byte[] compressed3 = LzcompCompress.compress(block3);\n int resultSize = 10 + compressed1.length + compressed2.length + compressed3.length;\n byte[] result = new byte[resultSize];\n result[0] = 3;\n writeBE24(result, copyDist, 1);\n int offset2 = 10 + compressed1.length;\n int offset3 = offset2 + compressed2.length;\n writeBE24(result, offset2, 4);\n writeBE24(result, offset3, 7);\n System.arraycopy(compressed1, 0, result, 10, compressed1.length);\n System.arraycopy(compressed2, 0, result, offset2, compressed2.length);\n System.arraycopy(compressed3, 0, result, offset3, compressed3.length);\n return result;\n }", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "public native MagickImage minifyImage() throws MagickException;", "private void blockCompressAndIndex(String in, String bgzfOut, boolean deleteOnExit) throws IOException {\n\t\t\n\t\t// System.err.print(\"Compressing: \" + in + \" to file: \" + bgzfOut + \"... \");\n\t\t\n\t\tFile inFile= new File(in);\n\t\tFile outFile= new File(bgzfOut);\n\t\t\n\t\tLineIterator lin= IOUtils.openURIForLineIterator(inFile.getAbsolutePath());\n\n\t\tBlockCompressedOutputStream writer = new BlockCompressedOutputStream(outFile);\n\t\tlong filePosition= writer.getFilePointer();\n\t\t\n\t\tTabixIndexCreator indexCreator=new TabixIndexCreator(TabixFormat.BED);\n\t\tBedLineCodec bedCodec= new BedLineCodec();\n\t\twhile(lin.hasNext()){\n\t\t\tString line = lin.next();\n\t\t\tBedLine bed = bedCodec.decode(line);\n\t\t\tif(bed==null) continue;\n\t\t\twriter.write(line.getBytes());\n\t\t\twriter.write('\\n');\n\t\t\tindexCreator.addFeature(bed, filePosition);\n\t\t\tfilePosition = writer.getFilePointer();\n\t\t}\n\t\twriter.flush();\n\t\t\n\t\t// System.err.print(\"Indexing... \");\n\t\t\n\t\tFile tbi= new File(bgzfOut + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\tif(tbi.exists() && tbi.isFile()){\n\t\t\twriter.close();\n\t\t\tthrow new RuntimeException(\"Index file exists: \" + tbi);\n\t\t}\n\t\tIndex index = indexCreator.finalizeIndex(writer.getFilePointer());\n\t\tindex.writeBasedOnFeatureFile(outFile);\n\t\twriter.close();\n\n\t\t// System.err.println(\"Done\");\n\t\t\n\t\tif(deleteOnExit){\n\t\t\toutFile.deleteOnExit();\n\t\t\tFile idx= new File(outFile.getAbsolutePath() + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\t\tidx.deleteOnExit();\n\t\t}\n\t}", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "private void compressCamBitmap(String imagePath) {\n\t\tnew ImageCompressionAsyncTask(true,getActivity()){\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tsharedImagePath=result;\n\t\t\t\tif(cameraImagePath!=null){\n\t\t\t\t\tFile tempFile=new File(cameraImagePath);\n\t\t\t\t\ttempFile.delete();\n\t\t\t\t\tcameraImagePath=null;\n\t\t\t\t}\n\t\t\t};\n\n\t\t}.execute(imagePath);\n\t}", "default boolean isCompressed() {\n return COMPRESSED.isSet(getFlags());\n }", "private ZipCompressor(){}", "@Override\n public byte[] compress(byte[] bytes) throws IOException\n {\n try (BinaryIO io = new BinaryIO())\n {\n io.write32Bits(LZW_TAG);\n\n LZWDictionary dict = new LZWDictionary();\n int bitsize = 9, index = -1, newIndex;\n\n for (byte b : bytes)\n {\n newIndex = dict.get(index, b);\n\n if (newIndex > 0)\n index = newIndex;\n else\n {\n io.writeBits(index, bitsize);\n bitsize = dict.put(index, b);\n index = dict.get(-1, b);\n }\n if (dict.isFull())\n dict.reset();\n }\n io\n .writeBits(index, bitsize)\n .write32Bits(0); // EoF marker\n\n return io.getBytesOut();\n }\n }", "public boolean IsCompressed() {\n return false;\n }", "ImageTranscoder mo28916a(ImageFormat cVar, boolean z);", "public void setContentCompression(String method) {\n this.contentCompression = method;\n }", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "private Bitmap flipImage(byte[] input, FileOutputStream fos){\n\n\t\t\t\tMatrix rotate_matrix = new Matrix();\n\t\t\t\trotate_matrix.preScale(-1.0f, 1.0f);\n\t\t\t\tBitmapFactory bmf = new BitmapFactory();\n\t\t\t\tBitmap raw_bitmap = bmf.decodeByteArray(input, 0, input.length);\n\t\t\t\tBitmap result = Bitmap.createBitmap(raw_bitmap, 0, 0, raw_bitmap.getWidth(), raw_bitmap.getHeight(), rotate_matrix, true);\n\t\t\t\treturn result;\n\t\t\t\t/*\n\t\t\t\tresult.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n\t\t\t\ttry {\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}", "private void readImage(final InputStream inputStream) throws IOException\n {\n final int lzwCode = inputStream.read();\n\n if (lzwCode < 0)\n {\n throw new IOException(\"No enough data to read LZW code\");\n }\n\n this.colorIndexes = new int[this.width * this.height];\n SubBlock subBlock = SubBlock.read(inputStream);\n\n if (subBlock == SubBlock.EMPTY)\n {\n return;\n }\n\n byte[] data = subBlock.getData();\n\n if (data.length < 4)\n {\n // To avoid some malformed GIF\n return;\n }\n\n this.buffer32 = (data[0] & 0xFF) | ((data[1] & 0xFF) << 8) | ((data[2] & 0xFF) << 16) | ((data[3] & 0xFF) << 24);\n final int clearCode = 1 << lzwCode;\n final int endCode = clearCode + 1;\n int code, oldCode = 0;\n final int[] prefix = new int[4096];\n final byte[] suffix = new byte[4096];\n final byte[] initial = new byte[4096];\n final int[] length = new int[4096];\n final byte[] string = new byte[4096];\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n int tableIndex = (1 << lzwCode) + 2;\n int codeSize = lzwCode + 1;\n int codeMask = (1 << codeSize) - 1;\n Pair<Integer, SubBlock> pair = new Pair<Integer, SubBlock>(0, subBlock);\n\n while (pair.element1 != endCode)\n {\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n\n if (code == clearCode)\n {\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n tableIndex = (1 << lzwCode) + 2;\n codeSize = lzwCode + 1;\n codeMask = (1 << codeSize) - 1;\n\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n if (code == endCode)\n {\n return;\n }\n }\n else if (code == endCode)\n {\n return;\n }\n else\n {\n int newSuffixIndex;\n if (code < tableIndex)\n {\n newSuffixIndex = code;\n }\n else\n { // code == tableIndex\n newSuffixIndex = oldCode;\n if (code != tableIndex)\n {\n // warning - code out of sequence\n // possibly data corruption\n Debug.println(DebugLevel.WARNING, \"Out-of-sequence code!\");\n }\n }\n\n final int ti = tableIndex;\n\n prefix[ti] = oldCode;\n suffix[ti] = initial[newSuffixIndex];\n initial[ti] = initial[oldCode];\n length[ti] = length[oldCode] + 1;\n\n tableIndex++;\n if ((tableIndex == (1 << codeSize)) && (tableIndex < 4096))\n {\n codeSize++;\n codeMask = (1 << codeSize) - 1;\n }\n }\n\n // Reverse code\n int c = code;\n final int len = length[c];\n for (int i = len - 1; i >= 0; i--)\n {\n string[i] = suffix[c];\n c = prefix[c];\n }\n\n this.writeImage(string, len);\n oldCode = code;\n }\n }", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "protected void processBlock() {\n\t\t// expand 16 word block into 64 word blocks.\n\t\t//\n\t\tfor (int t = 16; t <= 63; t++) {\n\t\t\tX[t] = Theta1(X[t - 2]) + X[t - 7] + Theta0(X[t - 15]) + X[t - 16];\n\t\t}\n\n\t\t//\n\t\t// set up working variables.\n\t\t//\n\t\tint a = H1;\n\t\tint b = H2;\n\t\tint c = H3;\n\t\tint d = H4;\n\t\tint e = H5;\n\t\tint f = H6;\n\t\tint g = H7;\n\t\tint h = H8;\n\n\t\tint t = 0;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t// t = 8 * i\n\t\t\th += Sum1(e) + Ch(e, f, g) + K[t] + X[t];\n\t\t\td += h;\n\t\t\th += Sum0(a) + Maj(a, b, c);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 1\n\t\t\tg += Sum1(d) + Ch(d, e, f) + K[t] + X[t];\n\t\t\tc += g;\n\t\t\tg += Sum0(h) + Maj(h, a, b);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 2\n\t\t\tf += Sum1(c) + Ch(c, d, e) + K[t] + X[t];\n\t\t\tb += f;\n\t\t\tf += Sum0(g) + Maj(g, h, a);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 3\n\t\t\te += Sum1(b) + Ch(b, c, d) + K[t] + X[t];\n\t\t\ta += e;\n\t\t\te += Sum0(f) + Maj(f, g, h);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 4\n\t\t\td += Sum1(a) + Ch(a, b, c) + K[t] + X[t];\n\t\t\th += d;\n\t\t\td += Sum0(e) + Maj(e, f, g);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 5\n\t\t\tc += Sum1(h) + Ch(h, a, b) + K[t] + X[t];\n\t\t\tg += c;\n\t\t\tc += Sum0(d) + Maj(d, e, f);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 6\n\t\t\tb += Sum1(g) + Ch(g, h, a) + K[t] + X[t];\n\t\t\tf += b;\n\t\t\tb += Sum0(c) + Maj(c, d, e);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 7\n\t\t\ta += Sum1(f) + Ch(f, g, h) + K[t] + X[t];\n\t\t\te += a;\n\t\t\ta += Sum0(b) + Maj(b, c, d);\n\t\t\t++t;\n\t\t}\n\n\t\tH1 += a;\n\t\tH2 += b;\n\t\tH3 += c;\n\t\tH4 += d;\n\t\tH5 += e;\n\t\tH6 += f;\n\t\tH7 += g;\n\t\tH8 += h;\n\n\t\t//\n\t\t// reset the offset and clean out the word buffer.\n\t\t//\n\t\txOff = 0;\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tX[i] = 0;\n\t\t}\n\t}", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "public EWAHCompressedBitmap() {\n\t\tthis.buffer = new long[defaultbuffersize];\n\t\tthis.rlw = new RunningLengthWord(this.buffer, 0);\n\t}", "public DatasetCompression compression() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression();\n }", "public static byte[] compressBytes(byte[] data) {\n\t\t\tDeflater deflater = new Deflater();\n\t\t\tdeflater.setInput(data);\n\t\t\tdeflater.finish();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\twhile (!deflater.finished()) {\n\t\t\t\tint count = deflater.deflate(buffer);\n\t\t\t\toutputStream.write(buffer, 0, count);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\toutputStream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t\tSystem.out.println(\"Compressed Image Byte Size - \" + outputStream.toByteArray().length);\n\t\t\treturn outputStream.toByteArray();\n\t\t}", "public @NotNull Image flipH()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n if (this.format != ColorFormat.RGBA)\n {\n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n // OPTION 1: Move pixels with memCopy()\n long src = Integer.toUnsignedLong(y * this.width + this.width - 1 - x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, bytesPerLine);\n \n // OPTION 2: Just copy data pixel by pixel\n // output.put(y * this.width + x, this.data.getBytes(y * this.width + (this.width - 1 - x)));\n }\n }\n \n this.data.free();\n \n this.data = output;\n }\n else\n {\n // OPTION 3: Faster implementation (specific for 32bit pixels)\n // NOTE: It does not require additional allocations\n IntBuffer ptr = this.data.toBuffer().asIntBuffer();\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width / 2; x++)\n {\n int backup = ptr.get(y * this.width + x);\n ptr.put(y * this.width + x, ptr.get(y * this.width + this.width - 1 - x));\n ptr.put(y * this.width + this.width - 1 - x, backup);\n }\n }\n }\n this.mipmaps = 1;\n }\n \n return this;\n }", "public void gen_encrypted_image(double mat[][])\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tgetpixel_1(mat);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetpixel_2(mat);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tImageIO.write(img, \"jpg\", new File(folder+\"Encrypted_\"+name));\n\t\t\tRuntime.getRuntime().exec(folder+\"Encrypted_\"+name);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t}\t\t\n }", "private void writeBlock(IBlockBuilder dataBlock, BlockHandle handle) {\n assert ok();\n CompressionType type = this.options.getCompression();\n String content = dataBlock.finish();\n switch (type) {\n case kNoCompression:\n break;\n case kSnappyCompression:\n try {\n byte[] bytes = Snappy.compress(ByteUtils.toByteArray(content, 0, content.length()));\n if (bytes.length < content.length() - (content.length() / 8)) {\n content = new String(ByteUtils.toCharArray(bytes, 0, bytes.length));\n } else {\n type = CompressionType.kNoCompression;\n }\n } catch (IOException e) {\n type = CompressionType.kNoCompression;\n }\n break;\n }\n\n writeRawBlock(content, type, handle);\n dataBlock.reset();\n }", "public Image getFlat();", "private Image combine(Image piece, Image background) {\n\t\tif (piece == null) {\n\t\t\treturn background;\n\t\t}\n\t\tBufferedImage image = (BufferedImage) background;\n\t\tBufferedImage overlay = (BufferedImage) piece;\n\t\n\t\t// create the new image, canvas size is the max. of both image sizes\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\n\t\tBufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\n\t\t// paint both images, preserving the alpha channels\n\t\tGraphics g = combined.getGraphics();\n\t\tg.drawImage(image, 0, 0, null);\n\t\tg.drawImage(overlay, 0, 0, null);\n\t\n\t\t// Save as new image\n\t\treturn combined;\n\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "public BitmapEncoder() {\n this((Bitmap.CompressFormat) null, 90);\n }", "byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;", "public @NotNull Image rotateCCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + this.width - x - 1) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + y) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "public byte[] readImagePNG(BufferedImage bufferedimage) throws IOException{\n byte[] data = ImageUtil.toByteArray(bufferedimage);\r\n /* \r\n for (int i = 0; i < data.length; i++) {\r\n if(i!=0&&i%4==0)\r\n System.out.println();\r\n System.out.format(\"%02X \",data[i]);\r\n }\r\n */ \r\n \r\n \r\n \r\n \r\n byte[] stximage = getStximage();\r\n byte[] etximage = getEtximage();\r\n \r\n byte[] stxdata = new byte[stximage.length];\r\n byte[] etxdata = new byte[etximage.length];\r\n byte[] length = new byte[4];\r\n \r\n boolean stxsw=false;\r\n boolean etxsw=false;\r\n byte[] full_data=null;\r\n byte[] only_data=null;\r\n try{\r\n for (int i = 0; i < data.length; i++) {\r\n System.arraycopy(data, i, stxdata,0, stxdata.length);\r\n stxsw = ByteUtil.equals(stximage, stxdata);\r\n int subindex=i+stxdata.length;\r\n if(stxsw){\r\n System.arraycopy(data, subindex, length,0, length.length);\r\n int length_fulldata = ConversionUtil.toInt(length);\r\n // System.out.format(\"%02X %d subIndex[%d]\",data[subindex],length_fulldata,subindex);\r\n \r\n \r\n subindex+=i+length.length;\r\n int etx_index= subindex+ length_fulldata;\r\n // System.out.println(\"subindex : \"+subindex+\" etx_index : \"+etx_index);\r\n System.arraycopy(data, etx_index, etxdata,0, etxdata.length);\r\n \r\n// for (int j = 0; j < etxdata.length; j++) {\r\n// System.out.format(\"%02X \",etxdata[j]);\r\n// }\r\n \r\n etxsw = ByteUtil.equals(etximage, etxdata);\r\n if(etxsw){\r\n full_data = new byte[etx_index-subindex];\r\n System.arraycopy(data, subindex, full_data,0, full_data.length); //fulldata\r\n break;\r\n }else{\r\n continue;\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n /////only data search\r\n System.arraycopy(full_data, 0, length,0, length.length);\r\n int length_onlydata = ConversionUtil.toInt(length); \r\n only_data = new byte[length_onlydata];\r\n System.arraycopy(full_data, length.length, only_data,0, only_data.length);\r\n \r\n \r\n \r\n }catch (Exception e) {\r\n return null;\r\n }\r\n \r\n return only_data;\r\n \r\n }", "private StandardDeCompressors() {}", "public static Bitmap cropImage(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n \t int x=5;\n\t\tint y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of combineImg.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n boolean template = false;\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n // Check upper-right section of combineImage.\n x2 = wfMid;\n template = false;\n for ( x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the top-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 >= 0; y3--) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n boolean template = false;\n // Check bottom-left section of combineImage.\n for (x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n template = false;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the bottom-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 < finalBm.getHeight(); y3++) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public EWAHCompressedBitmap or(final EWAHCompressedBitmap a) {\n\t\tfinal EWAHCompressedBitmap container = new EWAHCompressedBitmap();\n\t\tcontainer.reserve(this.actualsizeinwords + a.actualsizeinwords);\n\t\tor(a, container);\n\t\treturn container;\n\t}", "@Override\n public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm)\n throws OperatorException {\n try {\n \n int x0 = targetRectangle.x;\n int y0 = targetRectangle.y;\n int w = targetRectangle.width;\n int h = targetRectangle.height;\n // System.out.println(\"x0 = \" + x0 + \", y0 = \" + y0 + \", w = \" + w + \", h = \" + h);\n \n ComplexFloatMatrix cplxMatrixMaster = null;\n ComplexFloatMatrix cplxMatrixSlave = null;\n RenderedImage srcImage;\n float[] dataArray;\n \n // pm.beginTask(\"Computation of interferogram\", targetProduct.getNumBands());\n \n // these are not very optimal loops: redo the looping to a single for Band loop with using HashMaps\n for (Band sourceBand : sourceProduct.getBands()) {\n \n String sourceBandUnit = sourceBand.getUnit();\n \n if (sourceBand == masterBand1) {\n } else if (sourceBand == masterBand2) {\n \n Tile masterRasterI = getSourceTile(masterBand1, targetRectangle);\n srcImage = masterRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataRealMatrix = new FloatMatrix(masterRasterI.getHeight(), masterRasterI.getWidth(), dataArray);\n \n Tile masterRasterQ = getSourceTile(masterBand2, targetRectangle);\n srcImage = masterRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getWidth(), masterRasterQ.getHeight(), dataArray);\n FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getHeight(), masterRasterQ.getWidth(), dataArray);\n \n cplxMatrixMaster = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n } else if (sourceBandUnit != null && sourceBandUnit.contains(Unit.REAL)) {\n \n Tile slaveRasterI = getSourceTile(sourceBand, targetRectangle);\n srcImage = slaveRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getWidth(), slaveRasterI.getHeight(), dataArray);\n FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getHeight(), slaveRasterI.getWidth(), dataArray);\n \n Tile slaveRasterQ = getSourceTile(slaveRasterMap.get(sourceBand), targetRectangle, pm);\n srcImage = slaveRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataImagMatrix = new FloatMatrix(slaveRasterQ.getHeight(), slaveRasterQ.getWidth(), dataArray);\n \n cplxMatrixSlave = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n }\n }\n \n // TODO: integrate subtraction of Reference Phase\n ComplexFloatMatrix cplxIfg = cplxMatrixMaster.muli(cplxMatrixSlave.conji());\n \n // if flat earth phase flag is on\n // ------------------------------------------------\n \n // normalize pixel :: range_axis\n DoubleMatrix rangeAxisNormalized;\n rangeAxisNormalized = DoubleMatrix.linspace(x0, x0 + w - 1, cplxIfg.columns);\n rangeAxisNormalized.subi(0.5 * (1 + sourceImageWidth));\n rangeAxisNormalized.divi(0.25 * (sourceImageWidth-1));\n \n DoubleMatrix azimuthAxisNormalized;\n azimuthAxisNormalized = DoubleMatrix.linspace(y0, y0 + h - 1, cplxIfg.rows);\n azimuthAxisNormalized.subi(0.5 * (1 + sourceImageHeight));\n azimuthAxisNormalized.divi(0.25 * (sourceImageHeight - 1));\n \n DoubleMatrix realReferencePhase = polyValOnGrid(azimuthAxisNormalized, rangeAxisNormalized,\n flatEarthPolyCoefs, degreeFromCoefficients(flatEarthPolyCoefs.length));\n \n FloatMatrix realReferencePhaseFlt = MatrixFunctions.doubleToFloat(realReferencePhase);\n ComplexFloatMatrix cplxReferencePhase = new ComplexFloatMatrix(MatrixFunctions.cos(realReferencePhaseFlt),\n MatrixFunctions.sin(realReferencePhaseFlt));\n \n // cplxIfg = cplxIfg.muli(cplxReferencePhase.transpose().conji());\n cplxIfg.muli(cplxReferencePhase.transpose().conji());\n \n for (Band targetBand : targetProduct.getBands()) {\n \n String targetBandUnit = targetBand.getUnit();\n \n final Tile targetTile = targetTileMap.get(targetBand);\n \n // all bands except for virtual ones\n if (targetBandUnit.contains(Unit.REAL)) {\n \n dataArray = cplxIfg.real().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n } else if (targetBandUnit.contains(Unit.IMAGINARY)) {\n \n dataArray = cplxIfg.imag().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n }\n \n }\n \n } catch (Throwable e) {\n \n OperatorUtils.catchOperatorException(getId(), e);\n \n }\n }", "public Compressor() {\n initCompressor(getDefaultSolenoidModule());\n }", "private void enhanceImage(){\n }", "@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }", "private void compress(Node nodo) {\n Node parent = nodo.getParent();\n\n Node left = parent.getLeftNode();\n Node right = parent.getRightNode();\n\n int left_reference = left.getReference();\n ArrayList<Integer> left_content = this.fm.read(left_reference); this.in_counter++;\n\n int right_reference = right.getReference();\n ArrayList<Integer> right_content = this.fm.read(right_reference); this.in_counter++;\n if(this.debug)\n System.out.println(\"ExtHash::compress >> hay \" + (right_content.get(0) + left_content.get(0)) + \" elementos, de un maximo de \" + this.B);\n\n // en caso de que sea posible juntar las paginas.\n if(right_content.get(0) + left_content.get(0) < B-2) {\n total_active_block--;\n\n if(this.debug)\n System.out.println(\"ExtHash::compress >> ambas paginas se pueden fusionar\");\n\n ArrayList<Integer> new_content = new ArrayList<>();\n new_content.add(right_content.get(0) + left_content.get(0));\n\n for(int i=1; i<= left_content.get(0); i++)\n new_content.add(left_content.get(i));\n\n for(int i=1; i<= right_content.get(0); i++)\n new_content.add(right_content.get(i));\n\n parent.activateReference(true);\n parent.setReference(left_reference);\n // referencia derecha dejarla en las referencias en desuso.\n\n this.fm.write(new_content, left_reference); this.out_counter++;\n }\n }", "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "private static void mixBlock(long[] src, int start, long[] h) {\n\t\th[0] += src[start]; \n\t\th[2] ^= h[10]; \n\t\th[11] ^= h[0]; \n\t\th[0] = (h[0] << 11) | (h[0] >>> 53); \n\t\th[11] += h[1];\n\t\t\n\t\th[1] += src[start+1]; \n\t\th[3] ^= h[11]; \n\t\th[0] ^= h[1]; \n\t\th[1] = (h[1] << 32) | (h[1] >>> 32); \n\t\th[0] += h[2];\n\n\t\th[2] += src[start+2]; \n\t\th[4] ^= h[0]; \n\t\th[1] ^= h[2]; \n\t\th[2] = (h[2] << 43) | (h[2] >>> 21); \n\t\th[1] += h[3];\n\t\n\t\th[3] += src[start+3]; \n\t\th[5] ^= h[1]; \n\t\th[2] ^= h[3]; \n\t\th[3] = (h[3] << 31) | (h[3] >>> 33); \n\t\th[2] += h[4];\n\n\t\th[4] += src[start+4]; \n\t\th[6] ^= h[2]; \n\t\th[3] ^= h[4]; \n\t\th[4] = (h[4] << 17) | (h[4] >>> 47); \n\t\th[3] += h[5];\n\n\t\th[5] += src[start+5]; \n\t\th[7] ^= h[3]; \n\t\th[4] ^= h[5]; \n\t\th[5] = (h[5] << 28) | (h[5] >>> 36); \n\t\th[4] += h[6];\n\n\t\th[6] += src[start+6]; \n\t\th[8] ^= h[4]; \n\t\th[5] ^= h[6]; \n\t\th[6] = (h[6] << 39) | (h[6] >>> 25); \n\t\th[5] += h[7];\n\n\t\th[7] += src[start+7]; \n\t\th[9] ^= h[5]; \n\t\th[6] ^= h[7]; \n\t\th[7] = (h[7] << 57) | (h[7] >>> 7); \n\t\th[6] += h[8];\n\n\t\th[8] += src[start+8]; \n\t\th[10] ^= h[6]; \n\t\th[7] ^= h[8]; \n\t\th[8] = (h[8] << 55) | (h[8] >>> 9); \n\t\th[7] += h[9];\n\n\t\th[9] += src[start+9]; \n\t\th[11] ^= h[7]; \n\t\th[8] ^= h[9]; \n\t\th[9] = (h[9] << 54) | (h[9] >>> 10); \n\t\th[8] += h[10];\n\n\t\th[10] += src[start+10]; \n\t\th[0] ^= h[8]; \n\t\th[9] ^= h[10]; \n\t\th[10] = (h[10] << 22) | (h[10] >>> 42); \n\t\th[9] += h[11];\n\n\t\th[11] += src[start+11]; \n\t\th[1] ^= h[9]; \n\t\th[10] ^= h[11]; \n\t\th[11] = (h[11] << 46) | (h[11] >>> 18); \n\t\th[10] += h[0];\t\t\n\t}", "ImageImpl (byte [] bytes) {\n\tint cnt = bytes.length / 2;\n\tint size = (bytes.length + 1) / 2;\n\tdata = new short [size];\n\tint bi = 0;\n\t\n\tfor (int i = 0; i < cnt; i++) {\n\t data [i] = (short) (((((int) bytes [bi]) & 0x0ff) << 8)\n\t\t\t\t | (((int) bytes [bi+1]) & 0x0ff));\n\t bi += 2;\n\t}\n\t\n\tif (size > cnt)\n\t data [cnt] = (short) ((((int) bytes [bi]) & 0x0ff) << 8);\n\n\tbitmap = new Bitmap (data);\n }", "@Override\n void pack() {\n }", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}", "public CompressionInfo getCompressionInfo() {\n\t\treturn new CompressionInfo(bytesRead, blocksRead, superblocksRead, compressedBytes,\n\t\t\t\t compressedBlocks, actualBytes, null);\n\t}", "public static void compress(ByteBuffer bbInput, ByteBuffer bbOutput, StringBuilder information, long[] time) throws IOException\r\n {\r\n long startTime = System.currentTimeMillis(); \r\n \r\n Arithmetic arithmetic = new Arithmetic();\r\n \r\n while(bbInput.remaining() > 0)\r\n {\r\n byte b = bbInput.get();\r\n arithmetic.add(b);\r\n }\r\n \r\n TreeMap<Byte, Range> rangeTable = arithmetic.set();\r\n \r\n //System.out.println(rangeTable.size());\r\n \r\n bbOutput.putInt(rangeTable.size());\r\n for (Entry<Byte, Range> e : rangeTable.entrySet())\r\n {\r\n bbOutput.put(e.getKey().byteValue());\r\n bbOutput.putLong(e.getValue().count);\r\n //System.out.println((char) e.getKey().byteValue() + \":\" + e.getValue().count + \" \" + (int) e.getValue().high + \" \" + (int) e.getValue().low);\r\n }\r\n \r\n int rangeTableCount = bbInput.position();\r\n bbOutput.putInt(rangeTableCount);\r\n \r\n if (rangeTableCount > (Math.pow(2,16)))\r\n {\r\n information.append(\"FATAL ERROR: Cannot compress block larger than 2^16 - 1\");\r\n return;\r\n }\r\n \r\n bbInput.position(0);\r\n \r\n //System.out.println(rangeTableCount);\r\n\r\n char low = 0;\r\n char high = 0xFFFF;\r\n short underflow_bits = 0;\r\n\r\n BitWriter bitWriter = new BitWriter(bbOutput);\r\n\r\n //Range testRange = arithmetic.rangeTable.get((byte)'B');\r\n //System.out.println((char)'B' + \" \" + testRange.count + \" \" + (int) testRange.high + \" \" + (int) testRange.low);\r\n \r\n while(bbInput.remaining() > 0)\r\n {\r\n byte b = bbInput.get();\r\n Range range = rangeTable.get(b);\r\n \r\n long diff;\r\n diff = (long) (high - low) + 1;\r\n char temphigh = (char) ((diff * range.high) / rangeTableCount - 1);\r\n high = (char) (low + temphigh);\r\n char templow = (char) ((diff * range.low) / rangeTableCount);\r\n low = (char) (low + templow);\r\n \r\n boolean shiftingComplete = false;\r\n while (!shiftingComplete)\r\n {\r\n // TEST1: Test if most significant bit match, shift them out.\r\n if ((high & 0x8000) == (low & 0x8000))\r\n {\r\n bitWriter.put((high & 0x8000) != 0);//!=\r\n while (underflow_bits > 0)\r\n {\r\n bitWriter.put((~high & 0x8000) != 0);\r\n underflow_bits--;\r\n }\r\n low <<= 1;\r\n high <<= 1;\r\n high |= 1;\r\n }\r\n // TEST2: Test for potential underflow if most significant digits don't match and\r\n // second most significant digits are one apart.\r\n else if ((low & 0x4000) != 0 && (!((high & 0x4000) != 0)))\r\n {\r\n underflow_bits += 1;\r\n low &= 0x3fff;\r\n high |= 0x4000;\r\n \r\n low <<= 1;\r\n high <<= 1;\r\n high |= 1;\r\n }\r\n // ELSE: COMPLETE\r\n else\r\n {\r\n shiftingComplete = true;\r\n }\r\n }\r\n }\r\n \r\n bitWriter.put((low & 0x4000) != 0);\r\n underflow_bits++;\r\n while (underflow_bits-- > 0)\r\n {\r\n bitWriter.put((~low & 0x4000) != 0);\r\n }\r\n\r\n bitWriter.finish();\r\n \r\n long endTime = System.currentTimeMillis();\r\n time[0] += (endTime - startTime);\r\n }", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "public BufferedImage ImageConvolution(BufferedImage image, String type) {\r\n int[][] template = getTemplate(type); //gets template we are using\r\n int[][] template1 = new int[3][3];\r\n if (type == \"Roberts\") {\r\n template1 = getTemplate(\"Roberts1\");\r\n }\r\n int height = image.getHeight();\r\n int width = image.getWidth();\r\n int sum = 0;\r\n for (int i = 0; i < template.length; i++) {\r\n for (int j = 0; j < template.length; j++) {\r\n sum += template[i][j]; //get sum of kernel for division\r\n }\r\n }\r\n if (sum == 0) {\r\n sum = 1; //if sum is 0 set to 1\r\n }\r\n\r\n int[][][] original = convertToArray(image);\r\n int[][][] padded = new int[width + 2][height + 2][4];\r\n int[][][] tempPadded = new int[width + 2][height + 2][4];\r\n //add padding\r\n for (int y = 0; y < height + 2; y++) {\r\n for (int x = 0; x < width + 2; x++) {\r\n for (int i = 0; i < 4; i++) {\r\n if (x == 0 || y == 0 || x == width + 1 || y == height + 1) { //if an edge pixel\r\n padded[x][y][i] = 0; //set edge to 0 for padding\r\n tempPadded[x][y][i] = 255;\r\n } else {\r\n padded[x][y][i] = original[x - 1][y - 1][i]; //-1 to ignore padding\r\n tempPadded[x][y][i] = original[x - 1][y - 1][i];\r\n }\r\n }\r\n }\r\n }\r\n\r\n //loop through all pixels ignoring edge pixels (padding)\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n if (type == \"Sobel X\" || type == \"Sobel Y\") {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n } else {\r\n original[x - 1][y - 1][i + 1] = count[i] / sum; //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n //if roberts\r\n if (type == \"Roberts\") {\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n return convertToBimage(original);\r\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public BufferedImage combineMapsIntoImage(int width, int height, BufferedImage kdeImage1, \n\t\t\tBufferedImage kdeImage2)\n\t\t\tthrows IOException{\n\t\tif(width <= 0 || height <= 0 || kdeImage1 == null || kdeImage2 == null)\n\t\t\treturn null;\n\t\t\n//\t\t//Get the colors in the image\n//\t\tHashMap<Integer, Integer> colors1 = new HashMap<Integer, Integer>();\n//\t\tHashMap<Integer, Integer> colors2 = new HashMap<Integer, Integer>();\n//\t\tfor(int y = 0; y < height; y++){\n//\t\t\tfor(int x = 0; x < width; x++){\n//\t\t\t\tif(!colors1.containsKey(kdeImage1.getRGB(x, y)))\n//\t\t\t\t\tcolors1.put(kdeImage1.getRGB(x, y), 0);\n//\t\t\t\tif(!colors2.containsKey(kdeImage2.getRGB(x, y)))\n//\t\t\t\t\tcolors2.put(kdeImage2.getRGB(x, y), 0);\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\t//Remove the \"blank\" color spot\n//\t\tcolors1.remove(0);\n//\t\tcolors2.remove(0);\n//\t\t\n//\t\t//Put the colors into an array\n//\t\tSet<Integer> colorsSet = colors1.keySet();\n//\t\tInteger[] orderedColors1 = new Integer [colorsSet.size()];\n//\t\tint iter = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors1[iter] = val;\n//\t\t\titer++;\n//\t\t}\n//\t\t\n//\t\tcolorsSet = colors2.keySet();\n//\t\tInteger[] orderedColors2 = new Integer [colorsSet.size()];\n//\t\titer = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors2[iter] = val;\n//\t\t\titer++;\n//\t\t}\t\n//\t\t\n//\t\tcolors1 = null;\n//\t\tcolors2 = null;\n//\t\t\n//\t\t//Order the colors\n//\t\tArrays.sort(orderedColors1);\n//\t\tArrays.sort(orderedColors2);\n//\t\t\n//\t\tfor(Integer val : orderedColors1)\n//\t\t\tSystem.out.println(val);\n//\t\tSystem.out.println();\n//\t\tfor(Integer val : orderedColors2)\n//\t\t\tSystem.out.println(val);\n\t\t\n\t\t//Create an image of the two images combined, discounting pixels not colored in both images\n\t\t//Coloring in the new image is done by ANDing/ORing the colors of the two inputted images\n\t\t//An AND retains the coloration of the original images, combining the colors where needed\n\t\t//OR changes the colors to another scheme but may show a better heatmap of the overlap\n\t\tBufferedImage combinedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\tfor(int y = 0; y < height; y++){\n\t\t\tfor(int x = 0; x < width; x++){\n\t\t\t\tif((kdeImage1.getRGB(x, y) != 0) && (kdeImage2.getRGB(x, y) != 0)){\n\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) & kdeImage2.getRGB(x, y));\n//\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) | kdeImage2.getRGB(x, y));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn combinedImage;\n\t}", "@Deprecated\n/* */ public void addCompression() {\n/* 162 */ List<COSName> filters = getFilters();\n/* 163 */ if (filters == null)\n/* */ {\n/* 165 */ if (this.stream.getLength() > 0L) {\n/* */ \n/* 167 */ OutputStream out = null;\n/* */ \n/* */ try {\n/* 170 */ byte[] bytes = IOUtils.toByteArray((InputStream)this.stream.createInputStream());\n/* 171 */ out = this.stream.createOutputStream((COSBase)COSName.FLATE_DECODE);\n/* 172 */ out.write(bytes);\n/* */ }\n/* 174 */ catch (IOException e) {\n/* */ \n/* */ \n/* 177 */ throw new RuntimeException(e);\n/* */ }\n/* */ finally {\n/* */ \n/* 181 */ IOUtils.closeQuietly(out);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 186 */ filters = new ArrayList<COSName>();\n/* 187 */ filters.add(COSName.FLATE_DECODE);\n/* 188 */ setFilters(filters);\n/* */ } \n/* */ }\n/* */ }", "public interface LABMultiBitmapIndexTx<IBM> {\n void tx(int index, int lastId, IBM bitmap, Filer filer, int offset) throws Exception;\n}", "public static void imgToZip(BufferedImage image, int number, ZipOutputStream zipOS, String path){\n try {\n File tempImage = new File(path+ number +\".jpg\");\n ImageIO.write(image,\"jpg\",tempImage);\n createFileToZip(image, path, number, zipOS);\n tempImage.delete();\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void getInterBlock(int block[], BufferedBitStream stream) throws InterruptedException\n {\n int i, position;\n int blocktemp=0;\n int data[] = new int[2];\n int data0, data1;\n int sign = 0;\n\n int code, temp[];\n boolean endOfBlock = false;\n\n i = -1;\n\n getDCTCoeffFirst(data, stream);\n data0 = data[0];\n data1 = data[1];\n\n do {\n i = i + data0 + 1;\n position = zigzag[i];\n\n if ( data1 > 0 ) sign = 1;\n else sign = -1;\n blocktemp = ((2 * data1 + sign) * quantizerScale * interQuantMatrix[i])/16;\n\n if ((blocktemp & 1) == 0)\n if (blocktemp > 0)\n blocktemp -= 1;\n else if (blocktemp < 0)\n blocktemp += 1;\n\n if (blocktemp > 2047) blocktemp = 2047;\n else if (blocktemp < -2048) blocktemp = -2048;\n\n block[position] = blocktemp;\n\n { // DCT Next Coefficient decode\n code = stream.showBits(17);\n\n if (code >= 2048)\n temp = DCTCoefficientTable[code >>> 8];\n else if (code >= 256)\n temp = DCTCoefficientTable[ (code >>> 3) + 512];\n else\n temp = DCTCoefficientTable[ (code) + 768];\n\n if (temp[0] == ESC) {\n // More decoding\n stream.flushBits(temp[2]);\n int run = stream.getBits(6);\n int value = stream.showBits(16);\n\n if ((value & 0xFF00) == 0x8000) {\n stream.flushBits(16);\n value = (value | 0xFFFFFF00);\n } else if ((value & 0xFF00) == 0x0000) {\n stream.flushBits(16);\n value = (value & 0x000000FF);\n } else {\n stream.flushBits(8);\n value = (value << 16) >> 24;\n }\n\n data0 = run;\n data1 = value;\n\n } else {\n stream.flushBits(temp[2]);\n data0 = temp[0];\n data1 = temp[1];\n }\n\n } // End of DCT Next Coeffcient decode\n } while (data0 != EOB);\n }", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "protected void xor(final EWAHCompressedBitmap a,\n\t\t\tfinal BitmapStorage container) {\n\t\tfinal EWAHIterator i = a.getEWAHIterator();\n\t\tfinal EWAHIterator j = getEWAHIterator();\n\t\tif (!(i.hasNext() && j.hasNext())) {// this never happens...\n\t\t\tcontainer.setSizeInBits(sizeInBits());\n\t\t}\n\t\t// at this point, this is safe:\n\t\tBufferedRunningLengthWord rlwi =\n\t\t\t\tnew BufferedRunningLengthWord(i.next());\n\t\tBufferedRunningLengthWord rlwj =\n\t\t\t\tnew BufferedRunningLengthWord(j.next());\n\t\twhile (true) {\n\t\t\tfinal boolean i_is_prey = rlwi.size() < rlwj.size();\n\t\t\tfinal BufferedRunningLengthWord prey = i_is_prey ? rlwi : rlwj;\n\t\t\tfinal BufferedRunningLengthWord predator = i_is_prey ? rlwj : rlwi;\n\t\t\tif (prey.getRunningBit() == false) {\n\t\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\t\tfinal long preyrl = prey.getRunningLength();\n\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t(predatorrl >= preyrl) ? preyrl : predatorrl;\n\t\t\t\tcontainer.addStreamOfEmptyWords(predator.getRunningBit(),\n\t\t\t\t\t\ttobediscarded);\n\t\t\t\tfinal long dw_predator =\n\t\t\t\t\t\tpredator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ (i_is_prey ? j.dirtyWords() : i.dirtyWords());\n\t\t\t\tcontainer.addStreamOfDirtyWords(\n\t\t\t\t\t\ti_is_prey ? j.buffer() : i.buffer(), dw_predator,\n\t\t\t\t\t\tpreyrl - tobediscarded);\n\t\t\t\tpredator.discardFirstWords(preyrl);\n\t\t\t\tprey.discardFirstWords(preyrl);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// we have a stream of 1x11\n\t\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\t\tfinal long preyrl = prey.getRunningLength();\n\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t(predatorrl >= preyrl) ? preyrl : predatorrl;\n\t\t\t\tcontainer.addStreamOfEmptyWords(!predator.getRunningBit(),\n\t\t\t\t\t\ttobediscarded);\n\t\t\t\tfinal int dw_predator =\n\t\t\t\t\t\tpredator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ (i_is_prey ? j.dirtyWords() : i.dirtyWords());\n\t\t\t\tfinal long[] buf = i_is_prey ? j.buffer() : i.buffer();\n\t\t\t\tfor (int k = 0; k < preyrl - tobediscarded; ++k)\n\t\t\t\t\tcontainer.add(~buf[k + dw_predator]);\n\t\t\t\tpredator.discardFirstWords(preyrl);\n\t\t\t\tprey.discardFirstWords(preyrl);\n\t\t\t}\n\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\tif (predatorrl > 0) {\n\t\t\t\tif (predator.getRunningBit() == false) {\n\t\t\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t\t(predatorrl >= nbre_dirty_prey) ? nbre_dirty_prey\n\t\t\t\t\t\t\t\t\t: predatorrl;\n\t\t\t\t\tfinal long dw_prey =\n\t\t\t\t\t\t\tprey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t+ (i_is_prey ? i.dirtyWords() : j\n\t\t\t\t\t\t\t\t\t\t\t.dirtyWords());\n\t\t\t\t\tpredator.discardFirstWords(tobediscarded);\n\t\t\t\t\tprey.discardFirstWords(tobediscarded);\n\t\t\t\t\tcontainer.addStreamOfDirtyWords(\n\t\t\t\t\t\t\ti_is_prey ? i.buffer() : j.buffer(), dw_prey,\n\t\t\t\t\t\t\ttobediscarded);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t\t(predatorrl >= nbre_dirty_prey) ? nbre_dirty_prey\n\t\t\t\t\t\t\t\t\t: predatorrl;\n\t\t\t\t\tfinal int dw_prey =\n\t\t\t\t\t\t\tprey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t+ (i_is_prey ? i.dirtyWords() : j\n\t\t\t\t\t\t\t\t\t\t\t.dirtyWords());\n\t\t\t\t\tpredator.discardFirstWords(tobediscarded);\n\t\t\t\t\tprey.discardFirstWords(tobediscarded);\n\t\t\t\t\tfinal long[] buf = i_is_prey ? i.buffer() : j.buffer();\n\t\t\t\t\tfor (int k = 0; k < tobediscarded; ++k)\n\t\t\t\t\t\tcontainer.add(~buf[k + dw_prey]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// all that is left to do now is to AND the dirty words\n\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\tif (nbre_dirty_prey > 0) {\n\t\t\t\tfor (int k = 0; k < nbre_dirty_prey; ++k) {\n\t\t\t\t\tif (i_is_prey)\n\t\t\t\t\t\tcontainer.add(i.buffer()[prey.dirtywordoffset\n\t\t\t\t\t\t\t\t+ i.dirtyWords() + k]\n\t\t\t\t\t\t\t\t^ j.buffer()[predator.dirtywordoffset\n\t\t\t\t\t\t\t\t\t\t+ j.dirtyWords() + k]);\n\t\t\t\t\telse\n\t\t\t\t\t\tcontainer.add(i.buffer()[predator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ i.dirtyWords() + k]\n\t\t\t\t\t\t\t\t^ j.buffer()[prey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t\t+ j.dirtyWords() + k]);\n\t\t\t\t}\n\t\t\t\tpredator.discardFirstWords(nbre_dirty_prey);\n\t\t\t}\n\t\t\tif (i_is_prey) {\n\t\t\t\tif (!i.hasNext()) {\n\t\t\t\t\trlwi = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trlwi.reset(i.next());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (!j.hasNext()) {\n\t\t\t\t\trlwj = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trlwj.reset(j.next());\n\t\t\t}\n\t\t}\n\t\tif (rlwi != null)\n\t\t\tdischarge(rlwi, i, container);\n\t\tif (rlwj != null)\n\t\t\tdischarge(rlwj, j, container);\n\t\tcontainer.setSizeInBits(Math.max(sizeInBits(), a.sizeInBits()));\n\t}", "public static MBFImage makeHybrid(MBFImage lowImage, float lowSigma, MBFImage highImage, float highSigma) {\n\n /**\n * @param kernel_size_LOW_IMAGE\n * kernel size of the Low Pass image\n * @param kernel_size_HIGH_IMAGE\n * kernel size of the High Pass image\n **/\n int kernel_size_LOW_IMAGE;\n int kernel_size_HIGH_IMAGE;\n\n /**\n * @param image_HIGH_PASS_CLONE\n * copy of the High Pass image\n * @param image_FINAL\n * the final image to be returned by the function\n * @param image_HIGH_PASS\n * the High Pass image\n **/\n MBFImage image_HIGH_PASS_CLONE = highImage.clone();\n MBFImage image_FINAL;\n MBFImage image_HIGH_PASS;\n\n //calculating the size of the kernel for the Low Pass image\n kernel_size_LOW_IMAGE = (int) (8.0f * lowSigma + 1.0f);\n // +1 if the size of the kernel is even\n if(kernel_size_LOW_IMAGE % 2 == 0) {\n\n kernel_size_LOW_IMAGE++;\n\n }\n\n //calculating the size of the kernel for the High Pass image\n kernel_size_HIGH_IMAGE = (int) (8.0f * highSigma + 1.0f);\n // +1 if the size of the kernel is even\n if(kernel_size_HIGH_IMAGE % 2 == 0) {\n\n kernel_size_HIGH_IMAGE++;\n\n }\n\n //create the kernel for the Low Pass and High Pass images\n FImage kernel_LOW = Gaussian2D.createKernelImage(kernel_size_LOW_IMAGE, lowSigma);\n FImage kernel_HIGH = Gaussian2D.createKernelImage(kernel_size_HIGH_IMAGE, highSigma);\n\n //apply the convolution for the Low Pass Image\n lowImage.processInplace(new MyConvolution(kernel_LOW.pixels));\n\n //apply the convolution for the High Pass Image\n image_HIGH_PASS_CLONE.processInplace(new MyConvolution(kernel_HIGH.pixels));\n image_HIGH_PASS = highImage.subtract(image_HIGH_PASS_CLONE);\n\n //add the 2 images together\n image_FINAL = image_HIGH_PASS.add(lowImage);\n\n //return the image\n return image_FINAL;\n\n }", "private static @Nonnull byte[] compress(@Nonnull final byte[] repBytes) {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try (OutputStream compos = new GZIPOutputStream(baos)) {\n compos.write(repBytes);\n } catch (final IOException e) {\n log.error(\"can not construct compressed representation: {}\", e);\n }\n return baos.toByteArray();\n }", "public Bitmap getFinalShapesImage();", "public void processAll() throws IOException {\n\t\tfor (Iterator i = imageList.iterator(); i.hasNext();) {\n\t\t\tEntry entry = (Entry) i.next();\n\n\t\t\tif (!entry.written) {\n\t\t\t\tentry.written = true;\n\n\t\t\t\tString[] encode;\n\t\t\t\tif (entry.writeAs.equals(ImageConstants.ZLIB)\n\t\t\t\t\t\t|| (entry.maskName != null)) {\n\t\t\t\t\tencode = new String[] { \"Flate\", \"ASCII85\" };\n\t\t\t\t} else if (entry.writeAs.equals(ImageConstants.JPG)) {\n\t\t\t\t\tencode = new String[] { \"DCT\", \"ASCII85\" };\n\t\t\t\t} else {\n\t\t\t\t\tencode = new String[] { null, \"ASCII85\" };\n\t\t\t\t}\n\n\t\t\t\tPDFStream img = pdf.openStream(entry.name);\n\t\t\t\timg.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\timg.entry(\"SMask\", pdf.ref(entry.maskName));\n\t\t\t\t}\n\t\t\t\timg.image(entry.image, entry.bkg, encode);\n\t\t\t\tpdf.close(img);\n\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\tPDFStream mask = pdf.openStream(entry.maskName);\n\t\t\t\t\tmask.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\t\tmask.imageMask(entry.image, encode);\n\t\t\t\t\tpdf.close(mask);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void startProcessing() {\n Util.lockOrientation(this);\n\n final int[] imageSpacing = Prefs.imageSpacing(MainActivity.this);\n final int SPACING_HORIZONTAL = imageSpacing[0];\n final int SPACING_VERTICAL = imageSpacing[1];\n\n final boolean horizontal = stackHorizontallyCheck.isChecked();\n int resultWidth;\n int resultHeight;\n\n log(\"--------------------------------\");\n if (horizontal) {\n log(\"Horizontally stacking\");\n\n // The width of the resulting image will be the largest width of the selected images\n // The height of the resulting image will be the sum of all the selected images' heights\n int maxHeight = -1;\n int minHeight = -1;\n\n // Traverse all selected images to find largest and smallest heights\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxHeight == -1)\n maxHeight = size[1];\n else if (size[1] > maxHeight)\n maxHeight = size[1];\n if (minHeight == -1)\n minHeight = size[1];\n else if (size[1] < minHeight)\n minHeight = size[1];\n }\n log(\"Min height: %d, max height: %d\", minHeight, maxHeight);\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalWidth = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) w / (float) h;\n if (scalePriority) {\n // Scale to largest\n if (h < maxHeight) {\n h = maxHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is less than max (%d), scaled up to %d/%d...\",\n traverseIndex, maxHeight, w, h);\n }\n } else {\n // Scale to smallest\n if (h > minHeight) {\n h = minHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, minHeight, w, h);\n }\n }\n totalWidth += w;\n }\n\n // Compensate for spacing\n totalWidth += SPACING_HORIZONTAL * (selectedPhotos.length + 1);\n minHeight += SPACING_VERTICAL * 2;\n maxHeight += SPACING_VERTICAL * 2;\n\n // Crash avoidance\n if (totalWidth == 0) {\n Util.showError(this, new Exception(\"The total generated width is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxHeight == 0) {\n Util.showError(this, new Exception(\"The max found height is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Total width with spacing = %d, max height with spacing = %d\", totalWidth, maxHeight);\n resultWidth = totalWidth;\n resultHeight = scalePriority ? maxHeight : minHeight;\n } else {\n log(\"Vertically stacking\");\n\n // The height of the resulting image will be the largest height of the selected images\n // The width of the resulting image will be the sum of all the selected images' widths\n int maxWidth = -1;\n int minWidth = -1;\n\n // Traverse all selected images and load min/max width, scale height accordingly\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxWidth == -1)\n maxWidth = size[0];\n else if (size[0] > maxWidth)\n maxWidth = size[0];\n if (minWidth == -1)\n minWidth = size[0];\n else if (size[0] < minWidth)\n minWidth = size[0];\n }\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalHeight = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) h / (float) w;\n if (scalePriority) {\n // Scale to largest\n if (w < maxWidth) {\n w = maxWidth;\n h = (int) ((float) w * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, maxWidth, w, h);\n }\n } else {\n // Scale to smallest\n if (w > minWidth) {\n w = minWidth;\n h = (int) ((float) w * ratio);\n log(\"Width of image %d is larger than min (%d), scaled height down to %d/%d...\",\n traverseIndex, minWidth, w, h);\n }\n }\n totalHeight += h;\n }\n\n // Compensate for spacing\n totalHeight += SPACING_VERTICAL * (selectedPhotos.length + 1);\n minWidth += SPACING_HORIZONTAL * 2;\n maxWidth += SPACING_HORIZONTAL * 2;\n\n // Crash avoidance\n if (totalHeight == 0) {\n Util.showError(this, new Exception(\"The total generated height is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxWidth == 0) {\n Util.showError(this, new Exception(\"The max found width is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Max width with spacing = %d, total height with spacing = %d\", maxWidth, totalHeight);\n resultWidth = scalePriority ? maxWidth : minWidth;\n resultHeight = totalHeight;\n }\n\n ImageSizingDialog.show(this, resultWidth, resultHeight);\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "public static byte[] compressOutputLine(byte[] line, int imageWidth) {\r\n\t\t\r\n\t\tArrayList<Byte> lineCompressedArray = new ArrayList<>();\r\n\t\tArrayList<Byte> pixelDifferentArray = new ArrayList<>(); // zum Zwischenspeichern der sich unterscheidenden Pixel\r\n\t\tint repetitionCounter = 0;\r\n\t\tint dataCounter = 0;\r\n\t\tint pixelInLineCounter = 0;\r\n\t\tboolean pixelEqual = false;\r\n\t\tboolean pixelDifferent = false;\r\n\t\tint controlByte;\r\n\t\tbyte[] firstPixel = new byte[3];\r\n\t\tbyte[] secondPixel = new byte[3];\r\n\t\t\r\n\t\twhile (pixelInLineCounter < imageWidth-1) {\r\n//\t\t\tersten und zweiten Pixel lesen\r\n\t\t\tfirstPixel[0] = line[pixelInLineCounter*3];\r\n\t\t\tfirstPixel[1] = line[pixelInLineCounter*3 + 1];\r\n\t\t\tfirstPixel[2] = line[pixelInLineCounter*3 + 2];\r\n\t\t\tsecondPixel[0] = line[pixelInLineCounter*3 + 3];\r\n\t\t\tsecondPixel[1] = line[pixelInLineCounter*3 + 4];\r\n\t\t\tsecondPixel[2] = line[pixelInLineCounter*3 + 5];\r\n\t\t\t\r\n\t\t\tif (firstPixel[0] == secondPixel[0] && firstPixel[1] == secondPixel[1] && firstPixel[2] == secondPixel[2]) {\r\n//\t\t\t\tPixel gleich\r\n\t\t\t\tpixelEqual = true;\r\n\t\t\t}\r\n\t\t\tif (!(firstPixel[0] == secondPixel[0] && firstPixel[1] == secondPixel[1] && firstPixel[2] == secondPixel[2])) {\r\n//\t\t\t\tPixel unterschiedlich\r\n\t\t\t\tpixelDifferent = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (pixelEqual) {\r\n//\t\t\t\tzaehle die gleichen Pixel\r\n\t\t\t\twhile (repetitionCounter < 127 && pixelInLineCounter + repetitionCounter < imageWidth-1 &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3] == line[repetitionCounter*3 + pixelInLineCounter*3 + 3] &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3 + 1] == line[repetitionCounter*3 + pixelInLineCounter*3 + 4] &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3 + 2] == line[repetitionCounter*3 + pixelInLineCounter*3 + 5]){\r\n\t\t\t\t\trepetitionCounter++;\r\n\t\t\t\t}\r\n//\t\t\t\tschreibe Steuerbyte fuer Wiederholung und das Pixel\r\n\t\t\t\tcontrolByte = 128 + repetitionCounter;\r\n\t\t\t\tlineCompressedArray.add((byte)controlByte);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[0]);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[1]);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[2]);\r\n\t\t\t\t\r\n\t\t\t\tpixelInLineCounter+=repetitionCounter+1;\r\n\t\t\t\t\r\n//\t\t\t\tschreibe letzten Pixel in der Zeile bzw. im Block, wenn am Ende noch ein einzelnes Pixel steht\r\n\t\t\t\tif (pixelInLineCounter == imageWidth-1) {\r\n\t\t\t\t\tlineCompressedArray.add((byte)0); // Steuerbyte\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3]);\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3 + 2]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\trepetitionCounter = 0;\r\n\t\t\t\tpixelEqual = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (pixelDifferent) {\r\n//\t\t\t\tzaehle die unterschiedlichen Pixel\r\n\t\t\t\twhile ((dataCounter < 127) && (pixelInLineCounter + dataCounter < imageWidth-1) &&\r\n\t\t\t\t\t\t!(line[dataCounter*3 + pixelInLineCounter*3] == line[dataCounter*3 + pixelInLineCounter*3 + 3] &&\r\n\t\t\t\t\t\tline[dataCounter*3 + pixelInLineCounter*3 + 1] == line[dataCounter*3 + pixelInLineCounter*3 + 4] &&\r\n\t\t\t\t\t\tline[dataCounter*3 + pixelInLineCounter*3 + 2] == line[dataCounter*3 + pixelInLineCounter*3 + 5])){\r\n//\t\t\t\t\tschreibe Pixel in ein Array zum zwischenspeichern\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t\tdataCounter++;\r\n\t\t\t\t}\r\n//\t\t\t\tam Ende der Zeile oder eines 128-Blocks schreibe das letzte Pixel:\r\n\t\t\t\tif ((dataCounter == 127)&&(pixelInLineCounter + dataCounter < imageWidth-1)\r\n\t\t\t\t\t\t&& (line[dataCounter*3 + pixelInLineCounter*3] == line[dataCounter*3 + pixelInLineCounter*3 + 3] \r\n\t\t\t\t\t\t&& line[dataCounter*3 + pixelInLineCounter*3 + 1] == line[dataCounter*3 + pixelInLineCounter*3 + 4] \r\n\t\t\t\t\t\t&& line[dataCounter*3 + pixelInLineCounter*3 + 2] == line[dataCounter*3 + pixelInLineCounter*3 + 5])) {\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ((dataCounter == 127) || (pixelInLineCounter + dataCounter == imageWidth-1)) {\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t\tdataCounter++;\r\n\t\t\t\t} \r\n\t\t\t\tif ((dataCounter == 128) && (pixelInLineCounter + dataCounter == imageWidth-1)) {\r\n\t\t\t\t\tpixelDifferentArray.add((byte)0);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t}\r\n\r\n//\t\t\t\tschreibe Steuerbyte fuer Datenzaehler und die zwischengespeicherten unterschiedlichen Pixel\r\n\t\t\t\tcontrolByte = dataCounter-1;\r\n\t\t\t\tlineCompressedArray.add((byte)controlByte);\r\n\t\t\t\tfor (int i = 0; i < pixelDifferentArray.size(); i++) {\r\n\t\t\t\t\tlineCompressedArray.add(pixelDifferentArray.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tpixelDifferentArray.clear();\r\n\t\t\t\tpixelInLineCounter+=dataCounter;\r\n\t\t\t\tdataCounter = 0;\r\n\t\t\t\tpixelDifferent = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n//\t\tuebertrage die komprimierten Pixel in ein byte-Array\r\n\t\tbyte[] lineCompressedByteArray = new byte[lineCompressedArray.size()];\r\n\t\tfor (int i = 0; i < lineCompressedByteArray.length; i++) {\r\n\t\t\tlineCompressedByteArray[i] = lineCompressedArray.get(i);\r\n\t\t}\r\n\t\treturn lineCompressedByteArray;\r\n\t}", "Picture binaryComponentImage() throws Exception;", "public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }", "public void setCompression( boolean compress ) {\n this .compression = compress;\n }", "public final void prepareForSaving() {\r\n\t\tbi_image.pack();\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n Uri selectedImageUri = data.getData();\n ParcelFileDescriptor parcelFileDescriptor;\n try {\n parcelFileDescriptor = getActivity().getContentResolver().openFileDescriptor(selectedImageUri, \"r\");\n FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();\n Bitmap mealImage = BitmapFactory.decodeFileDescriptor(fileDescriptor);\n parcelFileDescriptor.close();\n\n\n Bitmap mealImageScaled = Bitmap.createScaledBitmap(mealImage,\n LTAPIConstants.IMAGE_WIDTH_SIZE, LTAPIConstants.IMAGE_WIDTH_SIZE\n * mealImage.getHeight() / mealImage.getWidth(), false);\n\n Matrix matrix = new Matrix();\n //matrix.postRotate(90);\n Bitmap rotatedScaledMealImage = Bitmap.createBitmap(mealImageScaled, 0,\n 0, mealImageScaled.getWidth(), mealImageScaled.getHeight(),\n matrix, true);\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n rotatedScaledMealImage.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n\n byte[] scaledData = bos.toByteArray();\n photoFile = new ParseFile(\"tripcard_photo.jpg\", scaledData);\n addPhotoToMealAndReturn(photoFile);\n\n photoFile.saveInBackground(new SaveCallback() {\n\n public void done(ParseException e) {\n if (e != null) {\n Toast.makeText(getActivity(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n } else {\n debugShowToast(\"Saved???? \");\n }\n }\n });\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // Override Android default landscape orientation and save portrait\n }\n }", "public boolean useCompression()\n {\n return compressor != null;\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "private CompressionTools() {}", "public byte[] doInBackground(byte[]... data) {\n byte[] originalJpegData;\n byte[] originalJpegData2 = data[0];\n if (PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && PhotoModule.this.isSupportBeauty() && (PhotoModule.this.mCameraId == 0 || PhotoModule.this.mCameraId == 1)) {\n Size size = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n float seek = PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f;\n int angle = PhotoModule.this.mCameraId == 1 ? MediaProviderUtils.ROTATION_270 : 90;\n if (originalJpegData2 != null) {\n originalJpegData2 = BeautifyHandler.processImageNV21(PhotoModule.this.mActivity, originalJpegData2, size.width(), size.height(), seek, angle);\n }\n }\n PhotoModule.this.mActivity.getButtonManager().mBeautyEnable = true;\n Size size2 = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n PhotoModule.this.mIsAddWaterMark = PhotoModule.this.mCameraSettings.isAddWaterMarkEnabled();\n if (PhotoModule.this.mFinalDrCheckResult.size() <= 1) {\n Log.d(PhotoModule.TAG, \"start to jpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(originalJpegData2, size2.width(), size2.height());\n Log.d(PhotoModule.TAG, \"end to jpeg\");\n } else {\n int result = PhotoModule.this.mImageRefiner.processImage();\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processImage result = \");\n stringBuilder.append(result);\n Log.d(access$500, stringBuilder.toString());\n byte[] output = new byte[originalJpegData2.length];\n if (result < 0) {\n output = (byte[]) PhotoModule.this.mAddedImages.get(0);\n } else {\n int getOutputResult = PhotoModule.this.mImageRefiner.getOutputImageRaw(output);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"getOutputResult = \");\n stringBuilder2.append(getOutputResult);\n Log.d(access$5002, stringBuilder2.toString());\n }\n PhotoModule.this.mImageRefiner.finish();\n PhotoModule.this.mImageRefiner = null;\n Log.d(PhotoModule.TAG, \"mImageRefiner = null\");\n Log.d(PhotoModule.TAG, \"compressToJpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(output, size2.width(), size2.height());\n }\n if (cameraProxy.getCharacteristics().isFacingFront() && PhotoModule.this.isNeedMirrorSelfie()) {\n originalJpegData = PhotoModule.this.aftMirrorJpeg(originalJpegData);\n }\n if (!Keys.isAlgorithmsOn(PhotoModule.this.mActivity.getSettingsManager()) || PhotoModule.this.isDepthEnabled() || PhotoModule.this.mBurstResultQueue.isEmpty()) {\n return originalJpegData;\n }\n TotalCaptureResult totalCaptureResult = (TotalCaptureResult) PhotoModule.this.mBurstResultQueue.removeFirst();\n if (PhotoModule.this.mInHdrProcess) {\n PhotoModule.this.mBurstResultQueue.clear();\n }\n return PhotoModule.this.addExifTags(originalJpegData, totalCaptureResult, cameraProxy.getCharacteristics().isFacingFront(), PhotoModule.this.mJpegRotation);\n }", "public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }", "public interface CompressionStrategy {\n\n /**\n * The type of compression performed.\n */\n String getType();\n\n /**\n * Uncompresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data compressed data.\n * @return uncompressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] inflate(byte[] data) throws IOException;\n\n /**\n * Compresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data uncompressed data.\n * @return compressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] deflate(byte[] data) throws IOException;\n}", "public byte[] resizeScanBytes(byte[] byteScan) throws IOException {\n try (FileOutputStream fos = new FileOutputStream(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\")) {\r\n fos.write(byteScan);\r\n fos.close();\r\n }\r\n File input = new File(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\");\r\n BufferedImage image = ImageIO.read(input);\r\n\r\n File compressedImageFile = new File(\"compress.jpg\");\r\n OutputStream os = new FileOutputStream(compressedImageFile);\r\n\r\n Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName(\"jpg\");\r\n ImageWriter writer = (ImageWriter) writers.next();\r\n\r\n ImageOutputStream ios = ImageIO.createImageOutputStream(os);\r\n writer.setOutput(ios);\r\n\r\n ImageWriteParam param = writer.getDefaultWriteParam();\r\n\r\n // ustawienie stopnia kompresji\r\n param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);\r\n param.setCompressionQuality(0.1f);\r\n writer.write(null, new IIOImage(image, null, null), param);\r\n os.close();\r\n ios.close();\r\n writer.dispose();\r\n\r\n // zamieniam na byte\r\n Path path = Paths.get(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\");\r\n byte[] data = Files.readAllBytes(path);\r\n\r\n return data;\r\n }", "private static void writeImageChunk(Path sourceImagePath, Path outputImagePath, String outputFormat, int chunkNumber, int chunkCount) throws IOException {\r\n try (InputStream readInputStream = Files.newInputStream(sourceImagePath, StandardOpenOption.READ)) {\r\n // read the original image\r\n BufferedImage image = ImageIO.read(readInputStream);\r\n\r\n // reduce the original image to an image for the desired chunk\r\n BufferedImage chunkedImage = BMPFragmenter.fragmentBMP(image, chunkNumber, chunkCount);\r\n // overwrite the original image with the smaller chunk\r\n try (OutputStream writeOutputStream = Files.newOutputStream(outputImagePath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING)) {\r\n ImageIO.write(chunkedImage, outputFormat, writeOutputStream);\r\n }\r\n }\r\n }", "public EWAHCompressedBitmap and(final EWAHCompressedBitmap a) {\n\t\tfinal EWAHCompressedBitmap container = new EWAHCompressedBitmap();\n\t\tcontainer.reserve(this.actualsizeinwords > a.actualsizeinwords\n\t\t\t\t? this.actualsizeinwords : a.actualsizeinwords);\n\t\tand(a, container);\n\t\treturn container;\n\t}", "public native void syncImage() throws MagickException;", "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi); /* Image Negative */\n return;\n\n case 2:\n biFiltered = RescaleImage(bi);\n return;\n\n case 3:\n biFiltered = ShiftImage(bi);\n return;\n\n case 4:\n biFiltered = RescaleShiftImage(bi);\n return;\n\n case 5:\n biFiltered = Add(bi, bi1);\n return;\n\n case 6:\n biFiltered = Subtract(bi, bi1);\n return;\n\n case 7:\n biFiltered = Multiply(bi, bi1);\n return;\n\n case 8:\n biFiltered = Divide(bi, bi1);\n return;\n\n case 9:\n biFiltered = NOT(bi);\n return;\n\n case 10:\n biFiltered = AND(bi, bi1);\n return;\n\n case 11:\n biFiltered = OR(bi, bi1);\n return;\n\n case 12:\n biFiltered = XOR(bi, bi1);\n return;\n\n case 13:\n biFiltered = ROI(bi);\n return;\n\n case 14:\n biFiltered = Negative_Linear(bi);\n return;\n\n case 15:\n biFiltered= Logarithmic_function(bi);\n return;\n\n case 16:\n biFiltered = Power_Law(bi);\n return;\n\n case 17:\n biFiltered = LUT(bi);\n return;\n\n case 18:\n biFiltered = Bit_planeSlicing(bi);\n return;\n\n case 19:\n biFiltered = Histogram(bi1,bi2);\n return;\n\n case 20:\n biFiltered = HistogramEqualisation(bi,bi3);\n return;\n\n case 21:\n biFiltered = Averaging(bi1);\n return;\n\n case 22:\n biFiltered = WeightedAveraging(bi1);\n return;\n\n case 23:\n biFiltered = fourNeighbourLaplacian(bi1);\n return;\n\n case 24:\n biFiltered= eightNeighbourLaplacian(bi1);\n return;\n\n case 25:\n biFiltered = fourNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 26:\n biFiltered = eightNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 27:\n biFiltered = Roberts(bi1);\n return;\n\n case 28:\n biFiltered = SobelX(bi1);\n return;\n\n case 29:\n biFiltered = SobelY(bi1);\n return;\n\n case 30:\n biFiltered = Gaussian(bi1);\n return;\n\n case 31:\n biFiltered = LoG (bi1);\n return;\n\n case 32:\n biFiltered = saltnpepper(bi4);\n return;\n\n case 33:\n biFiltered = minFiltering(bi4);\n return;\n\n case 34:\n biFiltered = maxFiltering(bi4);\n return;\n\n case 35:\n biFiltered = maidpointFiltering(bi4);\n return;\n\n case 36:\n biFiltered = medianFiltering(bi4);\n return;\n\n case 37:\n biFiltered = simpleThresholding(bi5);\n return;\n\n case 38:\n biFiltered = automatedThresholding(bi6);\n return;\n\n case 39:\n biFiltered = adaptiveThresholding(bi7);\n return;\n }\n }" ]
[ "0.65125275", "0.6041679", "0.5984412", "0.5934844", "0.5792136", "0.57796305", "0.57014495", "0.56067216", "0.53852177", "0.53159434", "0.5297026", "0.5286787", "0.5286405", "0.52731913", "0.52518225", "0.5251278", "0.52257544", "0.51834744", "0.5150108", "0.51337194", "0.51210696", "0.51071286", "0.5065586", "0.5056276", "0.50448", "0.50295323", "0.5027409", "0.5015869", "0.50114715", "0.5010811", "0.5005832", "0.49996227", "0.49719945", "0.49561143", "0.4939845", "0.4936699", "0.4929405", "0.49281165", "0.49128053", "0.48920596", "0.4891813", "0.48782614", "0.4876686", "0.48622963", "0.48620236", "0.4859388", "0.48567635", "0.48512775", "0.48496193", "0.48493356", "0.48328313", "0.48279", "0.4826299", "0.48248595", "0.48239842", "0.48193493", "0.48082355", "0.48059726", "0.48056224", "0.48051617", "0.47973576", "0.47912073", "0.478289", "0.47545207", "0.4750873", "0.4750873", "0.4750873", "0.4750873", "0.4750873", "0.4750873", "0.4748506", "0.47433805", "0.47431567", "0.47340283", "0.47265399", "0.4700789", "0.46952373", "0.46891707", "0.46886578", "0.46809417", "0.46784508", "0.46763074", "0.467181", "0.4669827", "0.46589705", "0.46540004", "0.4650559", "0.46499878", "0.4647301", "0.46407127", "0.4629382", "0.46245828", "0.461038", "0.4600165", "0.4595551", "0.4586362", "0.4581906", "0.45775414", "0.45617208", "0.45569628" ]
0.6834306
0
Compression primary and block image.
public TailoredImage uncompress() { setPrimaryImg(snappyUnCompress(getPrimaryImg())); setBlockImg(snappyUnCompress(getBlockImg())); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TailoredImage compress() {\n\t\t\tsetPrimaryImg(snappyCompress(getPrimaryImg()));\n\t\t\tsetBlockImg(snappyCompress(getBlockImg()));\n\t\t\treturn this;\n\t\t}", "private void CreateCompression() {\n double[][] Ydct = new double[8][8];\n double[][] Cbdct = new double[8][8];\n double[][] Crdct = new double[8][8];\n\n /*\n Tenemos que coger una matriz de 8x8 que sera nuestro pixel a comprimir. Si la matriz se sale de los parametros\n altura y anchura, haremos padding con 0, para que sea negro.\n */\n\n\n for (int i = 0; i < height; i += 8) {\n for (int j = 0; j < width; j += 8) {\n for (int x = 0; x < 8; ++x) {\n for (int y = 0; y < 8; ++y) {\n if (i + x >= height || j + y >= width) {\n Ydct[x][y] = 0;\n Cbdct[x][y] = 0;\n Crdct[x][y] = 0;\n } else {\n Ydct[x][y] = (double) imagenYCbCr[x + i][y + j][0] - 128;\n Cbdct[x][y] = (double) imagenYCbCr[x + i][y + j][1] - 128;\n Crdct[x][y] = (double) imagenYCbCr[x + i][y + j][2] - 128;\n }\n }\n }\n\n\n /*\n Haremos el DCT2 de cada componente de color para el pixel\n */\n\n\n Ydct = dct2(Ydct);\n Cbdct = dct2(Cbdct);\n Crdct = dct2(Crdct);\n\n /*\n Quantizamos los DCT de cada componente del color\n */\n\n for (int v = 0; v < 8; ++v) {\n for (int h = 0; h < 8; ++h) {\n Ydct[v][h] = Math.round(Ydct[v][h] / QtablesLuminance[quality][v][h]);\n Cbdct[v][h] = Math.round(Cbdct[v][h] / QtablesChrominance[quality][v][h]);\n Crdct[v][h] = Math.round(Crdct[v][h] / QtablesChrominance[quality][v][h]);\n\n }\n }\n\n\n /*\n Hacemos el encoding con Huffman HAY QUE RECORRER EN ZIGZAG CADA MATRIZ\n */\n\n int u = 1;\n int k = 1;\n int contador = 0;\n for (int element = 0; element < 64; ++element, ++contador) {\n Yencoding.add((int) Ydct[u - 1][k - 1]);\n Cbencoding.add((int) Cbdct[u - 1][k - 1]);\n Crencoding.add((int) Crdct[u - 1][k - 1]);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n }\n }\n }\n }", "public native int getCompression() throws MagickException;", "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "public void setImageCompression(byte comp) {\n this.compression = comp;\n }", "@Override\n\tpublic void Compress() {\n\t\t\n\t}", "public void compressImage(String path, String module) {\n pathtoUpload = path;\n String imagePath = getRealPathFromURI(path);\n Bitmap scaledBitmap = null;\n BitmapFactory.Options options = new BitmapFactory.Options();\n// by setting this field as true, the actual bitmap pixels are not loaded in the memory. Just the bounds are loaded. If\n// you try the use the bitmap here, you will get null.\n options.inJustDecodeBounds = true;\n Bitmap bmp = BitmapFactory.decodeFile(imagePath, options);\n int actualHeight = options.outHeight;\n int actualWidth = options.outWidth;\n// max Height and width values of the compressed image is taken as 816x612\n if (actualWidth > 0 && actualHeight > 0) {\n float maxHeight = 816.0f;\n float maxWidth = 612.0f;\n float imgRatio = 0;\n float maxRatio = 0;\n if (actualHeight != 0) {\n imgRatio = actualWidth / actualHeight;\n }\n if (maxHeight != 0) {\n maxRatio = maxWidth / maxHeight;\n }\n // width and height values are set maintaining the aspect ratio of the image\n if (actualHeight > maxHeight || actualWidth > maxWidth) {\n if (imgRatio < maxRatio) {\n imgRatio = maxHeight / actualHeight;\n actualWidth = (int) (imgRatio * actualWidth);\n actualHeight = (int) maxHeight;\n } else if (imgRatio > maxRatio) {\n imgRatio = maxWidth / actualWidth;\n actualHeight = (int) (imgRatio * actualHeight);\n actualWidth = (int) maxWidth;\n } else {\n actualHeight = (int) maxHeight;\n actualWidth = (int) maxWidth;\n }\n }\n options.inSampleSize = calculateInSampleSize(options, actualWidth, actualHeight);\n options.inJustDecodeBounds = false;\n options.inPurgeable = true;\n options.inInputShareable = true;\n options.inTempStorage = new byte[16 * 1024];\n try {\n bmp = BitmapFactory.decodeFile(imagePath, options);\n } catch (OutOfMemoryError exception) {\n exception.printStackTrace();\n }\n try {\n scaledBitmap = Bitmap.createBitmap(actualWidth, actualHeight, Bitmap.Config.ARGB_8888);\n } catch (OutOfMemoryError exception) {\n exception.printStackTrace();\n }\n float ratioX = actualWidth / (float) options.outWidth;\n float ratioY = actualHeight / (float) options.outHeight;\n float middleX = actualWidth / 2.0f;\n float middleY = actualHeight / 2.0f;\n\n Matrix scaleMatrix = new Matrix();\n scaleMatrix.setScale(ratioX, ratioY, middleX, middleY);\n\n Canvas canvas = new Canvas(scaledBitmap);\n canvas.setMatrix(scaleMatrix);\n canvas.drawBitmap(bmp, middleX - bmp.getWidth() / 2, middleY - bmp.getHeight() / 2, new Paint(Paint.FILTER_BITMAP_FLAG));\n ExifInterface exif;\n try {\n exif = new ExifInterface(imagePath);\n\n int orientation = exif.getAttributeInt(\n ExifInterface.TAG_ORIENTATION, 0);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n Matrix matrix = new Matrix();\n if (orientation == 6) {\n matrix.postRotate(90);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n } else if (orientation == 3) {\n matrix.postRotate(180);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n } else if (orientation == 8) {\n matrix.postRotate(270);\n Log.d(\"EXIF\", \"Exif: \" + orientation);\n }\n scaledBitmap = Bitmap.createBitmap(scaledBitmap, 0, 0,\n scaledBitmap.getWidth(), scaledBitmap.getHeight(), matrix,\n true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n FileOutputStream out = null;\n //String filename = getFilename();\n File outFile = new File(imagePath);\n if (outFile != null && outFile.exists()) {\n outFile.delete();\n }\n try {\n out = new FileOutputStream(outFile);\n scaledBitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);\n out.flush();\n out.close();\n\n if (module.equals(ApplicationConstant.MODULE_CAPTURE)) {\n captureImage.setImageURI(Uri.parse(pathtoUpload));\n }\n if (module.equals(ApplicationConstant.MODULE_GALLERY)) {\n captureImage.setImageBitmap(BitmapFactory.decodeFile(pathtoUpload));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public native void setCompression(int value) throws MagickException;", "Compress(double[][][] Image){\n \n /** Step 1 */\n R1 = new Reduce(Image);\n A1 = R1.Nearest(2);\n // A1 = R1.Bilinear(2);\n \n /** Step 2 */ \n R2 = new Reduce(A1);\n A2 = R2.Nearest(2);\n //A2 = R2.Bilinear(2);\n \n /** Step 3 */\n R3 = new Reduce(A2);\n A3 = R3.Nearest(2);\n //A3 = R3.Bilinear(2);\n \n /** Step 4 */\n R4 = new Reduce(A3);\n A4 = R4.Nearest(2);\n //A4 = R4.Bilinear(2);\n\n }", "public void compress() {\r\n fCharBuffer.compress();\r\n fStyleBuffer.compress();\r\n fParagraphBuffer.compress();\r\n }", "public static void decodeAllImages(Args args){\n \t//Now those arrays will contain 'decoded' images\n \timageNames.clear();\n imagesToZip.clear();\n imageDict.clear();\n ArrayList<CodedData> recoveredData = null;\n\n //Read the coded images\n try {\n System.out.println(\"Reading zip file...\");\n readZip(args.codedInput, false);\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n BufferedImage tempFrame=null, tempFrameI=null;\n WritableRaster tempBitmap=null;\n WritableRaster tempDecoded=null;\n CodedData tempData=null;\n int gop = dataList.get(0).gop;\n //System.out.println(gop);\n BufferedImage tempBufferedImage = null;\n int z = 0;\n //recoveredData[0] contains the info of the image 0, and so on\n int recoveredDataCounter = 0;\n //For every image,\n for(int i= 0; i < imageNames.size(); i++){\n \t//z is a counter of the gop so we can decide if its a frameI or P\n if(z >= (gop)){\n z=0;\n }\n if(z == 0){//Frame I\n \t//Store it\n tempFrameI = imageDict.get(imageNames.get(i));\n imageDict.put(imageNames.get(i), tempFrameI);\n }else{\n //Frame P, decode it\n tempFrame = imageDict.get(imageNames.get(i)); \n tempBitmap = (WritableRaster) tempFrame.getData();\n tempDecoded = tempBitmap.createWritableChild(tempFrame.getMinX(), tempFrame.getMinY(), tempFrame.getWidth(), tempFrame.getHeight(), 0,0, null);\n \t//Get his info\n tempData = dataList.get(recoveredDataCounter);\n recoveredDataCounter++;\n int[] tempColor;\n //Iterate through the tile and replace its pixels\n for(int k = 0; k < tempData.bestTilesX.size(); k++){\n for (int baseX = 0; baseX < tempData.tileWidth ; baseX++) {\n for (int baseY = 0; baseY < tempData.tileHeight; baseY++) {\n tempColor = getPixelColor(tempFrameI, tempData.bestOriginX.get(k)+baseX, tempData.bestOriginY.get(k)+baseY);\n tempDecoded.setPixel(tempData.bestTilesX.get(k)+baseX, tempData.bestTilesY.get(k)+baseY, tempColor);\n }\n }\n }\n //Store the new decoded image\n tempBufferedImage = new BufferedImage(tempFrame.getColorModel(),tempDecoded,tempFrame.isAlphaPremultiplied(),null);\n imageDict.put(imageNames.get(i), tempBufferedImage);\n tempFrameI = tempBufferedImage;\n }\n z++;\n }\n }", "public int compressPhoto(int photoID) {\n // This method compresses a photo to a suitable size to be displayed on cards.\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(getResources(), photoID, options);\n int imageHeight = options.outHeight;\n int imageWidth = options.outWidth;\n String imageType = options.outMimeType;\n\n // Load a Scaled Down Version into Memory\n options.inSampleSize = calculateInSampleSize(options, 1000, 750);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return photoID;\n\n\n }", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "@Override\n public byte[] compress(byte[] imagen) {\n ResetVarC();\n /*\n Declaraciones de variables\n */\n char[] imagenaux = new char[imagen.length];\n for (int j = 0; j < imagen.length; j++) {\n imagenaux[j] = (char) (imagen[j] & 0xFF);\n }\n\n getWidthandHeight(imagenaux);\n\n imagenYCbCr = new int[height][width][3];\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int[] RGB = {(int) imagenaux[iterator], (int) imagenaux[iterator + 1], (int) imagenaux[iterator + 2]};\n imagenYCbCr[i][j] = RGBtoYCbCr(RGB);\n iterator += 3;\n }\n }\n\n CreateCompression();\n\n\n Huffman comprimirY = new Huffman();\n Huffman comprimirCB = new Huffman();\n Huffman comprimirCR = new Huffman();\n\n String Yen = comprimirY.compressHuffman(Yencoding);\n String Cben = comprimirCB.compressHuffman(Cbencoding);\n String Cren = comprimirCR.compressHuffman(Crencoding);\n\n\n Map<Integer, Integer> freqY = comprimirY.getFrequencies();\n Map<Integer, Integer> freqCb = comprimirCB.getFrequencies();\n Map<Integer, Integer> freqCr = comprimirCR.getFrequencies();\n\n\n CreateFreq(freqY, freqCb, freqCr);\n\n return JPEGFile(freqY, freqCb, freqCr, Yen, Cben, Cren);\n }", "public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static byte[] packMtx(byte[] block1, byte[] block2, byte[] block3) {\n int copyDist = Math.max(block1.length, Math.max(block2.length, block3.length)) +\n LzcompCompress.getPreloadSize();\n byte[] compressed1 = LzcompCompress.compress(block1);\n byte[] compressed2 = LzcompCompress.compress(block2);\n byte[] compressed3 = LzcompCompress.compress(block3);\n int resultSize = 10 + compressed1.length + compressed2.length + compressed3.length;\n byte[] result = new byte[resultSize];\n result[0] = 3;\n writeBE24(result, copyDist, 1);\n int offset2 = 10 + compressed1.length;\n int offset3 = offset2 + compressed2.length;\n writeBE24(result, offset2, 4);\n writeBE24(result, offset3, 7);\n System.arraycopy(compressed1, 0, result, 10, compressed1.length);\n System.arraycopy(compressed2, 0, result, offset2, compressed2.length);\n System.arraycopy(compressed3, 0, result, offset3, compressed3.length);\n return result;\n }", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "public native MagickImage minifyImage() throws MagickException;", "private void blockCompressAndIndex(String in, String bgzfOut, boolean deleteOnExit) throws IOException {\n\t\t\n\t\t// System.err.print(\"Compressing: \" + in + \" to file: \" + bgzfOut + \"... \");\n\t\t\n\t\tFile inFile= new File(in);\n\t\tFile outFile= new File(bgzfOut);\n\t\t\n\t\tLineIterator lin= IOUtils.openURIForLineIterator(inFile.getAbsolutePath());\n\n\t\tBlockCompressedOutputStream writer = new BlockCompressedOutputStream(outFile);\n\t\tlong filePosition= writer.getFilePointer();\n\t\t\n\t\tTabixIndexCreator indexCreator=new TabixIndexCreator(TabixFormat.BED);\n\t\tBedLineCodec bedCodec= new BedLineCodec();\n\t\twhile(lin.hasNext()){\n\t\t\tString line = lin.next();\n\t\t\tBedLine bed = bedCodec.decode(line);\n\t\t\tif(bed==null) continue;\n\t\t\twriter.write(line.getBytes());\n\t\t\twriter.write('\\n');\n\t\t\tindexCreator.addFeature(bed, filePosition);\n\t\t\tfilePosition = writer.getFilePointer();\n\t\t}\n\t\twriter.flush();\n\t\t\n\t\t// System.err.print(\"Indexing... \");\n\t\t\n\t\tFile tbi= new File(bgzfOut + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\tif(tbi.exists() && tbi.isFile()){\n\t\t\twriter.close();\n\t\t\tthrow new RuntimeException(\"Index file exists: \" + tbi);\n\t\t}\n\t\tIndex index = indexCreator.finalizeIndex(writer.getFilePointer());\n\t\tindex.writeBasedOnFeatureFile(outFile);\n\t\twriter.close();\n\n\t\t// System.err.println(\"Done\");\n\t\t\n\t\tif(deleteOnExit){\n\t\t\toutFile.deleteOnExit();\n\t\t\tFile idx= new File(outFile.getAbsolutePath() + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\t\tidx.deleteOnExit();\n\t\t}\n\t}", "public void stopImage() {\r\n\t\tint nComps = m_blocks.size();\r\n\t\tassert(nComps == 3);\r\n\t\t\r\n\t\t// Pack the DCT features\r\n\t\tIterator<double[][]> it1 = m_blocks.get(0).iterator();\r\n\t\tIterator<double[][]> it2 = m_blocks.get(1).iterator();\r\n\t\tIterator<double[][]> it3 = m_blocks.get(2).iterator();\t\t\t\t\r\n\r\n\t\tfor (int i = 0; i < m_blocks.get(0).size(); i++) {\r\n\t\t DataVec vec = new DataVec();\r\n\t\t \r\n\t\t\tdouble[][] Y = it1.next();\r\n\t\t\tdouble[][] Cb = it2.next();\r\n\t\t\tdouble[][] Cr = it3.next();\r\n\t\t\t\r\n\t\t\t// Only supports 4:4:4 JPEG format (maybe standard)\r\n\t\t\tassert(Cb.length == Y.length);\r\n\t\t\tassert(Cr.length == Y.length);\r\n\t\t\t\r\n\t\t\t// Zigzag scan\r\n\t\t\tfor (int z = 0; z < useDctFeature; z++) {\r\n\t\t\t\tint j = jpegNaturalOrder[z] / 8;\r\n\t\t\t\tint k = jpegNaturalOrder[z] % 8;\r\n\t\t\t\tvec.add(Y[j][k]);\r\n\t\t\t\tvec.add(Cb[j][k]);\r\n\t\t\t\tvec.add(Cr[j][k]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tm_feature.add(vec);\r\n\t\t}\r\n\r\n\t\t// Number of blocks\r\n\t\tint nBlocks = m_feature.size();\r\n\r\n\t\t// Cluster parameters\r\n\t\tfinal int paramClusterNum = 40; // if members > this number, then add to dictionary\r\n\t\tfinal int paramCountThres = 10; // if members > this number, then add to dictionary\r\n\r\n\t\t// Cluster\r\n\t\tCluster cluster = new Cluster(m_feature, 0, 1); // check min and max\r\n\t\tTriple<Integer[], Integer[], DataVec[]> res = cluster.cluster(System.out, \r\n\t\t\t\tparamClusterNum, 20);\r\n\t\tInteger[] groups = res.first;\r\n\t\tInteger[] memberCount = res.second;\r\n\t\tDataVec[] centroids = res.third;\r\n\r\n\t\t// Feature select\r\n\t\tfor (int i = 0; i < memberCount.length; i++) {\r\n\t\t if (memberCount[i] >= paramCountThres) {\r\n\t\t Vector<double[][]> block = dataVecToBlock(nComps, centroids[i]);\r\n\t\t m_blockArchive.add(block);\r\n\t\t }\r\n\t\t}\r\n\t}", "private void compressCamBitmap(String imagePath) {\n\t\tnew ImageCompressionAsyncTask(true,getActivity()){\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tsharedImagePath=result;\n\t\t\t\tif(cameraImagePath!=null){\n\t\t\t\t\tFile tempFile=new File(cameraImagePath);\n\t\t\t\t\ttempFile.delete();\n\t\t\t\t\tcameraImagePath=null;\n\t\t\t\t}\n\t\t\t};\n\n\t\t}.execute(imagePath);\n\t}", "default boolean isCompressed() {\n return COMPRESSED.isSet(getFlags());\n }", "private ZipCompressor(){}", "@Override\n public byte[] compress(byte[] bytes) throws IOException\n {\n try (BinaryIO io = new BinaryIO())\n {\n io.write32Bits(LZW_TAG);\n\n LZWDictionary dict = new LZWDictionary();\n int bitsize = 9, index = -1, newIndex;\n\n for (byte b : bytes)\n {\n newIndex = dict.get(index, b);\n\n if (newIndex > 0)\n index = newIndex;\n else\n {\n io.writeBits(index, bitsize);\n bitsize = dict.put(index, b);\n index = dict.get(-1, b);\n }\n if (dict.isFull())\n dict.reset();\n }\n io\n .writeBits(index, bitsize)\n .write32Bits(0); // EoF marker\n\n return io.getBytesOut();\n }\n }", "public boolean IsCompressed() {\n return false;\n }", "ImageTranscoder mo28916a(ImageFormat cVar, boolean z);", "public void setContentCompression(String method) {\n this.contentCompression = method;\n }", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "private Bitmap flipImage(byte[] input, FileOutputStream fos){\n\n\t\t\t\tMatrix rotate_matrix = new Matrix();\n\t\t\t\trotate_matrix.preScale(-1.0f, 1.0f);\n\t\t\t\tBitmapFactory bmf = new BitmapFactory();\n\t\t\t\tBitmap raw_bitmap = bmf.decodeByteArray(input, 0, input.length);\n\t\t\t\tBitmap result = Bitmap.createBitmap(raw_bitmap, 0, 0, raw_bitmap.getWidth(), raw_bitmap.getHeight(), rotate_matrix, true);\n\t\t\t\treturn result;\n\t\t\t\t/*\n\t\t\t\tresult.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n\t\t\t\ttry {\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}", "private void readImage(final InputStream inputStream) throws IOException\n {\n final int lzwCode = inputStream.read();\n\n if (lzwCode < 0)\n {\n throw new IOException(\"No enough data to read LZW code\");\n }\n\n this.colorIndexes = new int[this.width * this.height];\n SubBlock subBlock = SubBlock.read(inputStream);\n\n if (subBlock == SubBlock.EMPTY)\n {\n return;\n }\n\n byte[] data = subBlock.getData();\n\n if (data.length < 4)\n {\n // To avoid some malformed GIF\n return;\n }\n\n this.buffer32 = (data[0] & 0xFF) | ((data[1] & 0xFF) << 8) | ((data[2] & 0xFF) << 16) | ((data[3] & 0xFF) << 24);\n final int clearCode = 1 << lzwCode;\n final int endCode = clearCode + 1;\n int code, oldCode = 0;\n final int[] prefix = new int[4096];\n final byte[] suffix = new byte[4096];\n final byte[] initial = new byte[4096];\n final int[] length = new int[4096];\n final byte[] string = new byte[4096];\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n int tableIndex = (1 << lzwCode) + 2;\n int codeSize = lzwCode + 1;\n int codeMask = (1 << codeSize) - 1;\n Pair<Integer, SubBlock> pair = new Pair<Integer, SubBlock>(0, subBlock);\n\n while (pair.element1 != endCode)\n {\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n\n if (code == clearCode)\n {\n this.initializeStringTable(prefix, suffix, initial, length, lzwCode);\n tableIndex = (1 << lzwCode) + 2;\n codeSize = lzwCode + 1;\n codeMask = (1 << codeSize) - 1;\n\n pair = this.getCode(codeSize, codeMask, inputStream, subBlock, endCode);\n code = pair.element1;\n subBlock = pair.element2;\n if (code == endCode)\n {\n return;\n }\n }\n else if (code == endCode)\n {\n return;\n }\n else\n {\n int newSuffixIndex;\n if (code < tableIndex)\n {\n newSuffixIndex = code;\n }\n else\n { // code == tableIndex\n newSuffixIndex = oldCode;\n if (code != tableIndex)\n {\n // warning - code out of sequence\n // possibly data corruption\n Debug.println(DebugLevel.WARNING, \"Out-of-sequence code!\");\n }\n }\n\n final int ti = tableIndex;\n\n prefix[ti] = oldCode;\n suffix[ti] = initial[newSuffixIndex];\n initial[ti] = initial[oldCode];\n length[ti] = length[oldCode] + 1;\n\n tableIndex++;\n if ((tableIndex == (1 << codeSize)) && (tableIndex < 4096))\n {\n codeSize++;\n codeMask = (1 << codeSize) - 1;\n }\n }\n\n // Reverse code\n int c = code;\n final int len = length[c];\n for (int i = len - 1; i >= 0; i--)\n {\n string[i] = suffix[c];\n c = prefix[c];\n }\n\n this.writeImage(string, len);\n oldCode = code;\n }\n }", "@Test\n public void testDERIVATIVE_COMPRESS_CRC() throws IOException {\n// ZipMeVariables.getSINGLETON().setCRC___(true);\n// ZipMeVariables.getSINGLETON().setCOMPRESS___(true);\n// ZipMeVariables.getSINGLETON().setDERIVATIVE_COMPRESS_CRC___(true);\n\t Configuration.CRC=true;\n\t Configuration.COMPRESS=true;\n\t Configuration.DERIVATIVE_COMPRESS_CRC=true;\n if(Configuration.CRC && Configuration.COMPRESS && Configuration.DERIVATIVE_COMPRESS_CRC) { \n ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(new File(\n homeDir + \"/files/src.zip\")));\n zout.crc.update(1);\n ZipEntry ze = new ZipEntry(\"C://\");\n zout.putNextEntry(ze);\n zout.hook41();\n assertTrue(zout.crc.crc == 0);\n\n zout.write(new byte[32], 0, 31);\n assertTrue(zout.size == 31);\n zout.closeEntry();\n assertTrue(ze.getCrc() == zout.crc.crc);\n }\n }", "protected void processBlock() {\n\t\t// expand 16 word block into 64 word blocks.\n\t\t//\n\t\tfor (int t = 16; t <= 63; t++) {\n\t\t\tX[t] = Theta1(X[t - 2]) + X[t - 7] + Theta0(X[t - 15]) + X[t - 16];\n\t\t}\n\n\t\t//\n\t\t// set up working variables.\n\t\t//\n\t\tint a = H1;\n\t\tint b = H2;\n\t\tint c = H3;\n\t\tint d = H4;\n\t\tint e = H5;\n\t\tint f = H6;\n\t\tint g = H7;\n\t\tint h = H8;\n\n\t\tint t = 0;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t// t = 8 * i\n\t\t\th += Sum1(e) + Ch(e, f, g) + K[t] + X[t];\n\t\t\td += h;\n\t\t\th += Sum0(a) + Maj(a, b, c);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 1\n\t\t\tg += Sum1(d) + Ch(d, e, f) + K[t] + X[t];\n\t\t\tc += g;\n\t\t\tg += Sum0(h) + Maj(h, a, b);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 2\n\t\t\tf += Sum1(c) + Ch(c, d, e) + K[t] + X[t];\n\t\t\tb += f;\n\t\t\tf += Sum0(g) + Maj(g, h, a);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 3\n\t\t\te += Sum1(b) + Ch(b, c, d) + K[t] + X[t];\n\t\t\ta += e;\n\t\t\te += Sum0(f) + Maj(f, g, h);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 4\n\t\t\td += Sum1(a) + Ch(a, b, c) + K[t] + X[t];\n\t\t\th += d;\n\t\t\td += Sum0(e) + Maj(e, f, g);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 5\n\t\t\tc += Sum1(h) + Ch(h, a, b) + K[t] + X[t];\n\t\t\tg += c;\n\t\t\tc += Sum0(d) + Maj(d, e, f);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 6\n\t\t\tb += Sum1(g) + Ch(g, h, a) + K[t] + X[t];\n\t\t\tf += b;\n\t\t\tb += Sum0(c) + Maj(c, d, e);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 7\n\t\t\ta += Sum1(f) + Ch(f, g, h) + K[t] + X[t];\n\t\t\te += a;\n\t\t\ta += Sum0(b) + Maj(b, c, d);\n\t\t\t++t;\n\t\t}\n\n\t\tH1 += a;\n\t\tH2 += b;\n\t\tH3 += c;\n\t\tH4 += d;\n\t\tH5 += e;\n\t\tH6 += f;\n\t\tH7 += g;\n\t\tH8 += h;\n\n\t\t//\n\t\t// reset the offset and clean out the word buffer.\n\t\t//\n\t\txOff = 0;\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tX[i] = 0;\n\t\t}\n\t}", "private void compressArchive() throws Exception {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Compressing archive: \" + path);\n\t\t}\n\n\t\tFileOutputStream fout = new FileOutputStream(path + \".gz\");\n\t\tGZIPOutputStream gout = new GZIPOutputStream(fout);\n\t\tFileInputStream fin = new FileInputStream(path);\n\t\tbyte[] buf = new byte[blockSize];\n\t\tint len;\n\t\twhile ((len = fin.read(buf)) > 0) {\n\t\t\tgout.write(buf, 0, len);\n\t\t}\n\t\tfin.close();\n\n\t\t// flush and close gzip file\n\t\tgout.finish();\n\t\tgout.close();\n\n\t\t// unlink original archive\n\t\tFile file = new File(path);\n\t\tfile.delete();\n\t}", "public EWAHCompressedBitmap() {\n\t\tthis.buffer = new long[defaultbuffersize];\n\t\tthis.rlw = new RunningLengthWord(this.buffer, 0);\n\t}", "public DatasetCompression compression() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().compression();\n }", "public static byte[] compressBytes(byte[] data) {\n\t\t\tDeflater deflater = new Deflater();\n\t\t\tdeflater.setInput(data);\n\t\t\tdeflater.finish();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\twhile (!deflater.finished()) {\n\t\t\t\tint count = deflater.deflate(buffer);\n\t\t\t\toutputStream.write(buffer, 0, count);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\toutputStream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t\tSystem.out.println(\"Compressed Image Byte Size - \" + outputStream.toByteArray().length);\n\t\t\treturn outputStream.toByteArray();\n\t\t}", "public @NotNull Image flipH()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n if (this.format != ColorFormat.RGBA)\n {\n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n // OPTION 1: Move pixels with memCopy()\n long src = Integer.toUnsignedLong(y * this.width + this.width - 1 - x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, bytesPerLine);\n \n // OPTION 2: Just copy data pixel by pixel\n // output.put(y * this.width + x, this.data.getBytes(y * this.width + (this.width - 1 - x)));\n }\n }\n \n this.data.free();\n \n this.data = output;\n }\n else\n {\n // OPTION 3: Faster implementation (specific for 32bit pixels)\n // NOTE: It does not require additional allocations\n IntBuffer ptr = this.data.toBuffer().asIntBuffer();\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width / 2; x++)\n {\n int backup = ptr.get(y * this.width + x);\n ptr.put(y * this.width + x, ptr.get(y * this.width + this.width - 1 - x));\n ptr.put(y * this.width + this.width - 1 - x, backup);\n }\n }\n }\n this.mipmaps = 1;\n }\n \n return this;\n }", "public void gen_encrypted_image(double mat[][])\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tgetpixel_1(mat);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgetpixel_2(mat);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tImageIO.write(img, \"jpg\", new File(folder+\"Encrypted_\"+name));\n\t\t\tRuntime.getRuntime().exec(folder+\"Encrypted_\"+name);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t}\t\t\n }", "private void writeBlock(IBlockBuilder dataBlock, BlockHandle handle) {\n assert ok();\n CompressionType type = this.options.getCompression();\n String content = dataBlock.finish();\n switch (type) {\n case kNoCompression:\n break;\n case kSnappyCompression:\n try {\n byte[] bytes = Snappy.compress(ByteUtils.toByteArray(content, 0, content.length()));\n if (bytes.length < content.length() - (content.length() / 8)) {\n content = new String(ByteUtils.toCharArray(bytes, 0, bytes.length));\n } else {\n type = CompressionType.kNoCompression;\n }\n } catch (IOException e) {\n type = CompressionType.kNoCompression;\n }\n break;\n }\n\n writeRawBlock(content, type, handle);\n dataBlock.reset();\n }", "public Image getFlat();", "private Image combine(Image piece, Image background) {\n\t\tif (piece == null) {\n\t\t\treturn background;\n\t\t}\n\t\tBufferedImage image = (BufferedImage) background;\n\t\tBufferedImage overlay = (BufferedImage) piece;\n\t\n\t\t// create the new image, canvas size is the max. of both image sizes\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\n\t\tBufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\n\t\t// paint both images, preserving the alpha channels\n\t\tGraphics g = combined.getGraphics();\n\t\tg.drawImage(image, 0, 0, null);\n\t\tg.drawImage(overlay, 0, 0, null);\n\t\n\t\t// Save as new image\n\t\treturn combined;\n\t}", "protected void initFile(String id) throws FormatException, IOException {\n super.initFile(id);\n in = new RandomAccessFile(id, \"r\");\n \n // initialize an array containing tag offsets, so we can\n // use an O(1) search instead of O(n) later.\n // Also determine whether we will be reading color or grayscale\n // images\n \n //in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n \n toRead = new byte[4];\n Vector v = new Vector(); // a temp vector containing offsets.\n \n // Get first offset.\n in.seek(16);\n in.read(toRead);\n int nextOffset = batoi(toRead);\n int nextOffsetTemp;\n \n boolean first = true;\n while(nextOffset != 0) {\n in.seek(nextOffset + 4);\n in.read(toRead);\n // get next tag, but still need this one\n nextOffsetTemp = batoi(toRead);\n in.read(toRead);\n if ((new String(toRead)).equals(\"PICT\")) {\n boolean ok = true;\n if (first) {\n // ignore first image if it is called \"Original Image\" (pure white)\n first = false;\n in.skipBytes(47);\n byte[] layerNameBytes = new byte[127];\n in.read(layerNameBytes);\n String layerName = new String(layerNameBytes);\n if (layerName.startsWith(\"Original Image\")) ok = false;\n }\n if (ok) v.add(new Integer(nextOffset)); // add THIS tag offset\n }\n if (nextOffset == nextOffsetTemp) break;\n nextOffset = nextOffsetTemp;\n }\n \n in.seek(((Integer) v.firstElement()).intValue());\n \n // create and populate the array of offsets from the vector\n numBlocks = v.size();\n offsets = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n offsets[i] = ((Integer) v.get(i)).intValue();\n }\n \n // populate the imageTypes that the file uses\n toRead = new byte[2];\n imageType = new int[numBlocks];\n for (int i = 0; i < numBlocks; i++) {\n in.seek(offsets[i]);\n in.skipBytes(40);\n in.read(toRead);\n imageType[i] = batoi(toRead);\n }\n \n initMetadata();\n }", "public BitmapEncoder() {\n this((Bitmap.CompressFormat) null, 90);\n }", "public @NotNull Image rotateCCW()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n long src = Integer.toUnsignedLong(y * this.width + this.width - x - 1) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(x * this.height + y) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, this.format.sizeof);\n }\n }\n \n this.data.free();\n this.data = output;\n }\n return this;\n }", "public byte[] readImagePNG(BufferedImage bufferedimage) throws IOException{\n byte[] data = ImageUtil.toByteArray(bufferedimage);\r\n /* \r\n for (int i = 0; i < data.length; i++) {\r\n if(i!=0&&i%4==0)\r\n System.out.println();\r\n System.out.format(\"%02X \",data[i]);\r\n }\r\n */ \r\n \r\n \r\n \r\n \r\n byte[] stximage = getStximage();\r\n byte[] etximage = getEtximage();\r\n \r\n byte[] stxdata = new byte[stximage.length];\r\n byte[] etxdata = new byte[etximage.length];\r\n byte[] length = new byte[4];\r\n \r\n boolean stxsw=false;\r\n boolean etxsw=false;\r\n byte[] full_data=null;\r\n byte[] only_data=null;\r\n try{\r\n for (int i = 0; i < data.length; i++) {\r\n System.arraycopy(data, i, stxdata,0, stxdata.length);\r\n stxsw = ByteUtil.equals(stximage, stxdata);\r\n int subindex=i+stxdata.length;\r\n if(stxsw){\r\n System.arraycopy(data, subindex, length,0, length.length);\r\n int length_fulldata = ConversionUtil.toInt(length);\r\n // System.out.format(\"%02X %d subIndex[%d]\",data[subindex],length_fulldata,subindex);\r\n \r\n \r\n subindex+=i+length.length;\r\n int etx_index= subindex+ length_fulldata;\r\n // System.out.println(\"subindex : \"+subindex+\" etx_index : \"+etx_index);\r\n System.arraycopy(data, etx_index, etxdata,0, etxdata.length);\r\n \r\n// for (int j = 0; j < etxdata.length; j++) {\r\n// System.out.format(\"%02X \",etxdata[j]);\r\n// }\r\n \r\n etxsw = ByteUtil.equals(etximage, etxdata);\r\n if(etxsw){\r\n full_data = new byte[etx_index-subindex];\r\n System.arraycopy(data, subindex, full_data,0, full_data.length); //fulldata\r\n break;\r\n }else{\r\n continue;\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n /////only data search\r\n System.arraycopy(full_data, 0, length,0, length.length);\r\n int length_onlydata = ConversionUtil.toInt(length); \r\n only_data = new byte[length_onlydata];\r\n System.arraycopy(full_data, length.length, only_data,0, only_data.length);\r\n \r\n \r\n \r\n }catch (Exception e) {\r\n return null;\r\n }\r\n \r\n return only_data;\r\n \r\n }", "byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;", "public static Bitmap cropImage(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n \t int x=5;\n\t\tint y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of combineImg.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n boolean template = false;\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n // Check upper-right section of combineImage.\n x2 = wfMid;\n template = false;\n for ( x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the top-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 >= 0; y3--) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n boolean template = false;\n // Check bottom-left section of combineImage.\n for (x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n template = false;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the bottom-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 < finalBm.getHeight(); y3++) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "private StandardDeCompressors() {}", "@Override\n public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm)\n throws OperatorException {\n try {\n \n int x0 = targetRectangle.x;\n int y0 = targetRectangle.y;\n int w = targetRectangle.width;\n int h = targetRectangle.height;\n // System.out.println(\"x0 = \" + x0 + \", y0 = \" + y0 + \", w = \" + w + \", h = \" + h);\n \n ComplexFloatMatrix cplxMatrixMaster = null;\n ComplexFloatMatrix cplxMatrixSlave = null;\n RenderedImage srcImage;\n float[] dataArray;\n \n // pm.beginTask(\"Computation of interferogram\", targetProduct.getNumBands());\n \n // these are not very optimal loops: redo the looping to a single for Band loop with using HashMaps\n for (Band sourceBand : sourceProduct.getBands()) {\n \n String sourceBandUnit = sourceBand.getUnit();\n \n if (sourceBand == masterBand1) {\n } else if (sourceBand == masterBand2) {\n \n Tile masterRasterI = getSourceTile(masterBand1, targetRectangle);\n srcImage = masterRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataRealMatrix = new FloatMatrix(masterRasterI.getHeight(), masterRasterI.getWidth(), dataArray);\n \n Tile masterRasterQ = getSourceTile(masterBand2, targetRectangle);\n srcImage = masterRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getWidth(), masterRasterQ.getHeight(), dataArray);\n FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getHeight(), masterRasterQ.getWidth(), dataArray);\n \n cplxMatrixMaster = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n } else if (sourceBandUnit != null && sourceBandUnit.contains(Unit.REAL)) {\n \n Tile slaveRasterI = getSourceTile(sourceBand, targetRectangle);\n srcImage = slaveRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getWidth(), slaveRasterI.getHeight(), dataArray);\n FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getHeight(), slaveRasterI.getWidth(), dataArray);\n \n Tile slaveRasterQ = getSourceTile(slaveRasterMap.get(sourceBand), targetRectangle, pm);\n srcImage = slaveRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataImagMatrix = new FloatMatrix(slaveRasterQ.getHeight(), slaveRasterQ.getWidth(), dataArray);\n \n cplxMatrixSlave = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n }\n }\n \n // TODO: integrate subtraction of Reference Phase\n ComplexFloatMatrix cplxIfg = cplxMatrixMaster.muli(cplxMatrixSlave.conji());\n \n // if flat earth phase flag is on\n // ------------------------------------------------\n \n // normalize pixel :: range_axis\n DoubleMatrix rangeAxisNormalized;\n rangeAxisNormalized = DoubleMatrix.linspace(x0, x0 + w - 1, cplxIfg.columns);\n rangeAxisNormalized.subi(0.5 * (1 + sourceImageWidth));\n rangeAxisNormalized.divi(0.25 * (sourceImageWidth-1));\n \n DoubleMatrix azimuthAxisNormalized;\n azimuthAxisNormalized = DoubleMatrix.linspace(y0, y0 + h - 1, cplxIfg.rows);\n azimuthAxisNormalized.subi(0.5 * (1 + sourceImageHeight));\n azimuthAxisNormalized.divi(0.25 * (sourceImageHeight - 1));\n \n DoubleMatrix realReferencePhase = polyValOnGrid(azimuthAxisNormalized, rangeAxisNormalized,\n flatEarthPolyCoefs, degreeFromCoefficients(flatEarthPolyCoefs.length));\n \n FloatMatrix realReferencePhaseFlt = MatrixFunctions.doubleToFloat(realReferencePhase);\n ComplexFloatMatrix cplxReferencePhase = new ComplexFloatMatrix(MatrixFunctions.cos(realReferencePhaseFlt),\n MatrixFunctions.sin(realReferencePhaseFlt));\n \n // cplxIfg = cplxIfg.muli(cplxReferencePhase.transpose().conji());\n cplxIfg.muli(cplxReferencePhase.transpose().conji());\n \n for (Band targetBand : targetProduct.getBands()) {\n \n String targetBandUnit = targetBand.getUnit();\n \n final Tile targetTile = targetTileMap.get(targetBand);\n \n // all bands except for virtual ones\n if (targetBandUnit.contains(Unit.REAL)) {\n \n dataArray = cplxIfg.real().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n } else if (targetBandUnit.contains(Unit.IMAGINARY)) {\n \n dataArray = cplxIfg.imag().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n }\n \n }\n \n } catch (Throwable e) {\n \n OperatorUtils.catchOperatorException(getId(), e);\n \n }\n }", "public EWAHCompressedBitmap or(final EWAHCompressedBitmap a) {\n\t\tfinal EWAHCompressedBitmap container = new EWAHCompressedBitmap();\n\t\tcontainer.reserve(this.actualsizeinwords + a.actualsizeinwords);\n\t\tor(a, container);\n\t\treturn container;\n\t}", "private void enhanceImage(){\n }", "public Compressor() {\n initCompressor(getDefaultSolenoidModule());\n }", "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }", "private void compress(Node nodo) {\n Node parent = nodo.getParent();\n\n Node left = parent.getLeftNode();\n Node right = parent.getRightNode();\n\n int left_reference = left.getReference();\n ArrayList<Integer> left_content = this.fm.read(left_reference); this.in_counter++;\n\n int right_reference = right.getReference();\n ArrayList<Integer> right_content = this.fm.read(right_reference); this.in_counter++;\n if(this.debug)\n System.out.println(\"ExtHash::compress >> hay \" + (right_content.get(0) + left_content.get(0)) + \" elementos, de un maximo de \" + this.B);\n\n // en caso de que sea posible juntar las paginas.\n if(right_content.get(0) + left_content.get(0) < B-2) {\n total_active_block--;\n\n if(this.debug)\n System.out.println(\"ExtHash::compress >> ambas paginas se pueden fusionar\");\n\n ArrayList<Integer> new_content = new ArrayList<>();\n new_content.add(right_content.get(0) + left_content.get(0));\n\n for(int i=1; i<= left_content.get(0); i++)\n new_content.add(left_content.get(i));\n\n for(int i=1; i<= right_content.get(0); i++)\n new_content.add(right_content.get(i));\n\n parent.activateReference(true);\n parent.setReference(left_reference);\n // referencia derecha dejarla en las referencias en desuso.\n\n this.fm.write(new_content, left_reference); this.out_counter++;\n }\n }", "private static void mixBlock(long[] src, int start, long[] h) {\n\t\th[0] += src[start]; \n\t\th[2] ^= h[10]; \n\t\th[11] ^= h[0]; \n\t\th[0] = (h[0] << 11) | (h[0] >>> 53); \n\t\th[11] += h[1];\n\t\t\n\t\th[1] += src[start+1]; \n\t\th[3] ^= h[11]; \n\t\th[0] ^= h[1]; \n\t\th[1] = (h[1] << 32) | (h[1] >>> 32); \n\t\th[0] += h[2];\n\n\t\th[2] += src[start+2]; \n\t\th[4] ^= h[0]; \n\t\th[1] ^= h[2]; \n\t\th[2] = (h[2] << 43) | (h[2] >>> 21); \n\t\th[1] += h[3];\n\t\n\t\th[3] += src[start+3]; \n\t\th[5] ^= h[1]; \n\t\th[2] ^= h[3]; \n\t\th[3] = (h[3] << 31) | (h[3] >>> 33); \n\t\th[2] += h[4];\n\n\t\th[4] += src[start+4]; \n\t\th[6] ^= h[2]; \n\t\th[3] ^= h[4]; \n\t\th[4] = (h[4] << 17) | (h[4] >>> 47); \n\t\th[3] += h[5];\n\n\t\th[5] += src[start+5]; \n\t\th[7] ^= h[3]; \n\t\th[4] ^= h[5]; \n\t\th[5] = (h[5] << 28) | (h[5] >>> 36); \n\t\th[4] += h[6];\n\n\t\th[6] += src[start+6]; \n\t\th[8] ^= h[4]; \n\t\th[5] ^= h[6]; \n\t\th[6] = (h[6] << 39) | (h[6] >>> 25); \n\t\th[5] += h[7];\n\n\t\th[7] += src[start+7]; \n\t\th[9] ^= h[5]; \n\t\th[6] ^= h[7]; \n\t\th[7] = (h[7] << 57) | (h[7] >>> 7); \n\t\th[6] += h[8];\n\n\t\th[8] += src[start+8]; \n\t\th[10] ^= h[6]; \n\t\th[7] ^= h[8]; \n\t\th[8] = (h[8] << 55) | (h[8] >>> 9); \n\t\th[7] += h[9];\n\n\t\th[9] += src[start+9]; \n\t\th[11] ^= h[7]; \n\t\th[8] ^= h[9]; \n\t\th[9] = (h[9] << 54) | (h[9] >>> 10); \n\t\th[8] += h[10];\n\n\t\th[10] += src[start+10]; \n\t\th[0] ^= h[8]; \n\t\th[9] ^= h[10]; \n\t\th[10] = (h[10] << 22) | (h[10] >>> 42); \n\t\th[9] += h[11];\n\n\t\th[11] += src[start+11]; \n\t\th[1] ^= h[9]; \n\t\th[10] ^= h[11]; \n\t\th[11] = (h[11] << 46) | (h[11] >>> 18); \n\t\th[10] += h[0];\t\t\n\t}", "ImageImpl (byte [] bytes) {\n\tint cnt = bytes.length / 2;\n\tint size = (bytes.length + 1) / 2;\n\tdata = new short [size];\n\tint bi = 0;\n\t\n\tfor (int i = 0; i < cnt; i++) {\n\t data [i] = (short) (((((int) bytes [bi]) & 0x0ff) << 8)\n\t\t\t\t | (((int) bytes [bi+1]) & 0x0ff));\n\t bi += 2;\n\t}\n\t\n\tif (size > cnt)\n\t data [cnt] = (short) ((((int) bytes [bi]) & 0x0ff) << 8);\n\n\tbitmap = new Bitmap (data);\n }", "private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}", "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}", "@Override\n void pack() {\n }", "public CompressionInfo getCompressionInfo() {\n\t\treturn new CompressionInfo(bytesRead, blocksRead, superblocksRead, compressedBytes,\n\t\t\t\t compressedBlocks, actualBytes, null);\n\t}", "public static void compress(ByteBuffer bbInput, ByteBuffer bbOutput, StringBuilder information, long[] time) throws IOException\r\n {\r\n long startTime = System.currentTimeMillis(); \r\n \r\n Arithmetic arithmetic = new Arithmetic();\r\n \r\n while(bbInput.remaining() > 0)\r\n {\r\n byte b = bbInput.get();\r\n arithmetic.add(b);\r\n }\r\n \r\n TreeMap<Byte, Range> rangeTable = arithmetic.set();\r\n \r\n //System.out.println(rangeTable.size());\r\n \r\n bbOutput.putInt(rangeTable.size());\r\n for (Entry<Byte, Range> e : rangeTable.entrySet())\r\n {\r\n bbOutput.put(e.getKey().byteValue());\r\n bbOutput.putLong(e.getValue().count);\r\n //System.out.println((char) e.getKey().byteValue() + \":\" + e.getValue().count + \" \" + (int) e.getValue().high + \" \" + (int) e.getValue().low);\r\n }\r\n \r\n int rangeTableCount = bbInput.position();\r\n bbOutput.putInt(rangeTableCount);\r\n \r\n if (rangeTableCount > (Math.pow(2,16)))\r\n {\r\n information.append(\"FATAL ERROR: Cannot compress block larger than 2^16 - 1\");\r\n return;\r\n }\r\n \r\n bbInput.position(0);\r\n \r\n //System.out.println(rangeTableCount);\r\n\r\n char low = 0;\r\n char high = 0xFFFF;\r\n short underflow_bits = 0;\r\n\r\n BitWriter bitWriter = new BitWriter(bbOutput);\r\n\r\n //Range testRange = arithmetic.rangeTable.get((byte)'B');\r\n //System.out.println((char)'B' + \" \" + testRange.count + \" \" + (int) testRange.high + \" \" + (int) testRange.low);\r\n \r\n while(bbInput.remaining() > 0)\r\n {\r\n byte b = bbInput.get();\r\n Range range = rangeTable.get(b);\r\n \r\n long diff;\r\n diff = (long) (high - low) + 1;\r\n char temphigh = (char) ((diff * range.high) / rangeTableCount - 1);\r\n high = (char) (low + temphigh);\r\n char templow = (char) ((diff * range.low) / rangeTableCount);\r\n low = (char) (low + templow);\r\n \r\n boolean shiftingComplete = false;\r\n while (!shiftingComplete)\r\n {\r\n // TEST1: Test if most significant bit match, shift them out.\r\n if ((high & 0x8000) == (low & 0x8000))\r\n {\r\n bitWriter.put((high & 0x8000) != 0);//!=\r\n while (underflow_bits > 0)\r\n {\r\n bitWriter.put((~high & 0x8000) != 0);\r\n underflow_bits--;\r\n }\r\n low <<= 1;\r\n high <<= 1;\r\n high |= 1;\r\n }\r\n // TEST2: Test for potential underflow if most significant digits don't match and\r\n // second most significant digits are one apart.\r\n else if ((low & 0x4000) != 0 && (!((high & 0x4000) != 0)))\r\n {\r\n underflow_bits += 1;\r\n low &= 0x3fff;\r\n high |= 0x4000;\r\n \r\n low <<= 1;\r\n high <<= 1;\r\n high |= 1;\r\n }\r\n // ELSE: COMPLETE\r\n else\r\n {\r\n shiftingComplete = true;\r\n }\r\n }\r\n }\r\n \r\n bitWriter.put((low & 0x4000) != 0);\r\n underflow_bits++;\r\n while (underflow_bits-- > 0)\r\n {\r\n bitWriter.put((~low & 0x4000) != 0);\r\n }\r\n\r\n bitWriter.finish();\r\n \r\n long endTime = System.currentTimeMillis();\r\n time[0] += (endTime - startTime);\r\n }", "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "public BufferedImage ImageConvolution(BufferedImage image, String type) {\r\n int[][] template = getTemplate(type); //gets template we are using\r\n int[][] template1 = new int[3][3];\r\n if (type == \"Roberts\") {\r\n template1 = getTemplate(\"Roberts1\");\r\n }\r\n int height = image.getHeight();\r\n int width = image.getWidth();\r\n int sum = 0;\r\n for (int i = 0; i < template.length; i++) {\r\n for (int j = 0; j < template.length; j++) {\r\n sum += template[i][j]; //get sum of kernel for division\r\n }\r\n }\r\n if (sum == 0) {\r\n sum = 1; //if sum is 0 set to 1\r\n }\r\n\r\n int[][][] original = convertToArray(image);\r\n int[][][] padded = new int[width + 2][height + 2][4];\r\n int[][][] tempPadded = new int[width + 2][height + 2][4];\r\n //add padding\r\n for (int y = 0; y < height + 2; y++) {\r\n for (int x = 0; x < width + 2; x++) {\r\n for (int i = 0; i < 4; i++) {\r\n if (x == 0 || y == 0 || x == width + 1 || y == height + 1) { //if an edge pixel\r\n padded[x][y][i] = 0; //set edge to 0 for padding\r\n tempPadded[x][y][i] = 255;\r\n } else {\r\n padded[x][y][i] = original[x - 1][y - 1][i]; //-1 to ignore padding\r\n tempPadded[x][y][i] = original[x - 1][y - 1][i];\r\n }\r\n }\r\n }\r\n }\r\n\r\n //loop through all pixels ignoring edge pixels (padding)\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n if (type == \"Sobel X\" || type == \"Sobel Y\") {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n } else {\r\n original[x - 1][y - 1][i + 1] = count[i] / sum; //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n //if roberts\r\n if (type == \"Roberts\") {\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n return convertToBimage(original);\r\n }", "public BufferedImage combineMapsIntoImage(int width, int height, BufferedImage kdeImage1, \n\t\t\tBufferedImage kdeImage2)\n\t\t\tthrows IOException{\n\t\tif(width <= 0 || height <= 0 || kdeImage1 == null || kdeImage2 == null)\n\t\t\treturn null;\n\t\t\n//\t\t//Get the colors in the image\n//\t\tHashMap<Integer, Integer> colors1 = new HashMap<Integer, Integer>();\n//\t\tHashMap<Integer, Integer> colors2 = new HashMap<Integer, Integer>();\n//\t\tfor(int y = 0; y < height; y++){\n//\t\t\tfor(int x = 0; x < width; x++){\n//\t\t\t\tif(!colors1.containsKey(kdeImage1.getRGB(x, y)))\n//\t\t\t\t\tcolors1.put(kdeImage1.getRGB(x, y), 0);\n//\t\t\t\tif(!colors2.containsKey(kdeImage2.getRGB(x, y)))\n//\t\t\t\t\tcolors2.put(kdeImage2.getRGB(x, y), 0);\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\t//Remove the \"blank\" color spot\n//\t\tcolors1.remove(0);\n//\t\tcolors2.remove(0);\n//\t\t\n//\t\t//Put the colors into an array\n//\t\tSet<Integer> colorsSet = colors1.keySet();\n//\t\tInteger[] orderedColors1 = new Integer [colorsSet.size()];\n//\t\tint iter = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors1[iter] = val;\n//\t\t\titer++;\n//\t\t}\n//\t\t\n//\t\tcolorsSet = colors2.keySet();\n//\t\tInteger[] orderedColors2 = new Integer [colorsSet.size()];\n//\t\titer = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors2[iter] = val;\n//\t\t\titer++;\n//\t\t}\t\n//\t\t\n//\t\tcolors1 = null;\n//\t\tcolors2 = null;\n//\t\t\n//\t\t//Order the colors\n//\t\tArrays.sort(orderedColors1);\n//\t\tArrays.sort(orderedColors2);\n//\t\t\n//\t\tfor(Integer val : orderedColors1)\n//\t\t\tSystem.out.println(val);\n//\t\tSystem.out.println();\n//\t\tfor(Integer val : orderedColors2)\n//\t\t\tSystem.out.println(val);\n\t\t\n\t\t//Create an image of the two images combined, discounting pixels not colored in both images\n\t\t//Coloring in the new image is done by ANDing/ORing the colors of the two inputted images\n\t\t//An AND retains the coloration of the original images, combining the colors where needed\n\t\t//OR changes the colors to another scheme but may show a better heatmap of the overlap\n\t\tBufferedImage combinedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\tfor(int y = 0; y < height; y++){\n\t\t\tfor(int x = 0; x < width; x++){\n\t\t\t\tif((kdeImage1.getRGB(x, y) != 0) && (kdeImage2.getRGB(x, y) != 0)){\n\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) & kdeImage2.getRGB(x, y));\n//\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) | kdeImage2.getRGB(x, y));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn combinedImage;\n\t}", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public interface LABMultiBitmapIndexTx<IBM> {\n void tx(int index, int lastId, IBM bitmap, Filer filer, int offset) throws Exception;\n}", "@Deprecated\n/* */ public void addCompression() {\n/* 162 */ List<COSName> filters = getFilters();\n/* 163 */ if (filters == null)\n/* */ {\n/* 165 */ if (this.stream.getLength() > 0L) {\n/* */ \n/* 167 */ OutputStream out = null;\n/* */ \n/* */ try {\n/* 170 */ byte[] bytes = IOUtils.toByteArray((InputStream)this.stream.createInputStream());\n/* 171 */ out = this.stream.createOutputStream((COSBase)COSName.FLATE_DECODE);\n/* 172 */ out.write(bytes);\n/* */ }\n/* 174 */ catch (IOException e) {\n/* */ \n/* */ \n/* 177 */ throw new RuntimeException(e);\n/* */ }\n/* */ finally {\n/* */ \n/* 181 */ IOUtils.closeQuietly(out);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 186 */ filters = new ArrayList<COSName>();\n/* 187 */ filters.add(COSName.FLATE_DECODE);\n/* 188 */ setFilters(filters);\n/* */ } \n/* */ }\n/* */ }", "public static void imgToZip(BufferedImage image, int number, ZipOutputStream zipOS, String path){\n try {\n File tempImage = new File(path+ number +\".jpg\");\n ImageIO.write(image,\"jpg\",tempImage);\n createFileToZip(image, path, number, zipOS);\n tempImage.delete();\n } catch (IOException ex) {\n Logger.getLogger(ProjectePractiques.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void getInterBlock(int block[], BufferedBitStream stream) throws InterruptedException\n {\n int i, position;\n int blocktemp=0;\n int data[] = new int[2];\n int data0, data1;\n int sign = 0;\n\n int code, temp[];\n boolean endOfBlock = false;\n\n i = -1;\n\n getDCTCoeffFirst(data, stream);\n data0 = data[0];\n data1 = data[1];\n\n do {\n i = i + data0 + 1;\n position = zigzag[i];\n\n if ( data1 > 0 ) sign = 1;\n else sign = -1;\n blocktemp = ((2 * data1 + sign) * quantizerScale * interQuantMatrix[i])/16;\n\n if ((blocktemp & 1) == 0)\n if (blocktemp > 0)\n blocktemp -= 1;\n else if (blocktemp < 0)\n blocktemp += 1;\n\n if (blocktemp > 2047) blocktemp = 2047;\n else if (blocktemp < -2048) blocktemp = -2048;\n\n block[position] = blocktemp;\n\n { // DCT Next Coefficient decode\n code = stream.showBits(17);\n\n if (code >= 2048)\n temp = DCTCoefficientTable[code >>> 8];\n else if (code >= 256)\n temp = DCTCoefficientTable[ (code >>> 3) + 512];\n else\n temp = DCTCoefficientTable[ (code) + 768];\n\n if (temp[0] == ESC) {\n // More decoding\n stream.flushBits(temp[2]);\n int run = stream.getBits(6);\n int value = stream.showBits(16);\n\n if ((value & 0xFF00) == 0x8000) {\n stream.flushBits(16);\n value = (value | 0xFFFFFF00);\n } else if ((value & 0xFF00) == 0x0000) {\n stream.flushBits(16);\n value = (value & 0x000000FF);\n } else {\n stream.flushBits(8);\n value = (value << 16) >> 24;\n }\n\n data0 = run;\n data1 = value;\n\n } else {\n stream.flushBits(temp[2]);\n data0 = temp[0];\n data1 = temp[1];\n }\n\n } // End of DCT Next Coeffcient decode\n } while (data0 != EOB);\n }", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "protected void xor(final EWAHCompressedBitmap a,\n\t\t\tfinal BitmapStorage container) {\n\t\tfinal EWAHIterator i = a.getEWAHIterator();\n\t\tfinal EWAHIterator j = getEWAHIterator();\n\t\tif (!(i.hasNext() && j.hasNext())) {// this never happens...\n\t\t\tcontainer.setSizeInBits(sizeInBits());\n\t\t}\n\t\t// at this point, this is safe:\n\t\tBufferedRunningLengthWord rlwi =\n\t\t\t\tnew BufferedRunningLengthWord(i.next());\n\t\tBufferedRunningLengthWord rlwj =\n\t\t\t\tnew BufferedRunningLengthWord(j.next());\n\t\twhile (true) {\n\t\t\tfinal boolean i_is_prey = rlwi.size() < rlwj.size();\n\t\t\tfinal BufferedRunningLengthWord prey = i_is_prey ? rlwi : rlwj;\n\t\t\tfinal BufferedRunningLengthWord predator = i_is_prey ? rlwj : rlwi;\n\t\t\tif (prey.getRunningBit() == false) {\n\t\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\t\tfinal long preyrl = prey.getRunningLength();\n\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t(predatorrl >= preyrl) ? preyrl : predatorrl;\n\t\t\t\tcontainer.addStreamOfEmptyWords(predator.getRunningBit(),\n\t\t\t\t\t\ttobediscarded);\n\t\t\t\tfinal long dw_predator =\n\t\t\t\t\t\tpredator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ (i_is_prey ? j.dirtyWords() : i.dirtyWords());\n\t\t\t\tcontainer.addStreamOfDirtyWords(\n\t\t\t\t\t\ti_is_prey ? j.buffer() : i.buffer(), dw_predator,\n\t\t\t\t\t\tpreyrl - tobediscarded);\n\t\t\t\tpredator.discardFirstWords(preyrl);\n\t\t\t\tprey.discardFirstWords(preyrl);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// we have a stream of 1x11\n\t\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\t\tfinal long preyrl = prey.getRunningLength();\n\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t(predatorrl >= preyrl) ? preyrl : predatorrl;\n\t\t\t\tcontainer.addStreamOfEmptyWords(!predator.getRunningBit(),\n\t\t\t\t\t\ttobediscarded);\n\t\t\t\tfinal int dw_predator =\n\t\t\t\t\t\tpredator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ (i_is_prey ? j.dirtyWords() : i.dirtyWords());\n\t\t\t\tfinal long[] buf = i_is_prey ? j.buffer() : i.buffer();\n\t\t\t\tfor (int k = 0; k < preyrl - tobediscarded; ++k)\n\t\t\t\t\tcontainer.add(~buf[k + dw_predator]);\n\t\t\t\tpredator.discardFirstWords(preyrl);\n\t\t\t\tprey.discardFirstWords(preyrl);\n\t\t\t}\n\t\t\tfinal long predatorrl = predator.getRunningLength();\n\t\t\tif (predatorrl > 0) {\n\t\t\t\tif (predator.getRunningBit() == false) {\n\t\t\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t\t(predatorrl >= nbre_dirty_prey) ? nbre_dirty_prey\n\t\t\t\t\t\t\t\t\t: predatorrl;\n\t\t\t\t\tfinal long dw_prey =\n\t\t\t\t\t\t\tprey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t+ (i_is_prey ? i.dirtyWords() : j\n\t\t\t\t\t\t\t\t\t\t\t.dirtyWords());\n\t\t\t\t\tpredator.discardFirstWords(tobediscarded);\n\t\t\t\t\tprey.discardFirstWords(tobediscarded);\n\t\t\t\t\tcontainer.addStreamOfDirtyWords(\n\t\t\t\t\t\t\ti_is_prey ? i.buffer() : j.buffer(), dw_prey,\n\t\t\t\t\t\t\ttobediscarded);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\t\t\tfinal long tobediscarded =\n\t\t\t\t\t\t\t(predatorrl >= nbre_dirty_prey) ? nbre_dirty_prey\n\t\t\t\t\t\t\t\t\t: predatorrl;\n\t\t\t\t\tfinal int dw_prey =\n\t\t\t\t\t\t\tprey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t+ (i_is_prey ? i.dirtyWords() : j\n\t\t\t\t\t\t\t\t\t\t\t.dirtyWords());\n\t\t\t\t\tpredator.discardFirstWords(tobediscarded);\n\t\t\t\t\tprey.discardFirstWords(tobediscarded);\n\t\t\t\t\tfinal long[] buf = i_is_prey ? i.buffer() : j.buffer();\n\t\t\t\t\tfor (int k = 0; k < tobediscarded; ++k)\n\t\t\t\t\t\tcontainer.add(~buf[k + dw_prey]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// all that is left to do now is to AND the dirty words\n\t\t\tfinal long nbre_dirty_prey = prey.getNumberOfLiteralWords();\n\t\t\tif (nbre_dirty_prey > 0) {\n\t\t\t\tfor (int k = 0; k < nbre_dirty_prey; ++k) {\n\t\t\t\t\tif (i_is_prey)\n\t\t\t\t\t\tcontainer.add(i.buffer()[prey.dirtywordoffset\n\t\t\t\t\t\t\t\t+ i.dirtyWords() + k]\n\t\t\t\t\t\t\t\t^ j.buffer()[predator.dirtywordoffset\n\t\t\t\t\t\t\t\t\t\t+ j.dirtyWords() + k]);\n\t\t\t\t\telse\n\t\t\t\t\t\tcontainer.add(i.buffer()[predator.dirtywordoffset\n\t\t\t\t\t\t\t\t+ i.dirtyWords() + k]\n\t\t\t\t\t\t\t\t^ j.buffer()[prey.dirtywordoffset\n\t\t\t\t\t\t\t\t\t\t+ j.dirtyWords() + k]);\n\t\t\t\t}\n\t\t\t\tpredator.discardFirstWords(nbre_dirty_prey);\n\t\t\t}\n\t\t\tif (i_is_prey) {\n\t\t\t\tif (!i.hasNext()) {\n\t\t\t\t\trlwi = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trlwi.reset(i.next());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (!j.hasNext()) {\n\t\t\t\t\trlwj = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trlwj.reset(j.next());\n\t\t\t}\n\t\t}\n\t\tif (rlwi != null)\n\t\t\tdischarge(rlwi, i, container);\n\t\tif (rlwj != null)\n\t\t\tdischarge(rlwj, j, container);\n\t\tcontainer.setSizeInBits(Math.max(sizeInBits(), a.sizeInBits()));\n\t}", "public static MBFImage makeHybrid(MBFImage lowImage, float lowSigma, MBFImage highImage, float highSigma) {\n\n /**\n * @param kernel_size_LOW_IMAGE\n * kernel size of the Low Pass image\n * @param kernel_size_HIGH_IMAGE\n * kernel size of the High Pass image\n **/\n int kernel_size_LOW_IMAGE;\n int kernel_size_HIGH_IMAGE;\n\n /**\n * @param image_HIGH_PASS_CLONE\n * copy of the High Pass image\n * @param image_FINAL\n * the final image to be returned by the function\n * @param image_HIGH_PASS\n * the High Pass image\n **/\n MBFImage image_HIGH_PASS_CLONE = highImage.clone();\n MBFImage image_FINAL;\n MBFImage image_HIGH_PASS;\n\n //calculating the size of the kernel for the Low Pass image\n kernel_size_LOW_IMAGE = (int) (8.0f * lowSigma + 1.0f);\n // +1 if the size of the kernel is even\n if(kernel_size_LOW_IMAGE % 2 == 0) {\n\n kernel_size_LOW_IMAGE++;\n\n }\n\n //calculating the size of the kernel for the High Pass image\n kernel_size_HIGH_IMAGE = (int) (8.0f * highSigma + 1.0f);\n // +1 if the size of the kernel is even\n if(kernel_size_HIGH_IMAGE % 2 == 0) {\n\n kernel_size_HIGH_IMAGE++;\n\n }\n\n //create the kernel for the Low Pass and High Pass images\n FImage kernel_LOW = Gaussian2D.createKernelImage(kernel_size_LOW_IMAGE, lowSigma);\n FImage kernel_HIGH = Gaussian2D.createKernelImage(kernel_size_HIGH_IMAGE, highSigma);\n\n //apply the convolution for the Low Pass Image\n lowImage.processInplace(new MyConvolution(kernel_LOW.pixels));\n\n //apply the convolution for the High Pass Image\n image_HIGH_PASS_CLONE.processInplace(new MyConvolution(kernel_HIGH.pixels));\n image_HIGH_PASS = highImage.subtract(image_HIGH_PASS_CLONE);\n\n //add the 2 images together\n image_FINAL = image_HIGH_PASS.add(lowImage);\n\n //return the image\n return image_FINAL;\n\n }", "private static @Nonnull byte[] compress(@Nonnull final byte[] repBytes) {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try (OutputStream compos = new GZIPOutputStream(baos)) {\n compos.write(repBytes);\n } catch (final IOException e) {\n log.error(\"can not construct compressed representation: {}\", e);\n }\n return baos.toByteArray();\n }", "public Bitmap getFinalShapesImage();", "public void processAll() throws IOException {\n\t\tfor (Iterator i = imageList.iterator(); i.hasNext();) {\n\t\t\tEntry entry = (Entry) i.next();\n\n\t\t\tif (!entry.written) {\n\t\t\t\tentry.written = true;\n\n\t\t\t\tString[] encode;\n\t\t\t\tif (entry.writeAs.equals(ImageConstants.ZLIB)\n\t\t\t\t\t\t|| (entry.maskName != null)) {\n\t\t\t\t\tencode = new String[] { \"Flate\", \"ASCII85\" };\n\t\t\t\t} else if (entry.writeAs.equals(ImageConstants.JPG)) {\n\t\t\t\t\tencode = new String[] { \"DCT\", \"ASCII85\" };\n\t\t\t\t} else {\n\t\t\t\t\tencode = new String[] { null, \"ASCII85\" };\n\t\t\t\t}\n\n\t\t\t\tPDFStream img = pdf.openStream(entry.name);\n\t\t\t\timg.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\timg.entry(\"SMask\", pdf.ref(entry.maskName));\n\t\t\t\t}\n\t\t\t\timg.image(entry.image, entry.bkg, encode);\n\t\t\t\tpdf.close(img);\n\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\tPDFStream mask = pdf.openStream(entry.maskName);\n\t\t\t\t\tmask.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\t\tmask.imageMask(entry.image, encode);\n\t\t\t\t\tpdf.close(mask);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void startProcessing() {\n Util.lockOrientation(this);\n\n final int[] imageSpacing = Prefs.imageSpacing(MainActivity.this);\n final int SPACING_HORIZONTAL = imageSpacing[0];\n final int SPACING_VERTICAL = imageSpacing[1];\n\n final boolean horizontal = stackHorizontallyCheck.isChecked();\n int resultWidth;\n int resultHeight;\n\n log(\"--------------------------------\");\n if (horizontal) {\n log(\"Horizontally stacking\");\n\n // The width of the resulting image will be the largest width of the selected images\n // The height of the resulting image will be the sum of all the selected images' heights\n int maxHeight = -1;\n int minHeight = -1;\n\n // Traverse all selected images to find largest and smallest heights\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxHeight == -1)\n maxHeight = size[1];\n else if (size[1] > maxHeight)\n maxHeight = size[1];\n if (minHeight == -1)\n minHeight = size[1];\n else if (size[1] < minHeight)\n minHeight = size[1];\n }\n log(\"Min height: %d, max height: %d\", minHeight, maxHeight);\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalWidth = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) w / (float) h;\n if (scalePriority) {\n // Scale to largest\n if (h < maxHeight) {\n h = maxHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is less than max (%d), scaled up to %d/%d...\",\n traverseIndex, maxHeight, w, h);\n }\n } else {\n // Scale to smallest\n if (h > minHeight) {\n h = minHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, minHeight, w, h);\n }\n }\n totalWidth += w;\n }\n\n // Compensate for spacing\n totalWidth += SPACING_HORIZONTAL * (selectedPhotos.length + 1);\n minHeight += SPACING_VERTICAL * 2;\n maxHeight += SPACING_VERTICAL * 2;\n\n // Crash avoidance\n if (totalWidth == 0) {\n Util.showError(this, new Exception(\"The total generated width is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxHeight == 0) {\n Util.showError(this, new Exception(\"The max found height is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Total width with spacing = %d, max height with spacing = %d\", totalWidth, maxHeight);\n resultWidth = totalWidth;\n resultHeight = scalePriority ? maxHeight : minHeight;\n } else {\n log(\"Vertically stacking\");\n\n // The height of the resulting image will be the largest height of the selected images\n // The width of the resulting image will be the sum of all the selected images' widths\n int maxWidth = -1;\n int minWidth = -1;\n\n // Traverse all selected images and load min/max width, scale height accordingly\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxWidth == -1)\n maxWidth = size[0];\n else if (size[0] > maxWidth)\n maxWidth = size[0];\n if (minWidth == -1)\n minWidth = size[0];\n else if (size[0] < minWidth)\n minWidth = size[0];\n }\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalHeight = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) h / (float) w;\n if (scalePriority) {\n // Scale to largest\n if (w < maxWidth) {\n w = maxWidth;\n h = (int) ((float) w * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, maxWidth, w, h);\n }\n } else {\n // Scale to smallest\n if (w > minWidth) {\n w = minWidth;\n h = (int) ((float) w * ratio);\n log(\"Width of image %d is larger than min (%d), scaled height down to %d/%d...\",\n traverseIndex, minWidth, w, h);\n }\n }\n totalHeight += h;\n }\n\n // Compensate for spacing\n totalHeight += SPACING_VERTICAL * (selectedPhotos.length + 1);\n minWidth += SPACING_HORIZONTAL * 2;\n maxWidth += SPACING_HORIZONTAL * 2;\n\n // Crash avoidance\n if (totalHeight == 0) {\n Util.showError(this, new Exception(\"The total generated height is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxWidth == 0) {\n Util.showError(this, new Exception(\"The max found width is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Max width with spacing = %d, total height with spacing = %d\", maxWidth, totalHeight);\n resultWidth = scalePriority ? maxWidth : minWidth;\n resultHeight = totalHeight;\n }\n\n ImageSizingDialog.show(this, resultWidth, resultHeight);\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "public static byte[] compressOutputLine(byte[] line, int imageWidth) {\r\n\t\t\r\n\t\tArrayList<Byte> lineCompressedArray = new ArrayList<>();\r\n\t\tArrayList<Byte> pixelDifferentArray = new ArrayList<>(); // zum Zwischenspeichern der sich unterscheidenden Pixel\r\n\t\tint repetitionCounter = 0;\r\n\t\tint dataCounter = 0;\r\n\t\tint pixelInLineCounter = 0;\r\n\t\tboolean pixelEqual = false;\r\n\t\tboolean pixelDifferent = false;\r\n\t\tint controlByte;\r\n\t\tbyte[] firstPixel = new byte[3];\r\n\t\tbyte[] secondPixel = new byte[3];\r\n\t\t\r\n\t\twhile (pixelInLineCounter < imageWidth-1) {\r\n//\t\t\tersten und zweiten Pixel lesen\r\n\t\t\tfirstPixel[0] = line[pixelInLineCounter*3];\r\n\t\t\tfirstPixel[1] = line[pixelInLineCounter*3 + 1];\r\n\t\t\tfirstPixel[2] = line[pixelInLineCounter*3 + 2];\r\n\t\t\tsecondPixel[0] = line[pixelInLineCounter*3 + 3];\r\n\t\t\tsecondPixel[1] = line[pixelInLineCounter*3 + 4];\r\n\t\t\tsecondPixel[2] = line[pixelInLineCounter*3 + 5];\r\n\t\t\t\r\n\t\t\tif (firstPixel[0] == secondPixel[0] && firstPixel[1] == secondPixel[1] && firstPixel[2] == secondPixel[2]) {\r\n//\t\t\t\tPixel gleich\r\n\t\t\t\tpixelEqual = true;\r\n\t\t\t}\r\n\t\t\tif (!(firstPixel[0] == secondPixel[0] && firstPixel[1] == secondPixel[1] && firstPixel[2] == secondPixel[2])) {\r\n//\t\t\t\tPixel unterschiedlich\r\n\t\t\t\tpixelDifferent = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (pixelEqual) {\r\n//\t\t\t\tzaehle die gleichen Pixel\r\n\t\t\t\twhile (repetitionCounter < 127 && pixelInLineCounter + repetitionCounter < imageWidth-1 &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3] == line[repetitionCounter*3 + pixelInLineCounter*3 + 3] &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3 + 1] == line[repetitionCounter*3 + pixelInLineCounter*3 + 4] &&\r\n\t\t\t\t\t\tline[repetitionCounter*3 + pixelInLineCounter*3 + 2] == line[repetitionCounter*3 + pixelInLineCounter*3 + 5]){\r\n\t\t\t\t\trepetitionCounter++;\r\n\t\t\t\t}\r\n//\t\t\t\tschreibe Steuerbyte fuer Wiederholung und das Pixel\r\n\t\t\t\tcontrolByte = 128 + repetitionCounter;\r\n\t\t\t\tlineCompressedArray.add((byte)controlByte);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[0]);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[1]);\r\n\t\t\t\tlineCompressedArray.add(firstPixel[2]);\r\n\t\t\t\t\r\n\t\t\t\tpixelInLineCounter+=repetitionCounter+1;\r\n\t\t\t\t\r\n//\t\t\t\tschreibe letzten Pixel in der Zeile bzw. im Block, wenn am Ende noch ein einzelnes Pixel steht\r\n\t\t\t\tif (pixelInLineCounter == imageWidth-1) {\r\n\t\t\t\t\tlineCompressedArray.add((byte)0); // Steuerbyte\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3]);\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tlineCompressedArray.add(line[pixelInLineCounter*3 + 2]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\trepetitionCounter = 0;\r\n\t\t\t\tpixelEqual = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (pixelDifferent) {\r\n//\t\t\t\tzaehle die unterschiedlichen Pixel\r\n\t\t\t\twhile ((dataCounter < 127) && (pixelInLineCounter + dataCounter < imageWidth-1) &&\r\n\t\t\t\t\t\t!(line[dataCounter*3 + pixelInLineCounter*3] == line[dataCounter*3 + pixelInLineCounter*3 + 3] &&\r\n\t\t\t\t\t\tline[dataCounter*3 + pixelInLineCounter*3 + 1] == line[dataCounter*3 + pixelInLineCounter*3 + 4] &&\r\n\t\t\t\t\t\tline[dataCounter*3 + pixelInLineCounter*3 + 2] == line[dataCounter*3 + pixelInLineCounter*3 + 5])){\r\n//\t\t\t\t\tschreibe Pixel in ein Array zum zwischenspeichern\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t\tdataCounter++;\r\n\t\t\t\t}\r\n//\t\t\t\tam Ende der Zeile oder eines 128-Blocks schreibe das letzte Pixel:\r\n\t\t\t\tif ((dataCounter == 127)&&(pixelInLineCounter + dataCounter < imageWidth-1)\r\n\t\t\t\t\t\t&& (line[dataCounter*3 + pixelInLineCounter*3] == line[dataCounter*3 + pixelInLineCounter*3 + 3] \r\n\t\t\t\t\t\t&& line[dataCounter*3 + pixelInLineCounter*3 + 1] == line[dataCounter*3 + pixelInLineCounter*3 + 4] \r\n\t\t\t\t\t\t&& line[dataCounter*3 + pixelInLineCounter*3 + 2] == line[dataCounter*3 + pixelInLineCounter*3 + 5])) {\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ((dataCounter == 127) || (pixelInLineCounter + dataCounter == imageWidth-1)) {\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t\tdataCounter++;\r\n\t\t\t\t} \r\n\t\t\t\tif ((dataCounter == 128) && (pixelInLineCounter + dataCounter == imageWidth-1)) {\r\n\t\t\t\t\tpixelDifferentArray.add((byte)0);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 1]);\r\n\t\t\t\t\tpixelDifferentArray.add(line[dataCounter*3 + pixelInLineCounter*3 + 2]);\r\n\t\t\t\t}\r\n\r\n//\t\t\t\tschreibe Steuerbyte fuer Datenzaehler und die zwischengespeicherten unterschiedlichen Pixel\r\n\t\t\t\tcontrolByte = dataCounter-1;\r\n\t\t\t\tlineCompressedArray.add((byte)controlByte);\r\n\t\t\t\tfor (int i = 0; i < pixelDifferentArray.size(); i++) {\r\n\t\t\t\t\tlineCompressedArray.add(pixelDifferentArray.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tpixelDifferentArray.clear();\r\n\t\t\t\tpixelInLineCounter+=dataCounter;\r\n\t\t\t\tdataCounter = 0;\r\n\t\t\t\tpixelDifferent = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n//\t\tuebertrage die komprimierten Pixel in ein byte-Array\r\n\t\tbyte[] lineCompressedByteArray = new byte[lineCompressedArray.size()];\r\n\t\tfor (int i = 0; i < lineCompressedByteArray.length; i++) {\r\n\t\t\tlineCompressedByteArray[i] = lineCompressedArray.get(i);\r\n\t\t}\r\n\t\treturn lineCompressedByteArray;\r\n\t}", "Picture binaryComponentImage() throws Exception;", "public static void createFileToZip(BufferedImage image, String path, int name,ZipOutputStream zipOS) throws FileNotFoundException, IOException {\n //Create the jpeg image\n File f = new File(path+Integer.toString(name)+\".jpg\");\n //Create the inputstream\n FileInputStream fis = new FileInputStream(f);\n //Create a zipentry for the file we are gonna include to the zip\n ZipEntry zipEntry = new ZipEntry(path+Integer.toString(name)+\".jpg\");\n //Store the image into the zip as an array of bytes\n zipOS.putNextEntry(zipEntry);\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n }", "public final void prepareForSaving() {\r\n\t\tbi_image.pack();\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n Uri selectedImageUri = data.getData();\n ParcelFileDescriptor parcelFileDescriptor;\n try {\n parcelFileDescriptor = getActivity().getContentResolver().openFileDescriptor(selectedImageUri, \"r\");\n FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();\n Bitmap mealImage = BitmapFactory.decodeFileDescriptor(fileDescriptor);\n parcelFileDescriptor.close();\n\n\n Bitmap mealImageScaled = Bitmap.createScaledBitmap(mealImage,\n LTAPIConstants.IMAGE_WIDTH_SIZE, LTAPIConstants.IMAGE_WIDTH_SIZE\n * mealImage.getHeight() / mealImage.getWidth(), false);\n\n Matrix matrix = new Matrix();\n //matrix.postRotate(90);\n Bitmap rotatedScaledMealImage = Bitmap.createBitmap(mealImageScaled, 0,\n 0, mealImageScaled.getWidth(), mealImageScaled.getHeight(),\n matrix, true);\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n rotatedScaledMealImage.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n\n byte[] scaledData = bos.toByteArray();\n photoFile = new ParseFile(\"tripcard_photo.jpg\", scaledData);\n addPhotoToMealAndReturn(photoFile);\n\n photoFile.saveInBackground(new SaveCallback() {\n\n public void done(ParseException e) {\n if (e != null) {\n Toast.makeText(getActivity(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n } else {\n debugShowToast(\"Saved???? \");\n }\n }\n });\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // Override Android default landscape orientation and save portrait\n }\n }", "public void setCompression( boolean compress ) {\n this .compression = compress;\n }", "public boolean useCompression()\n {\n return compressor != null;\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "private CompressionTools() {}", "public byte[] doInBackground(byte[]... data) {\n byte[] originalJpegData;\n byte[] originalJpegData2 = data[0];\n if (PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && PhotoModule.this.isSupportBeauty() && (PhotoModule.this.mCameraId == 0 || PhotoModule.this.mCameraId == 1)) {\n Size size = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n float seek = PhotoModule.this.mActivity.getCameraAppUI().getBeautySeek() / 20.0f;\n int angle = PhotoModule.this.mCameraId == 1 ? MediaProviderUtils.ROTATION_270 : 90;\n if (originalJpegData2 != null) {\n originalJpegData2 = BeautifyHandler.processImageNV21(PhotoModule.this.mActivity, originalJpegData2, size.width(), size.height(), seek, angle);\n }\n }\n PhotoModule.this.mActivity.getButtonManager().mBeautyEnable = true;\n Size size2 = PhotoModule.this.mCameraSettings.getCurrentPhotoSize();\n PhotoModule.this.mIsAddWaterMark = PhotoModule.this.mCameraSettings.isAddWaterMarkEnabled();\n if (PhotoModule.this.mFinalDrCheckResult.size() <= 1) {\n Log.d(PhotoModule.TAG, \"start to jpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(originalJpegData2, size2.width(), size2.height());\n Log.d(PhotoModule.TAG, \"end to jpeg\");\n } else {\n int result = PhotoModule.this.mImageRefiner.processImage();\n Tag access$500 = PhotoModule.TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processImage result = \");\n stringBuilder.append(result);\n Log.d(access$500, stringBuilder.toString());\n byte[] output = new byte[originalJpegData2.length];\n if (result < 0) {\n output = (byte[]) PhotoModule.this.mAddedImages.get(0);\n } else {\n int getOutputResult = PhotoModule.this.mImageRefiner.getOutputImageRaw(output);\n Tag access$5002 = PhotoModule.TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"getOutputResult = \");\n stringBuilder2.append(getOutputResult);\n Log.d(access$5002, stringBuilder2.toString());\n }\n PhotoModule.this.mImageRefiner.finish();\n PhotoModule.this.mImageRefiner = null;\n Log.d(PhotoModule.TAG, \"mImageRefiner = null\");\n Log.d(PhotoModule.TAG, \"compressToJpeg\");\n originalJpegData = PhotoModule.this.convertN21ToJpeg(output, size2.width(), size2.height());\n }\n if (cameraProxy.getCharacteristics().isFacingFront() && PhotoModule.this.isNeedMirrorSelfie()) {\n originalJpegData = PhotoModule.this.aftMirrorJpeg(originalJpegData);\n }\n if (!Keys.isAlgorithmsOn(PhotoModule.this.mActivity.getSettingsManager()) || PhotoModule.this.isDepthEnabled() || PhotoModule.this.mBurstResultQueue.isEmpty()) {\n return originalJpegData;\n }\n TotalCaptureResult totalCaptureResult = (TotalCaptureResult) PhotoModule.this.mBurstResultQueue.removeFirst();\n if (PhotoModule.this.mInHdrProcess) {\n PhotoModule.this.mBurstResultQueue.clear();\n }\n return PhotoModule.this.addExifTags(originalJpegData, totalCaptureResult, cameraProxy.getCharacteristics().isFacingFront(), PhotoModule.this.mJpegRotation);\n }", "public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }", "public interface CompressionStrategy {\n\n /**\n * The type of compression performed.\n */\n String getType();\n\n /**\n * Uncompresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data compressed data.\n * @return uncompressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] inflate(byte[] data) throws IOException;\n\n /**\n * Compresses the data. The array received should not be modified, but it\n * may be returned unchanged.\n * \n * @param data uncompressed data.\n * @return compressed data.\n * @throws IOException if there is an issue during the operation.\n */\n byte[] deflate(byte[] data) throws IOException;\n}", "public byte[] resizeScanBytes(byte[] byteScan) throws IOException {\n try (FileOutputStream fos = new FileOutputStream(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\")) {\r\n fos.write(byteScan);\r\n fos.close();\r\n }\r\n File input = new File(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\");\r\n BufferedImage image = ImageIO.read(input);\r\n\r\n File compressedImageFile = new File(\"compress.jpg\");\r\n OutputStream os = new FileOutputStream(compressedImageFile);\r\n\r\n Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName(\"jpg\");\r\n ImageWriter writer = (ImageWriter) writers.next();\r\n\r\n ImageOutputStream ios = ImageIO.createImageOutputStream(os);\r\n writer.setOutput(ios);\r\n\r\n ImageWriteParam param = writer.getDefaultWriteParam();\r\n\r\n // ustawienie stopnia kompresji\r\n param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);\r\n param.setCompressionQuality(0.1f);\r\n writer.write(null, new IIOImage(image, null, null), param);\r\n os.close();\r\n ios.close();\r\n writer.dispose();\r\n\r\n // zamieniam na byte\r\n Path path = Paths.get(\"E:\\\\EVENTREMAINDER\\\\temp.jpg\");\r\n byte[] data = Files.readAllBytes(path);\r\n\r\n return data;\r\n }", "private static void writeImageChunk(Path sourceImagePath, Path outputImagePath, String outputFormat, int chunkNumber, int chunkCount) throws IOException {\r\n try (InputStream readInputStream = Files.newInputStream(sourceImagePath, StandardOpenOption.READ)) {\r\n // read the original image\r\n BufferedImage image = ImageIO.read(readInputStream);\r\n\r\n // reduce the original image to an image for the desired chunk\r\n BufferedImage chunkedImage = BMPFragmenter.fragmentBMP(image, chunkNumber, chunkCount);\r\n // overwrite the original image with the smaller chunk\r\n try (OutputStream writeOutputStream = Files.newOutputStream(outputImagePath, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING)) {\r\n ImageIO.write(chunkedImage, outputFormat, writeOutputStream);\r\n }\r\n }\r\n }", "public EWAHCompressedBitmap and(final EWAHCompressedBitmap a) {\n\t\tfinal EWAHCompressedBitmap container = new EWAHCompressedBitmap();\n\t\tcontainer.reserve(this.actualsizeinwords > a.actualsizeinwords\n\t\t\t\t? this.actualsizeinwords : a.actualsizeinwords);\n\t\tand(a, container);\n\t\treturn container;\n\t}", "public native void syncImage() throws MagickException;", "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi); /* Image Negative */\n return;\n\n case 2:\n biFiltered = RescaleImage(bi);\n return;\n\n case 3:\n biFiltered = ShiftImage(bi);\n return;\n\n case 4:\n biFiltered = RescaleShiftImage(bi);\n return;\n\n case 5:\n biFiltered = Add(bi, bi1);\n return;\n\n case 6:\n biFiltered = Subtract(bi, bi1);\n return;\n\n case 7:\n biFiltered = Multiply(bi, bi1);\n return;\n\n case 8:\n biFiltered = Divide(bi, bi1);\n return;\n\n case 9:\n biFiltered = NOT(bi);\n return;\n\n case 10:\n biFiltered = AND(bi, bi1);\n return;\n\n case 11:\n biFiltered = OR(bi, bi1);\n return;\n\n case 12:\n biFiltered = XOR(bi, bi1);\n return;\n\n case 13:\n biFiltered = ROI(bi);\n return;\n\n case 14:\n biFiltered = Negative_Linear(bi);\n return;\n\n case 15:\n biFiltered= Logarithmic_function(bi);\n return;\n\n case 16:\n biFiltered = Power_Law(bi);\n return;\n\n case 17:\n biFiltered = LUT(bi);\n return;\n\n case 18:\n biFiltered = Bit_planeSlicing(bi);\n return;\n\n case 19:\n biFiltered = Histogram(bi1,bi2);\n return;\n\n case 20:\n biFiltered = HistogramEqualisation(bi,bi3);\n return;\n\n case 21:\n biFiltered = Averaging(bi1);\n return;\n\n case 22:\n biFiltered = WeightedAveraging(bi1);\n return;\n\n case 23:\n biFiltered = fourNeighbourLaplacian(bi1);\n return;\n\n case 24:\n biFiltered= eightNeighbourLaplacian(bi1);\n return;\n\n case 25:\n biFiltered = fourNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 26:\n biFiltered = eightNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 27:\n biFiltered = Roberts(bi1);\n return;\n\n case 28:\n biFiltered = SobelX(bi1);\n return;\n\n case 29:\n biFiltered = SobelY(bi1);\n return;\n\n case 30:\n biFiltered = Gaussian(bi1);\n return;\n\n case 31:\n biFiltered = LoG (bi1);\n return;\n\n case 32:\n biFiltered = saltnpepper(bi4);\n return;\n\n case 33:\n biFiltered = minFiltering(bi4);\n return;\n\n case 34:\n biFiltered = maxFiltering(bi4);\n return;\n\n case 35:\n biFiltered = maidpointFiltering(bi4);\n return;\n\n case 36:\n biFiltered = medianFiltering(bi4);\n return;\n\n case 37:\n biFiltered = simpleThresholding(bi5);\n return;\n\n case 38:\n biFiltered = automatedThresholding(bi6);\n return;\n\n case 39:\n biFiltered = adaptiveThresholding(bi7);\n return;\n }\n }" ]
[ "0.68349135", "0.65111476", "0.60392606", "0.59852344", "0.5935318", "0.5788635", "0.57813233", "0.56994265", "0.5606655", "0.53135556", "0.5298032", "0.5286904", "0.5284177", "0.52731586", "0.5253783", "0.5247088", "0.5225689", "0.5185089", "0.51458716", "0.5132338", "0.51219106", "0.5103594", "0.5062546", "0.505276", "0.50412893", "0.5029563", "0.50250834", "0.50192904", "0.5011702", "0.5011379", "0.5002296", "0.49967492", "0.49695104", "0.49526197", "0.49377608", "0.49341375", "0.49314153", "0.4929297", "0.49084508", "0.4894244", "0.48939377", "0.4879007", "0.48763198", "0.4863043", "0.4860662", "0.48604134", "0.4854736", "0.48521736", "0.48486394", "0.48484638", "0.48306808", "0.4830615", "0.4825313", "0.48240298", "0.48216116", "0.48167953", "0.48097903", "0.4807106", "0.48035705", "0.4802919", "0.47933352", "0.47866887", "0.47794774", "0.47559252", "0.4749947", "0.47486585", "0.47486585", "0.47486585", "0.47486585", "0.47486585", "0.47486585", "0.47417483", "0.4740146", "0.47354943", "0.47226807", "0.47021005", "0.46938646", "0.46891108", "0.46853003", "0.46838257", "0.46799728", "0.46772045", "0.46767575", "0.46693087", "0.466052", "0.46547732", "0.46513417", "0.46488294", "0.46480307", "0.46382582", "0.46304688", "0.46206895", "0.46115822", "0.4599995", "0.45919573", "0.45853493", "0.45832968", "0.45759284", "0.45634437", "0.45590845" ]
0.5386387
9
public Notice get(Notice notice); public List> getNoticeList();
public List<BbsNotice> getNoticeList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> \n getNoticeListList();", "com.vine.vinemars.net.pb.SocialMessage.NoticeObj getNoticeList(int index);", "Map<String, Object> noticeList(Notice notice, HttpSession session);", "public java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> getNoticeListList() {\n return java.util.Collections.unmodifiableList(noticeList_);\n }", "public java.util.List<com.vine.vinemars.net.pb.SocialMessage.NoticeObj> getNoticeListList() {\n return noticeList_;\n }", "public com.vine.vinemars.net.pb.SocialMessage.NoticeObj getNoticeList(int index) {\n return noticeList_.get(index);\n }", "public com.vine.vinemars.net.pb.SocialMessage.NoticeObj getNoticeList(int index) {\n return noticeList_.get(index);\n }", "@Override\r\n\tpublic List<NoticeVO> listWithIsNotice() {\n\t\treturn sqlSession.selectList(namespace + \".listWithIsNotice\");\r\n\t}", "public List<Notice> getAllNotice() {\n\t\tList<Notice> list = (List<Notice>) noticeRepository.findAll();\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<NoticeVO> noticeListAll() {\n\t\treturn sqlSession.selectList(namespace + \".noticeListAll\"); \r\n\t}", "public static ArrayList<Notice> list() throws Exception {\n Session session = HibernateUtil.getCurrentSession();\n return (ArrayList<Notice>)session.getNamedQuery(\"notice.noticeList\")\n .list();\n }", "public java.util.List<? extends com.vine.vinemars.net.pb.SocialMessage.NoticeObjOrBuilder> \n getNoticeListOrBuilderList() {\n return noticeList_;\n }", "public com.vine.vinemars.net.pb.SocialMessage.NoticeObjOrBuilder getNoticeListOrBuilder(\n int index) {\n return noticeList_.get(index);\n }", "@Override\n\tpublic List<Map<String, Object>> findAllnotice() {\n\t\tStringBuffer querySQL = new StringBuffer(\"select * from notice order by status,crdate\");\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t}", "@Override\r\n\tpublic List<NoticeVO> recentNoticeList() {\n\t\treturn sqlSession.selectList(namespace + \".recentNoticeList\");\r\n\t}", "@Override\r\n\tpublic List<Notice> noticelist(String ids) {\n\t\treturn noticeDao.noticelist(ids);\r\n\t}", "public List<SysNoticeWarning> queryNoticeWarning() {\n\t\treturn dao.queryNoticeWarning();\r\n\t}", "public List<Notice> getAllOriginalNotice(){\n\t\tList<Notice> notices = null;\n\t\ttry {\n\t\t\tnotices = noticeRepository.findByIsDeleted(false); \n\t\t} catch (Exception e) {\t\t\t\n\t\t\tthrow new ServerErrorException(\"Exception occured at Service in getAllOriginalNotice(). \"+e);\t\n\t\t}\n\t\t\n\t\treturn notices;\n\t}", "@Override\n\tpublic List<OpGmtNoticeLeft> getNoticList() {\n\t\treturn mapper.selectByExample(new OpGmtNoticeLeftExample());\n\t}", "List<SysNotice> selectByExample(SysNoticeExample example);", "List<Note> list();", "@Override\n\tpublic List<BoardDto> bestNotice() {\n\t\treturn dao.bestNotice();\n\t}", "@Override\r\n\tpublic List<Map<String, String>> selectMainNoticeList() {\n\t\treturn dao.selectMainNoticeList();\r\n\t}", "@Override\r\n\tpublic List<Notice> noticetop5sy() {\n\t\treturn noticeDao.noticetop5sy();\r\n\t}", "@Override\r\n\tpublic List<Notice> noticetop5meiti() {\n\t\treturn noticeDao.noticetop5meiti();\r\n\t}", "@Override\r\n\tpublic List<AD_NoticeVO> ad_no_list() {\n\t\treturn adao.ad_no_List();\r\n\t}", "int getNoticeListCount();", "public int getNoticeListCount() {\n return noticeList_.size();\n }", "public List<Map<String, Object>> selectNoticeList(Map<String, Object> commandMap) throws Exception {\n\t\treturn defaultDAO.selectList(\"Support.selectNoticeList\", commandMap);\n\t}", "public int getNoticeListCount() {\n return noticeList_.size();\n }", "@Override\n\tpublic List<Map<String, Object>> getNoticeLast() {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select ifnull(title,'') title,ifnull(static_page,'') static_page from notice where status = 1 order by crdate desc limit 4\");\n\t\t// StringBuffer querySQL2 = new StringBuffer(\n\t\t// \"select count(1) from notice where status = 1 order by crdate desc limit 1\");\n\t\t// if (jdbcTemplate.queryForInt(querySQL2.toString()) > 0) {\n\t\treturn jdbcTemplate.queryForList(querySQL.toString());\n\t\t// }\n\t\t// return null;\n\n\t}", "public static Map getNotices() throws Exception {\n Map noticeMap = new HashMap();\n for (Notice notice : list()) {\n noticeMap.put(notice.getName(), notice);\n }\n return noticeMap;\n }", "@Override\r\n\tpublic List<NoticeAttachVO> getAttachList(int noticeNo) {\n\t\treturn sqlSession.selectList(namespace + \".getAttachList\", noticeNo);\r\n\t}", "@Override\r\n\tpublic List<NoticeVO> listCriteria(Criteria cri) {\n\t\treturn sqlSession.selectList(namespace + \".listCriteria\", cri);\r\n\t}", "@Override\n\tpublic Map<String, Object> getForestNoticeMessageList(int forestNo, Search search) throws Exception {\n\t\treturn noticeMessageDao.getForestNoticeMessageList(forestNo, search);\n\t}", "public Builder setNoticeList(\n int index, com.vine.vinemars.net.pb.SocialMessage.NoticeObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNoticeListIsMutable();\n noticeList_.set(index, value);\n\n return this;\n }", "@Override\n\tpublic Map<String, Object> getNoticeById(String noticeid) {\n\t\tStringBuffer querySQL = new StringBuffer(\n\t\t\t\t\"select noticeid,title,content,date_format(crdate,'%Y-%m-%d %H:%i') crdate,static_page,status from notice where noticeid = ?\");\n\t\treturn jdbcTemplate.queryForMap(querySQL.toString(), new Object[] { noticeid });\n\t}", "@Override\n\tpublic List<boardVO> search_Notice(String board_id) {\n\t\treturn null;\n\t}", "public Builder addNoticeList(com.vine.vinemars.net.pb.SocialMessage.NoticeObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNoticeListIsMutable();\n noticeList_.add(value);\n\n return this;\n }", "public Builder addNoticeList(\n int index, com.vine.vinemars.net.pb.SocialMessage.NoticeObj value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNoticeListIsMutable();\n noticeList_.add(index, value);\n\n return this;\n }", "public List<Note> getNotes(){\n return notes;\n }", "public List<ProjectRecoveryNoticeLetterInfo> getNoticeLetters() {\n\t\treturn this.noticeLetters;\n\t}", "public Notice getNotice(Long noticeId) {\n\t\tNotice notice = null;\n\t\ttry {\n\t\t\tnotice = noticeRepository.findById(noticeId).get();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"NoticeService.'\\n' Method: getNotice() '\\n' Error Details:\" + e.getMessage());\n\t\t\tthrow new ServerErrorException(e.getMessage());\n\t\t}\n\t\treturn notice;\n\t}", "java.util.List<ServerToB.SeenInfo>\n getSeenInfoList();", "public Integer getNoticeId() {\n return noticeId;\n }", "ArrayList<INote> getNotesAt(int beatNum);", "public List<New> list();", "java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();", "List<Goods> getGoodsList();", "public List getList();", "public static void intialize_notice() {\r\n mNotice_info = new ArrayList<>();\r\n }", "public interface NoticeService {\r\n public void save(Notice notice);\r\n\r\n public List<Notice> findAll(Integer userID);\r\n\r\n public void delete(Notice notice);\r\n\r\n public void update(Notice notice);\r\n}", "java.util.List<Res.Msg>\n getMsgList();", "@Override\r\n\tpublic DataWrapperDiy<List<CommonNotice>> getAllNoticeList(String token, Integer pageSize, Integer pageIndex) {\n\t\tDataWrapperDiy<List<CommonNotice>> result = new DataWrapperDiy<List<CommonNotice>>();\r\n\t\tList<CommonNotice> resultList = new ArrayList<CommonNotice>();\r\n\t\tUser user = SessionManager.getSession(token); \r\n\t\tif(user!=null){\r\n\t\t\tDataWrapper<List<Notice>> gets = noticeDao.getListByUserId(pageSize,pageIndex,user.getId());\r\n\t\t\tInteger totalNotRead=0;\r\n\t\t\ttotalNotRead= noticeDao.getListNotRead(user.getId());\r\n\t\t\tif(gets.getData()!=null){\r\n\t\t\t\tif(!gets.getData().isEmpty()){\r\n\t\t\t\t\tresult.setCurrentPage(gets.getCurrentPage());\r\n\t\t\t\t\tresult.setNumberPerPage(gets.getNumberPerPage());\r\n\t\t\t\t\tresult.setTotalNumber(gets.getTotalNumber());\r\n\t\t\t\t\tresult.setTotalPage(gets.getTotalPage());\r\n\t\t\t\t\tfor(Notice no:gets.getData()){\r\n\t\t\t\t\t\t//0 质量问题、 1 安全问题、 2 施工任务单、 3 预付单 、4 留言\r\n\t\t\t\t\t\tswitch(no.getNoticeType()){\r\n\t\t\t\t case 0:\r\n\t\t\t\t {\r\n\t\t\t\t \tCommonNotice commonNotice = new CommonNotice();\r\n\t\t\t\t\t\t\t\tcommonNotice.setCreateDate(Parameters.getSdf().format(no.getCreateDate()));\r\n\t\t\t\t\t\t\t\tcommonNotice.setNoticeType(no.getNoticeType());\r\n\t\t\t\t\t\t\t\tcommonNotice.setReadState(no.getReadState());\r\n\t\t\t\t\t\t\t\tcommonNotice.setAboutId(no.getAboutId());\r\n\t\t\t\t \tQualityQuestion qualityQuestion = new QualityQuestion();\r\n\t\t\t\t \tqualityQuestion=qualityQuestionDao.getById(no.getAboutId());\r\n\t\t\t\t \tif(qualityQuestion!=null){\r\n\t\t\t\t \t\tcommonNotice.setAboutCreateUserId(qualityQuestion.getUserId());\r\n\t\t\t\t \t\tUser createUser=userDao.getById(qualityQuestion.getUserId());\r\n\t\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setCreateUserName(createUser.getRealName());\r\n\t\t\t\t\t\t\t\t\t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tFiles urlfiles = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t\t\t\t\t\t\t\tif(urlfiles!=null){\r\n\t\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(urlfiles.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}else if(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(qualityQuestion.getState()==0){\r\n\t\t\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t \t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个质量问题已完成\");\r\n\t\t\t\t\t \t\t}\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t\tif(qualityQuestion.getState()==1){\r\n\t\t\t \t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个安全问题已完成\");\r\n\t\t\t \t\t\t}\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t\tcommonNotice.setContent(qualityQuestion.getIntro());\r\n\t\t\t\t \t\tProject project = projectDao.getById(qualityQuestion.getProjectId());\r\n\t\t\t\t \t\tif(project!=null){\r\n\t\t\t\t \t\t\tcommonNotice.setProjectName(project.getName());\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\tif(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t \t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t \t\t\tFiles userIcon = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t \t\t\tif(userIcon!=null){\r\n\t\t\t\t \t\t\t\tcommonNotice.setUserIconUrl(userIcon.getUrl());\r\n\t\t\t\t \t\t\t}\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\tDataWrapper<List<QuestionFile>> images = questionFileDao.getQuestionFileByQualityId(qualityQuestion.getId());\r\n\t\t\t\t\t\t\t\t\tif(images.getData()!=null){\r\n\t\t\t\t\t\t\t\t\t\tif(!images.getData().isEmpty()){\r\n\t\t\t\t\t\t\t\t\t\t\tFiles files = fileDao.getById(images.getData().get(0).getFileId());\r\n\t\t\t\t\t\t\t\t\t\t\tif(files!=null){\r\n\t\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setImagUrl(files.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setName(qualityQuestion.getName());\r\n\t\t\t\t\t\t\t\t\tif(qualityQuestion.getUserList()!=null){\r\n\t\t\t\t\t\t\t\t\t\tString[] strs = qualityQuestion.getUserList().split(\",\");\r\n\t\t\t\t\t\t\t\t\t\tList<String> nameList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\tfor(int q=0;q<strs.length;q++){\r\n\t\t\t\t\t\t\t\t\t\t\tUser sendUser = userDao.getById(Long.valueOf(strs[q]));\r\n\t\t\t\t\t\t\t\t\t\t\tif(sendUser!=null){\r\n\t\t\t\t\t\t\t\t\t\t\t\tnameList.add(sendUser.getRealName());\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setSendUserList(nameList);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tresultList.add(commonNotice);\r\n\t\t\t\t \t}\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t }\r\n\t\t\t\t case 1:\r\n\t\t\t\t {\r\n\t\t\t\t \tCommonNotice commonNotice = new CommonNotice();\r\n\t\t\t\t\t\t\tcommonNotice.setCreateDate(Parameters.getSdf().format(no.getCreateDate()));\r\n\t\t\t\t\t\t\tcommonNotice.setNoticeType(no.getNoticeType());\r\n\t\t\t\t\t\t\tcommonNotice.setAboutId(no.getAboutId());\r\n\t\t\t\t\t\t\tcommonNotice.setReadState(no.getReadState());\r\n\t\t\t\t \tQuestion question = new Question();\r\n\t\t\t\t \tquestion=questionDao.getById(no.getAboutId());\r\n\t\t\t \tif(question!=null){\r\n\t\t\t \t\tcommonNotice.setAboutCreateUserId(question.getUserId());\r\n\t\t\t \t\tUser createUser=userDao.getById(question.getUserId());\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setCreateUserName(createUser.getRealName());\r\n\t\t\t\t\t\t\t\t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t\t\t\t\t\t\tFiles urlfiles = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t\t\t\t\t\t\tif(urlfiles!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(urlfiles.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else if(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t \t\tif(createUser!=null){\r\n\t\t\t \t\t\tif(question.getState()==0){\r\n\t\t\t \t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个安全问题待处理\");\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t\tif(question.getState()==1){\r\n\t\t\t \t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个安全问题已完成\");\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\tcommonNotice.setContent(question.getIntro());\r\n\t\t\t \t\tProject project = projectDao.getById(question.getProjectId());\r\n\t\t\t \t\tif(project!=null){\r\n\t\t\t \t\t\tcommonNotice.setProjectName(project.getName());\r\n\t\t\t \t\t}\r\n\t\t\t \t\tDataWrapper<List<QuestionFile>> images = questionFileDao.getQuestionFileByQuestionId(question.getId());\r\n\t\t\t\t\t\t\t\tif(images.getData()!=null){\r\n\t\t\t\t\t\t\t\t\tif(!images.getData().isEmpty()){\r\n\t\t\t\t\t\t\t\t\t\tFiles files = fileDao.getById(images.getData().get(0).getFileId());\r\n\t\t\t\t\t\t\t\t\t\tif(files!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setImagUrl(files.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(question.getUserList()!=null){\r\n\t\t\t\t\t\t\t\t\tString[] strs = question.getUserList().split(\",\");\r\n\t\t\t\t\t\t\t\t\tList<String> nameList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tfor(int q=0;q<strs.length;q++){\r\n\t\t\t\t\t\t\t\t\t\tUser sendUser = userDao.getById(Long.valueOf(strs[q]));\r\n\t\t\t\t\t\t\t\t\t\tif(sendUser!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tnameList.add(sendUser.getRealName());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setSendUserList(nameList);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcommonNotice.setName(question.getName());\r\n\t\t\t\t\t\t\t\tresultList.add(commonNotice);\r\n\t\t\t \t}\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t case 2:\r\n\t\t\t\t {\r\n\t\t\t\t \tCommonNotice commonNotice = new CommonNotice();\r\n\t\t\t\t\t\t\tcommonNotice.setCreateDate(Parameters.getSdf().format(no.getCreateDate()));\r\n\t\t\t\t\t\t\tcommonNotice.setNoticeType(no.getNoticeType());\r\n\t\t\t\t\t\t\tcommonNotice.setAboutId(no.getAboutId());\r\n\t\t\t\t\t\t\tcommonNotice.setReadState(no.getReadState());\r\n\t\t\t\t\t\t\tConstructionTaskNew ct = constructionTaskNewDao.getById(no.getAboutId());\r\n\t\t\t\t\t\t\tif(ct!=null){\r\n\t\t\t\t\t\t\t\tcommonNotice.setAboutCreateUserId(ct.getCreateUser());\r\n\t\t\t\t\t\t\t\tcommonNotice.setContent(ct.getConstructContent());\r\n\t\t\t\t\t\t\t\tProject project = projectDao.getById(ct.getProjectId());\r\n\t\t\t\t\t\t\t\tif(project!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setProjectName(project.getName());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(ct.getImgs()!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setImagUrl(ct.getImgs().split(\",\")[0]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tUser createUser=userDao.getById(ct.getCreateUser());\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setCreateUserName(createUser.getRealName());\r\n\t\t\t\t\t\t\t\t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t\t\t\t\t\t\tFiles urlfiles = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t\t\t\t\t\t\tif(urlfiles!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(urlfiles.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else if(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个施工任务单\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/////任务单下面的流程节点的所有信息\r\n\t\t\t\t\t\t\t\tList<AllItemData> itemDataList = constructionTaskNewDao.getAllItemData(ct.getId());\t\r\n\t\t\t\t\t\t\t\tif(!itemDataList.isEmpty()){\r\n\t\t\t\t\t\t\t\t\tList<String> nameList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tUser senduser = userDao.getById(itemDataList.get(0).getApprove_user());\r\n\t\t\t\t\t\t\t\t\tnameList.add(senduser.getRealName());\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setSendUserList(nameList);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcommonNotice.setName(ct.getName());\r\n\t\t\t\t\t\t\t\tresultList.add(commonNotice);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t }\r\n\t\t\t\t case 3:\r\n\t\t\t\t {\r\n\t\t\t\t \tCommonNotice commonNotice = new CommonNotice();\r\n\t\t\t\t \tcommonNotice.setReadState(no.getReadState());\r\n\t\t\t\t\t\t\tcommonNotice.setCreateDate(Parameters.getSdf().format(no.getCreateDate()));\r\n\t\t\t\t\t\t\tcommonNotice.setNoticeType(no.getNoticeType());\r\n\t\t\t\t\t\t\tcommonNotice.setAboutId(no.getAboutId());\r\n\t\t\t\t \tAdvancedOrder ct = advancedOrderDao.getById(no.getAboutId());\r\n\t\t\t\t\t\t\tif(ct!=null){\r\n\t\t\t\t\t\t\t\tcommonNotice.setAboutCreateUserId(ct.getSubmitUserId());\r\n\t\t\t\t\t\t\t\tcommonNotice.setContent(ct.getQuantityDes());\r\n\t\t\t\t\t\t\t\tProject project = projectDao.getById(ct.getProjectId());\r\n\t\t\t\t\t\t\t\tif(project!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setProjectName(project.getName());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(ct.getContentFilesId()!=null){\r\n\t\t\t\t\t\t\t\t\tFiles files = fileDao.getById(Long.valueOf(ct.getContentFilesId().split(\",\")[0]));\r\n\t\t\t\t\t\t\t\t\tif(files!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setImagUrl(files.getUrl());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tUser createUser=userDao.getById(ct.getSubmitUserId());\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setCreateUserName(createUser.getRealName());\r\n\t\t\t\t\t\t\t\t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t\t\t\t\t\t\tFiles urlfiles = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t\t\t\t\t\t\tif(urlfiles!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(urlfiles.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else if(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一个预付单\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(ct.getNextReceivePeopleId()!=null){\r\n\t\t\t\t\t\t\t\t\tList<String> nameList = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\tnameList.add(ct.getNextReceivePeopleId());\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setSendUserList(nameList);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcommonNotice.setName(ct.getConstructPart());\r\n\t\t\t\t\t\t\t\tresultList.add(commonNotice);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t }\r\n\t\t\t\t case 4:\r\n\t\t\t\t {\r\n\t\t\t\t \tCommonNotice commonNotice = new CommonNotice();\r\n\t\t\t\t\t\t\tcommonNotice.setCreateDate(Parameters.getSdf().format(no.getCreateDate()));\r\n\t\t\t\t\t\t\tcommonNotice.setNoticeType(no.getNoticeType());\r\n\t\t\t\t\t\t\tcommonNotice.setReadState(no.getReadState());\r\n\t\t\t\t \tMessage ct = messageDao.getById(no.getAboutId());\r\n\t\t\t\t\t\t\tif(ct!=null){\r\n\t\t\t\t\t\t\t\tif(ct.getQuestionType()==0){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setAboutId(ct.getAboutId());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(ct.getQuestionType()==1){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setAboutId(ct.getAboutId());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcommonNotice.setAboutCreateUserId(ct.getUserId());\r\n\t\t\t\t\t\t\t\tcommonNotice.setContent(ct.getContent());\r\n\t\t\t\t\t\t\t\tProject project = projectDao.getById(ct.getProjectId());\r\n\t\t\t\t\t\t\t\tif(project!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setProjectName(project.getName());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tMessageFile mf = messageFileDao.getMessageFileByMessageId(ct.getId());\r\n\t\t\t\t\t\t\t\tif(mf!=null){\r\n\t\t\t\t\t\t\t\t\tif(mf.getFileId()!=null){\r\n\t\t\t\t\t\t\t\t\t\tFiles file = fileDao.getById(mf.getFileId());\r\n\t\t\t\t\t\t\t\t\t\tif(file!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setImagUrl(file.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tUser createUser=userDao.getById(ct.getUserId());\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setCreateUserName(createUser.getRealName());\r\n\t\t\t\t\t\t\t\t\tif(createUser.getUserIcon()!=null){\r\n\t\t\t\t\t\t\t\t\t\tFiles urlfiles = fileDao.getById(createUser.getUserIcon());\r\n\t\t\t\t\t\t\t\t\t\tif(urlfiles!=null){\r\n\t\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(urlfiles.getUrl());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else if(createUser.getUserIconUrl()!=null){\r\n\t\t\t\t\t\t\t\t\t\tcommonNotice.setUserIconUrl(createUser.getUserIconUrl());\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(createUser!=null){\r\n\t\t\t\t\t\t\t\t\tcommonNotice.setTitle(createUser.getRealName()+\"提交了一条留言\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcommonNotice.setMessageType(ct.getQuestionType());\r\n\t\t\t\t\t\t\t\tcommonNotice.setName(ct.getContent());\r\n\t\t\t\t\t\t\t\tresultList.add(commonNotice);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresult.setData(resultList);\r\n\t\t\tresult.setCurrentPage(gets.getCurrentPage());\r\n\t\t\tresult.setNotRead(totalNotRead);\r\n\t\t\tresult.setTotalNumber(gets.getTotalNumber());\r\n\t\t\tresult.setTotalPage(gets.getTotalPage());\r\n\t\t\tresult.setNumberPerPage(gets.getNumberPerPage());\r\n\t\t}else{\r\n\t\t\tresult.setErrorCode(ErrorCodeEnum.User_Not_Logined);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\r\n\tpublic List<Notice> findByNoticeId(Long noticeId, PagingBean pb) {\n\t\tfinal String hql = \"from Notice notice where notice.noticeId=?\";\r\n\t\tObject[] params ={noticeId} ;\r\n\t\treturn findByHql(hql, params, pb);\r\n\t}", "@Override\n\tpublic List<News> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<News> list = (List<News>)getCurrentSession().createQuery(\"FROM News\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}", "@Override\n\tpublic List<NoticeView> getViewList(boolean pub) {\n\t\treturn getViewList(1, \"title\", \"\", pub);\n\t}", "edu.usfca.cs.dfs.StorageMessages.List getList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "public List<Mensaje> getInfos() {\r\n\t\treturn infos;\r\n\t}", "java.util.List<proto.Achievement> \n getAchievementsList();", "PublicDoctorNotice selectByPrimaryKey(String noticeId);", "private ArrayList<HashMap<String, String>> getList(){\n return alertList;\n }", "List<PublicDoctorNotice> selectByExample(PublicDoctorNoticeExample example);", "@GetMapping(\"/data\")\n\t@ResponseBody\n\tpublic Notice data() {\n\t\t\n\t\tNotice notice = new Notice();\n\t\tnotice.setId(1);\n\t\tnotice.setTitle(\"hello\");\n\t\tnotice.setWriterId(\"newlec\");\n\t\tnotice.setHit(10);\n\t\treturn notice;\n\t\t\n\t}", "public List getInfos() {\n return infos;\n }", "public ArrayList<NoticeEntity> searchNotice(String empname,String noticename, String noticecontent) throws Exception {\n\t\tArrayList<NoticeEntity> notices=dao.searchNotice(empname,noticename,noticecontent);\n\t\tdao.closeConnection();\n\t\treturn notices;\n\t}", "List<Student> getStudent();", "SysNotice selectOneByExample(SysNoticeExample example);", "java.util.List<online_info>\n getInfoList();", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public NoteCollection getNoteCollection();", "@Override\n\tpublic List<NoticeView> getViewList(String field, String query, boolean pub) {\n\t\treturn getViewList(1, field, query, pub);\n\t}", "java.util.List<pl.stormit.protobuf.UserProtos.User.Interest> \n getInterestsList();", "java.util.List<com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail> \n getNewsindentifydetailList();", "@Override\n public List<Note> getNotesAtBeat(int beat) {\n ArrayList<Note> listAtBeat = new ArrayList<>();\n\n List<Note> current = notes.get(beat);\n\n if (current == null) {\n this.notes.put(beat, listAtBeat);\n return notes.get(beat);\n } else {\n listAtBeat.addAll(current);\n return listAtBeat;\n }\n }", "@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }", "public List<NewsItem> getNewsItemDataFromDB() throws SQLException;", "public String getNoticeDes() {\n return noticeDes;\n }", "@Override\r\n\tpublic List<NoticeVO> listSearch(SearchCriteria cri) {\n\t\treturn sqlSession.selectList(namespace + \".listSearch\", cri);\r\n\t}", "public java.util.List getAnalyticalNotes();", "public abstract List<T> getList();", "public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}", "List<PostInfo> getPostList();", "@Override\n\tpublic Map<String, Object> getTreeNoticeMessageList(int treeNo, int profileNo, Search search) throws Exception {\n\t\treturn noticeMessageDao.getTreeNoticeMessageList(treeNo, profileNo,search);\n\t}", "public List<Loan> getLoan();", "public List getList() throws HibException;", "public Integer getNoticeId() {\n\t\treturn noticeId;\n\t}", "List<?> getList();", "@Override\r\n\tpublic NoticeVO read(int no) {\n\t\treturn sqlSession.selectOne(namespace + \".read\", no);\r\n\t}", "public List<StockItem> getStockList();", "public ArrayList<String> getNotificaciones(){\n return notificaciones;\n }", "public List<Article> getList() {\n return list;\n }", "java.util.List<Rsp.Msg>\n getMsgList();", "public java.util.List<SeenInfo> getSeenInfoList() {\n return java.util.Collections.unmodifiableList(\n instance.getSeenInfoList());\n }", "public java.lang.String getNoticeCode() {\n\t\treturn noticeCode;\n\t}" ]
[ "0.8340383", "0.79944956", "0.7868349", "0.7820281", "0.77697104", "0.77574146", "0.7726777", "0.7676218", "0.7639548", "0.7525508", "0.74865294", "0.7420208", "0.7274813", "0.72209424", "0.7217624", "0.71426255", "0.69984615", "0.6992406", "0.66793025", "0.6625683", "0.6567299", "0.6477373", "0.6458801", "0.64546424", "0.6425054", "0.641747", "0.63125545", "0.6230272", "0.6218472", "0.6190479", "0.61729527", "0.6168859", "0.61584496", "0.61538863", "0.6118446", "0.6111417", "0.6064282", "0.60638696", "0.60385805", "0.60135335", "0.60065895", "0.5990488", "0.5966501", "0.59583247", "0.59561235", "0.5951928", "0.5920675", "0.58914393", "0.58812785", "0.587051", "0.5845184", "0.5837315", "0.5833129", "0.58257526", "0.5805617", "0.57930344", "0.57886034", "0.5781049", "0.57676667", "0.57676667", "0.57676667", "0.57676667", "0.57676667", "0.5743597", "0.5723465", "0.5721384", "0.56995356", "0.5698447", "0.56941736", "0.56563926", "0.5649705", "0.5644082", "0.56355673", "0.56349415", "0.5631931", "0.56276274", "0.56189406", "0.5614256", "0.5611651", "0.5609693", "0.5608455", "0.5585579", "0.55843514", "0.55816025", "0.55619353", "0.55542254", "0.55506283", "0.5544401", "0.5543248", "0.5524338", "0.5516752", "0.5507266", "0.55061823", "0.5504102", "0.5499131", "0.54921114", "0.54847795", "0.546662", "0.5441858", "0.54397595" ]
0.8831763
0
public Boolean insertNotice(String title, String content);
public void insertNotice(BbsNotice notice);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean insertNotice(String noticename, String noticecontent, int empid) {\n\t\tint res = 0;\n\t\ttry {\n\t\t\tres = dao.insertNotice(noticename,noticecontent,empid);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tdao.closeConnection();\n\t\t}\n\t\treturn res>0?true:false;\n\t}", "public void createSpecialNotice(String title, String discription, int doctorID) {\n\t\tString sql = \"\";\n\t\ttry {\n\n\t\t\tConnection dbConnection = dbConn.returnConn();\n\n\t\t\tsql = \"insert into doctornotice (title,content,docid) values(?,?,?)\";\n\t\t\tPreparedStatement preparedStmt = dbConnection.prepareStatement(sql);\n\t\t\tpreparedStmt.setString(1, title);\n\t\t\tpreparedStmt.setString(2, discription);\n\t\t\tpreparedStmt.setInt(3, doctorID);\n\n\t\t\tpreparedStmt.execute();\n\t\t\tdbConnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "public long insert(String title, String content) {\r\n\t\tthis.insertStmt.bindString(1, title);\r\n\t\tthis.insertStmt.bindString(2, content);\r\n\t\treturn this.insertStmt.executeInsert();\r\n\t}", "int insert(SysNotice record);", "int insert(Notice record);", "public long insertNota(String title, String body) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_NOTES_TITLE, title);\n initialValues.put(KEY_NOTES_BODY, body);\n\n return database.insert(NOTES_TABLE, null, initialValues);\n }", "@Override\n\tpublic String addNotice(Notice notice) {\n\t\tint t=noticeDao.addNotice(notice);\n\t\tif(t>0) {\n\t\t\treturn \"admin/succ\";\n\t\t}else {\n\t\t\treturn \"admin/error\";\n\t\t}\n\t}", "@Override\r\n\tpublic void addNotice(Notice notice) {\n\t\tnoticemapper.insert(notice);\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\t@Override\n\tpublic void addNotice(Notice notice) {\n\t\tStringBuffer excuteSQL = new StringBuffer(\"\");\n\t\tif (notice.getNoticeid() != null && !\"\".equals(notice.getNoticeid())) {\n\t\t\texcuteSQL.append(\"update notice set title=? ,content=?,crdate=?,status=0 where noticeid=?\");\n\t\t} else {\n\t\t\t// MAX id\n\t\t\tStringBuffer maxSQL = new StringBuffer(\"select ifnull(max(noticeid),0)+1 noticeid from notice \");\n\t\t\tnotice.setNoticeid(String.valueOf(jdbcTemplate.queryForInt(maxSQL.toString())));\n\t\t\texcuteSQL.append(\"insert into notice(title,content,crdate,status,noticeid) values (?,?,?,0,?)\");\n\t\t}\n\t\tjdbcTemplate.update(excuteSQL.toString(),\n\t\t\t\tnew Object[] { notice.getTitle(), notice.getContent(), notice.getCrdate(), notice.getNoticeid() });\n\t}", "@Override\r\n\tpublic void insertNews(int uid, String title, String triptime,\r\n\t\t\tString people, String imgpath, String triptype, String content,\r\n\t\t\tString equipment, String notice, String summary, String spot,\r\n\t\t\tTimestamp cdate) {\n\t\tdao.insertNews(uid, title, triptime, people, imgpath, triptype, content, equipment, notice, summary, spot, cdate);\r\n\t\t\r\n\t}", "int insert(MsgContent record);", "int insert(ComplainNoteDO record);", "public String getNoticeTitle() {\n return noticeTitle;\n }", "int insertContent(@Param(\"c\") UserContent content);", "int insertSelective(SysNotice record);", "public int insert(NewsNotice newsNotice) {\n\t\treturn getSqlSession().insert(getStatementName(\"insertSelective\"),newsNotice);\r\n\t}", "@Override\n\tpublic void pushBroadcast(String title, String content) {\n\t\tMessageEntity me=new MessageEntity(title,content,\"1\",new Date(),\"1\",\"suibaitiande\");\n\t\tmessageDAO.insertMessage(me);\n\t\tPush.testSendPush(content);\n\t\t\n\t}", "int insert(AnnouncementDO record);", "int insert(CmsVoteTitle record);", "int insert(PublicDoctorNotice record);", "void setNoticeFileContent(String noticeFileContent);", "int insert(KnowledgeComment record);", "public void setNoticeTitle(String noticeTitle) {\n this.noticeTitle = noticeTitle == null ? null : noticeTitle.trim();\n }", "int insertSelective(Notice record);", "@Override\n\tpublic int addNotice(NoticeWithBLOBs Notice) throws Exception{\n\t\tint res = -1;\n\t\tif(Notice != null)\n\t\t\tres = noticeMapper.insert(Notice);\n\t\treturn res;\n\t}", "int insert(FeiWenComment record);", "public String insertOrUpdateImportantNews() {\n try {\n if (important.getImportantNewsId() == null) {\n Map session = ActionContext.getContext().getSession();\n EmployeesVO oEmp = (EmployeesVO) session.get(\"EMPLOYEE_OBJECT\");\n important.setCreated(DateUtils.getCurrentDateTime());\n important.setEmpIdObj(oEmp);\n important.setCreatedBy(oEmp);\n important.setUpdatedBy(oEmp);\n important.setIsActive(1);\n impService.insertImportantNews(important);\n addActionMessage(getText(\"Added Successfully\"));\n } else {\n Map session = ActionContext.getContext().getSession();\n EmployeesVO oEmp = (EmployeesVO) session.get(\"EMPLOYEE_OBJECT\");\n important.setUpdatedBy(oEmp);\n important.setEmpIdObj(oEmp);\n impService.updateImportantNews(important);\n addActionMessage(getText(\"Updated Successfully\"));\n }\n } catch (RuntimeException e) {\n ErrorsAction errAction = new ErrorsAction();\n String sError = errAction.getError(e);\n addActionError(sError);\n throw e;\n }\n return SUCCESS;\n }", "@Override\n\tpublic void insert(OpGmtNoticeLeft t) {\n\t\tmapper.insert(t);\n\t}", "public boolean insertNews() {\n\t\treturn false;\n\t}", "int insert(NewsInfo record);", "public void insert(Comment com){\n //@todo implement method\n }", "public void insertaMensaje(InfoMensaje m) throws Exception;", "int insert(Notifiction record);", "public void updateNotice(String noticename, String noticecontent, int empid, int noticeid) {\n\t\ttry {\n\t\t\tdao.updateNotice(noticename,noticecontent,empid,noticeid);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tdao.closeConnection();\n\t\t}\n\t}", "int insert(MemberAdvisoryComment record);", "int insert(WxNews record);", "public void printNotice(String arg0) {\n\n }", "public static void crearInformacion(String titulo,String mensaje){\n Alert alert=new Alert(Alert.AlertType.INFORMATION);\n alert.setHeaderText(null);\n alert.setTitle(titulo);\n alert.setContentText(mensaje);\n alert.showAndWait();\n }", "int insert(News record);", "boolean saveMyNoteText(String myNote);", "int insert(trackcomment record);", "public void addContent(String msg) {\n\t\tthis.textArea.append(msg + \"\\n\");\r\n\t}", "private void showInfoMessage(String title, String body)\r\n {\r\n MyLogger.log(Level.INFO, \"Info message initiated. Info Title: {0}\", title);\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n alert.initOwner(currentStage);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(body);\r\n alert.showAndWait();\r\n }", "int insert(CommentLike record);", "public void printNotice(SourcePosition arg0, String arg1) {\n\n }", "public boolean addNotification(Notification notification) throws SQLException{\n// connection = Db.instance().getConnection();\n try{\n ps = connection.prepareStatement(\"INSERT INTO notification(user_email, text) VALUES (?,?)\");\n ps.setString(1,notification.getUserEmail());\n ps.setString(2,notification.getText());\n int res = ps.executeUpdate();\n return res==1;\n }\n finally {\n Db.close(ps);\n }\n }", "public PresenceNote createPresenceNote(String content, String lang);", "int insert(TSubjectInfo record);", "public void sendTitle ( String title , String subtitle , int fadeIn , int stay , int fadeOut ) {\n\t\tif ( Version.getServerVersion ( ).isNewerEquals ( Version.v1_11_R1 ) ) {\n\t\t\texecute ( handle -> handle.sendTitle ( title , subtitle , fadeIn , stay , fadeOut ) );\n\t\t} else {\n\t\t\tgetBukkitPlayerOptional ( ).ifPresent (\n\t\t\t\t\tplayer -> TitlesUtil.send ( player , title , subtitle , fadeIn , stay , fadeOut ) );\n\t\t}\n\t}", "public void insertNote(NewsModel data) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(NewsModel.COLUMN_SOURCE, data.getSourceName());\n values.put(NewsModel.COLUMN_AUTHOR, data.getAuthor());\n values.put(NewsModel.COLUMN_CONTENT, data.getContent());\n values.put(NewsModel.COLUMN_DESCRIPTION, data.getDescription());\n values.put(NewsModel.COLUMN_PUBLISHEDAT, data.getPublishedAt());\n values.put(NewsModel.COLUMN_TITLE, data.getTitle());\n values.put(NewsModel.COLUMN_URL, data.getUrl());\n values.put(NewsModel.COLUMN_URLTOIMAGE, data.getUrlToImage());\n // insert row\n long id = db.insert(NewsModel.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n }", "int insert(Discuss record);", "int insert(Comment record);", "@Override\r\n\tpublic DataWrapper<Void> addNotice(String token, Notice file) {\n\t\treturn null;\r\n\t}", "public void addContentNotification(ContentNotification contentNotification) {\n\n if (contentNotification != null) {\n\n SQLiteDatabase db = databaseSQLHelper.getWritableDatabase();\n addContentNotification(db, contentNotification);\n\n }\n }", "public void testInsertNoticeTest()\n {\n String time = \"2015-12-09 11:22:33\";\n\n double lat = 57.02;\n float latFloat = (float) lat;\n\n double lon = 9.54;\n float lonFloat = (float) lon;\n\n //Notice notice = new Notice(\"insertTest\", \"description\", \"testAddress\", time, latFloat, lonFloat);\n\n // Assert.assertEquals(1, dbNotice.insertNotice(notice));\n }", "public void insert(String TITLE,String BODY)\n {\n ContentValues initialValues = new ContentValues();\n\n initialValues.put(\"TITLE\", TITLE);\n initialValues.put(\"BODY\", BODY);\n\n db.insert(\"LISTS\", null, initialValues);\n }", "public String insertInfo(String title,String date,String details)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n\n try\n {\n String INSERT_DATA =\"INSERT INTO news_table(title,date,details)\"+\"VALUES('\"+title+\"','\"+date+\"','\"+details+\"')\";\n db.execSQL(INSERT_DATA);\n\n return \"Data Inserted Successfully!\";\n }\n catch (Exception ex)\n {\n return \"Error!! \"+ ex.getMessage();\n }\n\n }", "int insert(NewsFile record);", "private void mostrarNotificacion(String title, String body)\r\n {\r\n Intent intent = new Intent(this, MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);\r\n\r\n Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\r\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)\r\n .setSmallIcon(R.mipmap.ic_launcher)\r\n .setContentTitle(title)\r\n .setContentText(body)\r\n .setAutoCancel(true)\r\n .setSound(soundUri)\r\n .setContentIntent(pendingIntent);\r\n\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n notificationManager.notify(0/*ID de l notificación*/, notificationBuilder.build());\r\n }", "public void sendMsg(String address, String title, String content);", "int insert(Message record);", "@Override\n\tpublic void insert(String descrizione) throws SQLException {\n\t\tPreparedStatement ps=conn.prepareStatement(\"INSERT INTO categoria(descrizione) VALUES (?)\");\n\t\tps.setString(1, descrizione);\n\t\tps.executeUpdate();\n\t\t\n\t}", "public void updateNoticeDetails(int docNoticeID, String docNoticenDetails, String docNoticenTitle) {\n\n\t\tConnection myConn = null;\n\t\tPreparedStatement preStmt = null;\n\t\tResultSet myRs = null;\n\n\t\ttry {\n\t\t\tString sql = \"UPDATE doctornotice SET content = ? , title = ? WHERE noteid = ? \";\n\t\t\tmyConn = dbConn.returnConn();\n\t\t\tpreStmt = myConn.prepareStatement(sql);\n\n\t\t\tpreStmt.setString(1, docNoticenDetails);\n\t\t\tpreStmt.setString(2, docNoticenTitle);\n\t\t\tpreStmt.setInt(3, docNoticeID);\n\n\t\t\tpreStmt.execute();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tclose(myConn, preStmt, myRs);\n\t\t}\n\n\t}", "public NoteDataObject(String noteTitle, TextView noteContent){\n this.title = noteTitle;\n this.content = noteContent;\n }", "@Override\r\n\tpublic String insert() {\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doSave(admin)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"²åÈë\");\r\n\t\treturn SUCCESS;\r\n\t}", "void insertDetailCaptionByPost(Detail detail);", "int insert(UserCorporateComment record);", "public void insertChatMessage(String chatMessageID, String chatID, String replierStaffNo, String replierStudentID, String messageContent, String dateTimePosted)\n {\n if(replierStaffNo.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', null, '\"+replierStudentID+\"', '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n if(replierStudentID.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', '\"+replierStaffNo+\"', null, '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n }", "public void addPost(String ptitle,String pcontent,String uid,String cid) throws SQLException {\n\t\n\t\tString sql = \"insert into posts(ptype,ptitle,pcontent,uid,cid) \"+\n\t\t\t\t\t\t\"values(0,?,?,?,?)\";\n\t\t\n\tpreparedStatement = conn\n\t .prepareStatement(sql);\n\t\n\tpreparedStatement.setString(1, ptitle);\n\tpreparedStatement.setString(2, pcontent);\n\tpreparedStatement.setString(3, uid);\n\tpreparedStatement.setString(4, cid);\n\t\n\t\n\tpreparedStatement.executeUpdate();\n\tSystem.out.println(\"Post Added!\");\n}", "@Override\n\tpublic int insert(TNews record) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long insert(Map<String, String> msg) {\n\t\treturn 0;\n\t}", "String getNoticeFileContent();", "int insertSelective(ComplainNoteDO record);", "int insertSelective(AnnouncementDO record);", "int insert(ArticleDo record);", "private boolean showConfirmationMessage(String title, String body)\r\n {\r\n MyLogger.log(Level.INFO, \"Info message initiated. Info Title: {0}\", title);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n alert.initOwner(currentStage);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(body);\r\n ButtonType buttonTypeCancel = new ButtonType(\"Cancel\", ButtonData.CANCEL_CLOSE);\r\n ButtonType buttonTypeOK = new ButtonType(\"OK\", ButtonData.OK_DONE);\r\n alert.getButtonTypes().setAll(buttonTypeCancel, buttonTypeOK);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == buttonTypeOK)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User confirmed coin action\");\r\n return true;\r\n } else if (result.isPresent() && result.get() == buttonTypeCancel)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"User canceled coin Action\");\r\n return false;\r\n }\r\n return false;\r\n\r\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private void showNotification(String title, String body)\n {\n Intent intent = new Intent(this, LoginActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n Notification notification = new NotificationCompat.Builder(this, CHANNEL_ID)\n .setSmallIcon(R.drawable.ic_notification)\n .setContentTitle(title)\n .setContentText(body)\n .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.app_icon))\n .setPriority(NotificationCompat.PRIORITY_HIGH) // for lower than api 26\n .setContentIntent(pendingIntent)\n .setAutoCancel(true) // removes notification on click\n .build();\n\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\n notificationManager.notify(new Random().nextInt(), notification);\n }", "@Override\r\n\tpublic void noticeupds(Notice notice) {\n\t\tnoticeDao.noticeupd(notice);\r\n\r\n\t}", "int insert(Comments record);", "int insertSelective(CmsVoteTitle record);", "int insertSelective(MsgContent record);", "int insert(Subject record);", "void insert(TbMessage record);", "private void insertContentStatusRecord(PreparedStatement insert,\n Timestamp lastModifiedDate, String lastModifier, Integer stateid,\n String stateName, String title, String comment, boolean ispublic,\n int workflowappid, int historyid, int contentid, int revision)\n throws SQLException\n {\n // Setup for insert\n Timestamp now = new Timestamp(System.currentTimeMillis());\n insert.setString(I_ACTOR, \"RxFix\");\n insert.setNull(I_CHECKOUTUSERNAME, Types.VARCHAR);\n insert.setInt(I_CONTENTID, contentid);\n insert.setInt(I_CSHID, historyid);\n insert.setTimestamp(I_EVENTTIME, now);\n insert.setTimestamp(I_LASTMODIFIEDDATE, lastModifiedDate);\n insert.setString(I_LASTMODIFIER, lastModifier);\n insert.setInt(I_REVISION, revision);\n insert.setNull(I_ROLENAME, Types.VARCHAR);\n insert.setNull(I_SESSION, Types.VARCHAR);\n if (stateid == null)\n {\n insert.setNull(I_STATEID, Types.INTEGER);\n }\n else\n {\n insert.setInt(I_STATEID, stateid.intValue());\n }\n insert.setString(I_STATENAME, stateName);\n insert.setString(I_TITLE, title);\n insert.setString(I_TRANSITIONCOMMENT, comment);\n insert.setNull(I_TRANSITIONID, Types.INTEGER);\n insert.setNull(I_TRANSITIONLABEL, Types.VARCHAR);\n insert.setString(I_VALID, ispublic ? \"Y\" : \"N\");\n insert.setInt(I_WORKFLOWAPP, workflowappid);\n insert.execute();\n }", "public void sendNotification(String notifTitle, String notifText) {\n\n }", "public void insert(int pos, MConstText srcText) {\r\n replace(pos, pos, srcText, 0, srcText.length());\r\n }", "public void setTitle(String titleTemplate);", "void showTitle(String title);", "public com.walgreens.rxit.ch.cda.StrucDocTitleContent insertNewContent(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTitleContent target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTitleContent)get_store().insert_element_user(CONTENT$0, i);\n return target;\n }\n }", "@Override\r\n\tpublic void comment(String uname, String content) {\n\t\tSystem.out.println(uname + \"发表评论:\" + content);\r\n\t}", "public void assertTitle(final String title);", "int insertSelective(PublicDoctorNotice record);", "public long insertRecord(String title, String author, String description, String url,\n String image, String content) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n // `id` and `timestamp` will be inserted automatically.\n // no need to add them\n values.put(Record.COLUMN_TITLE, title);\n values.put(Record.COLUMN_AUTHOR, author);\n values.put(Record.COLUMN_DESCRIPTION, description);\n values.put(Record.COLUMN_URL, url);\n values.put(Record.COLUMN_IMAGE, image);\n values.put(Record.COLUMN_CONTENT, content);\n\n // insert row\n long id = db.insert(Record.TABLE_NAME, null, values);\n\n // close db connection\n db.close();\n\n // return newly inserted row id\n return id;\n }", "int insert(Article record);", "public static void showSuccessPopUp(String headerText, String contentText) {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.initStyle(StageStyle.UTILITY);\n alert.setTitle(\"Information\");\n alert.setHeaderText(headerText);\n alert.setContentText(contentText);\n\n alert.showAndWait();\n }", "public static void addNewNote(int tenantID, String noteName, String content) throws NotePersistenceException, RegistryException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n createNotesCollectionIfNotExists(userRegistry);\n String noteLocation = getNoteLocation(noteName);\n if (content == null) {\n content = \"[]\";\n }\n\n if (!userRegistry.resourceExists(noteLocation)) {\n Resource resource = userRegistry.newResource();\n resource.setContent(content);\n resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE);\n userRegistry.put(noteLocation, resource);\n } else {\n log.error(\"Cannot create new note with name \" + noteName +\n \" for tenant with tenant ID \" + tenantID + \" because note already exists\");\n throw new NotePersistenceException(\"Already a note exists with same name : \" + noteName +\n \" for tenantId :\" + tenantID);\n }\n }", "@Override\r\n\tpublic void getNotice(String message) {\n\t\tSystem.out.println(\"observerA get a message: \" + message);\r\n\t}", "int insert(UserTips record);", "@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/appendComment\")\n public void appendComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n if (belongTo == null || content == null || createdBy == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.publish(createdBy, belongTo, content));\n renderJson(mResult);\n }", "public Notice(String title, List<String> description, List<Link> links)\n {\n this.title = title;\n this.description = Collections.unmodifiableList(\n new ArrayList<>(Optional.ofNullable(description)\n .orElse(Collections.emptyList())));\n this.links = Collections.unmodifiableList(\n new ArrayList<>(Optional.ofNullable(links)\n .orElse(Collections.emptyList())));\n }" ]
[ "0.75467926", "0.70020616", "0.6744286", "0.6506302", "0.6497177", "0.6295939", "0.6271728", "0.62339324", "0.60748667", "0.6056538", "0.59321773", "0.5913646", "0.59072983", "0.5867167", "0.58287436", "0.5823741", "0.5786126", "0.57247597", "0.5707188", "0.5701555", "0.5693406", "0.56769973", "0.5641859", "0.5602597", "0.558933", "0.5586056", "0.5585948", "0.55824083", "0.5575357", "0.5564903", "0.5548356", "0.553745", "0.55135787", "0.55120933", "0.55000746", "0.5485614", "0.54829305", "0.5455662", "0.5444529", "0.54441476", "0.5438324", "0.5436507", "0.54289603", "0.54245824", "0.5396176", "0.5392275", "0.5382123", "0.53640676", "0.53495425", "0.5335015", "0.53320616", "0.53300613", "0.532024", "0.5315304", "0.5311662", "0.5306431", "0.52935934", "0.52832836", "0.527372", "0.52708364", "0.5269582", "0.5267263", "0.5264177", "0.5262089", "0.52609867", "0.52564716", "0.5253543", "0.52527046", "0.52512556", "0.5248879", "0.52407134", "0.5238616", "0.52360225", "0.5234231", "0.5218785", "0.5217281", "0.52143013", "0.51885766", "0.5186681", "0.51865375", "0.51790386", "0.51785916", "0.5176216", "0.5176056", "0.5170498", "0.5169146", "0.51633394", "0.5156307", "0.5155654", "0.5151534", "0.51459754", "0.51389295", "0.5138545", "0.51273793", "0.51168543", "0.5111953", "0.51100147", "0.5109145", "0.5107637", "0.510227" ]
0.77376705
0
We also implement the other two functions because we have to
@Override public void afterTextChanged(Editable s) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "public abstract void mo56925d();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected abstract Set method_1559();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "double passer();", "@Override\n protected void getExras() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void skystonePos2() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void skystonePos4() {\n }", "public abstract String mo9239aw();", "public abstract int mo9754s();", "abstract int pregnancy();", "public abstract String mo41079d();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public abstract void mo27386d();", "double defendre();", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public abstract Object mo26777y();", "private void m50366E() {\n }", "public abstract void mo27385c();", "@Override\n public void memoria() {\n \n }", "public abstract String mo118046b();", "public abstract void mo6549b();", "public final void mo51373a() {\n }", "Operations operations();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract String mo13682d();", "abstract void uminus();", "public void method_4270() {}", "void mo57277b();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo35054b();", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public abstract Object mo1771a();", "public abstract long mo9229aD();", "public void skystonePos6() {\n }", "public void mo38117a() {\n }", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "public abstract void mo30696a();", "public void mo4359a() {\n }", "public abstract int mo123248g();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public void skystonePos3() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "StackManipulation cached();", "public void leerAlimentos();", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void mo2624j();", "private void searchFunction() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "public abstract String mo9238av();", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "abstract String mo1748c();", "public abstract boolean mo9234ar();", "protected boolean func_70041_e_() { return false; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract String mo11611b();", "void mo57278c();", "public abstract String mo9751p();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void skystonePos5() {\n }", "public abstract void afvuren();", "public abstract int mo9753r();" ]
[ "0.6196727", "0.6027013", "0.5984274", "0.57535857", "0.57334566", "0.57334566", "0.5702579", "0.56713706", "0.5658458", "0.5552292", "0.55450517", "0.55258656", "0.5523861", "0.55170774", "0.55170774", "0.5512103", "0.550876", "0.55018073", "0.5498003", "0.5494716", "0.5484189", "0.5464863", "0.54449546", "0.5444168", "0.5438726", "0.5424082", "0.54123104", "0.5412186", "0.5412186", "0.54027206", "0.54003036", "0.5398178", "0.5387424", "0.53645986", "0.5359486", "0.5346952", "0.53397167", "0.5334316", "0.5330971", "0.53268766", "0.5314879", "0.5289021", "0.527646", "0.5271371", "0.5269774", "0.5265973", "0.5255831", "0.52451736", "0.52403593", "0.52377534", "0.5237124", "0.52370334", "0.5234481", "0.52315897", "0.52309096", "0.5219164", "0.5209946", "0.5207525", "0.52073723", "0.520666", "0.51928276", "0.51900554", "0.5187678", "0.51867306", "0.5169715", "0.5162632", "0.5161439", "0.5158096", "0.51517797", "0.5147382", "0.5143162", "0.51338047", "0.5129904", "0.5119549", "0.5119094", "0.51174414", "0.51159745", "0.5106925", "0.5102851", "0.5092478", "0.5091352", "0.50907326", "0.5084004", "0.5078543", "0.50784796", "0.5076653", "0.50738734", "0.5073206", "0.5062108", "0.5059476", "0.5047831", "0.5045353", "0.5042369", "0.5036765", "0.503676", "0.503217", "0.5009005", "0.50049275", "0.50039625", "0.50036013", "0.50021976" ]
0.0
-1
Metodo che controlla se tutti i campi sono stati riempiti.
private Boolean isValidInput(final String username, final String password) { if (username.isEmpty() || password.isEmpty()) { ShowAlert.showMessage("Riempire i campi lasciati vuoti.", AlertType.ERROR); return false; } else { Validazione checkUsername = ValidazioneFactory .getValidazione(TipoValidazione.USERNAME); Validazione checkPassword = ValidazioneFactory .getValidazione(TipoValidazione.PASSWORD); if (!checkUsername.valida(username) || !checkPassword.valida(password)) { if (ShowAlert.showMessage( "Formato username o password non valido", AlertType.ERROR)) { usernameText.clear(); passwordText.clear(); } return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void eventoUscitaCampoModificato(Campo campo) {\n /* variabili e costanti locali di lavoro */\n Campo unCampo;\n\n try { // prova ad eseguire il codice\n\n /* quando si modifica il campo data inizio modifica\n * il campo data fine */\n if (campo.equals(this.getCampo(nomeDataIni))) {\n unCampo = this.getCampo(nomeDataFine);\n unCampo.setValore(campo.getValore());\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}", "private void validarCampos() {\n }", "@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "private void limpiarCampos() {\n datoCriterio1.setText(\"\");\n ((DefaultTableModel)this.jTable1.getModel()).setRowCount(0);\n jBConcretarAccion.setEnabled(false);\n jBCancelar.setEnabled(false);\n jLObjetoSeleccionado.setText(\"\");\n this.unObjetoSeleccionado = null;\n }", "public void LimpiarCampos() {\n\n txtIdAsignarPer.setText(\"\");\n txtNombreusu.setText(\"\");\n pswConfCont.setText(\"\");\n combPerf.setSelectedItem(\"\");\n pswContra.setText(\"\");\n txtDocumento.setText(\"\");\n }", "private boolean camposValidos() {\n boolean valido = false;\n\n if (txtInfectados.getText().equals(\"\")\n || txtFecha.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Rellene todos los campos\");\n } else {\n valido = true;\n }\n\n return valido;\n }", "public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "private void limpaCampos() {\n txtNome.setText(\"\");\n txtRG.setText(\"\");\n txtFCpf.setText(\"\");\n txtFNascimento.setText(\"\");\n txtEmail.setText(\"\");\n txtFCelular.setText(\"\");\n txtFTelefone.setText(\"\");\n txtRua.setText(\"\");\n txtComplemento.setText(\"\");\n txtFCep.setText(\"\");\n txtBairro.setText(\"\");\n txtCidade.setText(\"\");\n }", "public void limpiarCampos()\n {\n jtfNumero.setText(\"\");\n jtfNombre.setText(\"\");\n jtfSaldo.setText(\"\");\n this.jbEliminar.setEnabled(false);\n }", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }", "private void fillMandatoryFields() {\n\n }", "private boolean validarCampos() {\r\n\t\tif (cedula.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || telefono.equals(\"\")) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean campiVuoti(){\n return nomeVarTextField.getText().equals(\"\") || tipoVarComboBox.getSelectedIndex() == -1;\n }", "public boolean controllaCampi() {\r\n\r\n\t\tboolean valor = true;\r\n\r\n\t\tif (nameText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tnameText.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\tnameText.setBackground(Color.WHITE);\r\n\t\t}\r\n\t\tif (mailtextField.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tmailtextField.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tmailtextField.setBackground(Color.WHITE);\r\n\r\n\t\tif (cognomeText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tcognomeText.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tcognomeText.setBackground(Color.WHITE);\r\n\r\n\t\tif (etàText.getText().equals(\"\")) {\r\n\t\t\tvalor = false;\r\n\t\t\tetàText.setBackground(Color.GREEN);\r\n\t\t} else\r\n\t\t\tetàText.setBackground(Color.WHITE);\r\n\r\n\t\tif (!(alta.isSelected() || media.isSelected() || bassa.isSelected())) {\r\n\r\n\t\t\tvalor = false;\r\n\t\t\talta.setBackground(Color.GREEN);\r\n\t\t\tmedia.setBackground(Color.GREEN);\r\n\t\t\tbassa.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\talta.setBackground(getBackground());\r\n\t\t\tmedia.setBackground(getBackground());\r\n\t\t\tbassa.setBackground(getBackground());\r\n\r\n\t\t}\r\n\r\n\t\tif (!(sexM.isSelected() || sexF.isSelected())) {\r\n\t\t\tvalor = false;\r\n\t\t\tsexM.setBackground(Color.GREEN);\r\n\t\t\tsexF.setBackground(Color.GREEN);\r\n\t\t} else {\r\n\t\t\tsexM.setBackground(getBackground());\r\n\t\t\tsexF.setBackground(getBackground());\r\n\t\t}\r\n\r\n\t\tif (CFText.getText().equals(\"\")) {\r\n\t\t\tCFText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\tCFText.setBackground(Color.WHITE);\r\n\r\n\t\tif (pesoText.getText().equals(\"\")) {\r\n\t\t\tpesoText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\tpesoText.setBackground(Color.WHITE);\r\n\r\n\t\tif (altezzaText.getText().equals(\"\")) {\r\n\t\t\taltezzaText.setBackground(Color.GREEN);\r\n\t\t\tvalor = false;\r\n\t\t} else\r\n\t\t\taltezzaText.setBackground(Color.WHITE);\r\n\r\n\t\treturn valor;\r\n\t}", "private void limpiarCampos() {\n campoNombre.setText(\"\");\n campoNumLibro.setText(\"\");\n campoNumPagina.setText(\"\");\n }", "private boolean validarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un numero de cedula\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtNombre.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un nombre\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtApellidos.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese los apellidos\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtCorreo.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el correo\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!Utilidades.validarEmailFuerte(txtCorreo.getText().trim())) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un correo valido\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtDireccion.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese la direccion\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtTelefono.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el numero de telefono\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtUsuario.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el nombre de usuario\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtContrasenia.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese una contraseña\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean comprobarCampos(){\n if(jTextField1.getText().isEmpty() || jTextField2.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"No se debe dejar campos en blanco\", \n \"ERROR: campos en blanco\", JOptionPane.ERROR_MESSAGE);\n }\n if (jComboBox1.getSelectedIndex() == 0|| entrenador.getNacionalidad().equals(\"\")){\n JOptionPane.showMessageDialog(this, \"Debes indicar un pais\", \"ERROR: Nacionalidad incorrecta\", \n JOptionPane.ERROR_MESSAGE);\n return false;\n }\n if(jXDatePicker1.getDate() == null){\n JOptionPane.showMessageDialog(this, \"Debes indicar una fecha de nacimiento\", \n \"ERROR: Fecha de nacimiento vacía\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n return true;\n }", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "public boolean validarCampos(){\n String nome = campoNome.getText().toString();\n String descricao = campoDescricao.getText().toString();\n String valor = String.valueOf(campoValor.getRawValue());\n\n\n if(!nome.isEmpty()){\n if(!descricao.isEmpty()){\n if(!valor.isEmpty() && !valor.equals(\"0\")){\n return true;\n }else{\n exibirToast(\"Preencha o valor do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha a descrição do seu serviço\");\n return false;\n }\n }else{\n exibirToast(\"Preencha o nome do seu serviço\");\n return false;\n }\n }", "@Override\n protected void eventoUscitaCampo(Campo campo) {\n\n try { // prova ad eseguire il codice\n\n if (campo.getNomeInterno().equals(nomeConto)) {\n this.setCodConto((Integer)campo.getValore());\n this.regolaCamera();\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "private boolean verificarCamposVacios() {\n \n boolean bandera = false; // false = campos no vacios\n \n if(this.jTextFieldDigiteCodigo.getText().equals(\"\") || this.jTextFieldDigiteCodigo.getText().equals(\"Digite Código\"))\n {\n mostrarError(jLabelErrorDigiteCodigo, \"Rellenar este campo\",jTextFieldDigiteCodigo);\n bandera=true;\n }\n return bandera;\n }", "private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }", "private void limpiarCampos() {\n\t\tthis.campoClave.setText(\"\");\n\t\tthis.campoClaveNueva.setText(\"\");\n\t\tthis.campoClaveRepita.setText(\"\");\n\t}", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void LimpiarCampos(){\n txtNombre.setText(\"\");\n txtCantidad.setText(\"0\");\n txtMora.setText(\"0\");\n txtDescuento.setText(\"0\");\n this.IDactual=0;\n this.modo=\"agregar\";\n }", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "private void limpaCampos() {\r\n\t\tnome.setText(\"\");\r\n\t\tsituacao.setSelectedIndex(0);\r\n\t\tidade.setText(\"\");\r\n\t\terroNome.setText(\"\");\r\n\t\terroIdade.setText(\"\");\r\n\t}", "private void limparCampos() {\n\t\ttxtCidade.setText(\"\");\n\t\tlblId.setText(\"0\");\n\t\tcboEstado.getSelectionModel().select(0);\n\t}", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public void limpiarCampos() {\n jtCargo.setText(\"\");\n jtCiudadNacimiento.setText(\"\");\n jtCorreo.setText(\"\");\n jtDepartamento.setText(\"\");\n jtDireccion.setText(\"\");\n jtDocumento.setText(\"\");\n jtMovil.setText(\"\");\n jtPrimerApellido.setText(\"\");\n jtPrimerNombre.setText(\"\");\n jtProfesion.setText(\"\");\n jtSegundoApellido.setText(\"\");\n jtSegundoNombre.setText(\"\");\n jtTelefono.setText(\"\");\n jtDocumento.setEnabled(true);\n jdFechaContratacion.setEnabled(true);\n jcTipoDocumento.setSelectedIndex(0);\n jcTipoSangre.setSelectedIndex(0);\n jcTipoContrato.setSelectedIndex(0);\n cjFactorRH.setSelectedIndex(0);\n jdFechaNacimiento.setDate(null);\n jdFechaTitulacion.setDate(null);\n jdFechaContratacion.setDate(null);\n\n repaint();\n }", "public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}", "private void deshabilitarCamposCrear() {\n txtCodBockFoto.setEnabled(false);\n txtCodBockFoto.setText(\"\");\n\n txtCodPromotor.setEnabled(false);\n txtCodPromotor.setText(\"\");\n txtDNIPromotor.setText(\"\");\n\n //limpiarListaCrear();\n }", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "private boolean validateFields() {\r\n\t\tif (txUsuario.getText().equals(\"\") || txPassword.getText().equals(\"\")\r\n\t\t\t\t|| checkAdmin.isIndeterminate()|| checkTPV.isIndeterminate())\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getNome())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataCadastro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getSexo())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getRG())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isObjectNotNull(this.getPaciente().getRG()) && this.getPaciente().getRG() < 0) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG015\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isCPFValido(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG006\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isCPFValido(this.getPaciente().getCPF()) && isPacienteCadastrado(this.getPaciente())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG017\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getEndereco())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getBairro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getCidade())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getUF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataNascimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isTelefoneValido(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}", "private void rellenarCampos() {\n\t\tjfad.lbModCurso.setVisible(true);\n\t\tper = modelo.obtenerPeriodo(\n\t\t\t\tInteger.parseInt(jfad.tPeriodos.getValueAt(jfad.tPeriodos.getSelectedRow(), 0).toString()));\n\t\tjfad.dPDiaIniMod.setDate(per.getDia_inicio());\n\t\tjfad.dPDiaFinMod.setDate(per.getDia_fin());\n\t\tjfad.tPHoraInicioMod.setTime(per.getHora_inicio());\n\t\tjfad.tPHoraFinMod.setTime(per.getHora_fin());\n\t\tString intervalo = per.getIntervalo().toString();\n\t\tSystem.out.println(intervalo);\n\t\tint intervalo2 = Integer.parseInt(intervalo.substring(3));\n\t\tjfad.spIntervaloMod.setValue(intervalo2);\n\t\tif (per.getHabilitado())\n\t\t\tjfad.checkHabilitado.setSelected(true);\n\t}", "final void habilitarcampos(boolean valor){\n TXT_CodCliente.setEnabled(valor);\n TXT_Aparelho.setEnabled(valor);\n TXT_Valor.setEnabled(valor);\n TXT_Informacao.setEnabled(valor); \n TXT_CodServico.setEnabled(valor); \n TXT_Clientes.setEnabled(valor); \n TXT_Serial.setEnabled(valor);\n TXT_Data.setEnabled(valor);\n}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "void validateActivoUpdate(Activo activo);", "public boolean validateData(){\n boolean dataOk=true;\n if (etName.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Name field is void.\");\n dataOk=false;\n }\n if (etSurname.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Surname field is void.\");\n dataOk=false;\n }\n if (etDescription.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Description field is void.\");\n dataOk=false;\n }\n return dataOk;\n }", "private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }", "private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "public boolean validarCampos(Admin admin) {\r\n\t\tStringBuilder inconsistencias = new StringBuilder();\r\n\t\tif (admin.getNome().equals(\"\") || admin.getNome() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Nome obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getSobrenome().equals(\"\") || admin.getSobrenome() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Sobrenome obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getUsuario().equals(\"\") || admin.getUsuario() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Usuario obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getEmail().equals(\"\") || admin.getEmail() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Email obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getCpf().equals(\"\") || admin.getCpf() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo CPF obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getSenha().equals(\"\") || admin.getSenha() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Senha obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getConfirmarSenha().equals(\"\") || admin.getConfirmarSenha() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Confirmar Senha obrigatório\");\r\n\t\t}\r\n\t\tif (admin.getDataNascimento() == null) {\r\n\t\t\tinconsistencias.append(\"\\n Campo Data obrigatório\");\r\n\t\t}\r\n\t\tif (inconsistencias.length() == 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(inconsistencias.toString());\r\n//\t\t\tlbMsg.setVisible(true);\r\n\t\t\tlbMsg.setText(inconsistencias.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }", "public boolean validarCampos() {\n\t\tboolean valid = true;\n\t\t\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getData())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioInicioAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioFimAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\tif(valid) {\n\t\t\tif(this.getAgendaMedicoDAO().verificaAgendamentoHorario(this.getMedicoSessao(), this.getAgendaMedico())) {\n\t\t\t\tthis.tratarMensagemErro(null, \"MSG014\");\n\t\t\t\tvalid = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}" ]
[ "0.62012005", "0.6095601", "0.6069044", "0.60639346", "0.5962531", "0.5914476", "0.58872056", "0.58816266", "0.58784735", "0.57786804", "0.57055473", "0.569193", "0.56913835", "0.5641261", "0.56401026", "0.56396425", "0.56350327", "0.5630165", "0.5587968", "0.55799717", "0.5562768", "0.5544544", "0.5535613", "0.55271333", "0.55268997", "0.5523341", "0.5514985", "0.5509449", "0.55046564", "0.5502772", "0.5499812", "0.54958117", "0.54756916", "0.5471468", "0.54631054", "0.545371", "0.5452772", "0.5452579", "0.5452309", "0.54435015", "0.5441405", "0.54357904", "0.54142714", "0.5401875", "0.5393058", "0.5391435", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5381611", "0.5346704", "0.53432065", "0.53385895", "0.5336452", "0.5332518", "0.53243905", "0.532259", "0.5320402", "0.5315887", "0.53055453", "0.5302901", "0.53024286", "0.5296431", "0.5292584", "0.52922755", "0.5272873", "0.5271714", "0.526901", "0.5261667" ]
0.0
-1
Invia una richiesta di login al front controller.
private void login() { AnonimoTO dati = new AnonimoTO(); String username = usernameText.getText(); String password = passwordText.getText(); if (isValidInput(username, password)) { dati.username = username; dati.password = password; ComplexRequest<AnonimoTO> request = new ComplexRequest<AnonimoTO>("login", RequestType.SERVICE); request.addParameter(dati); SimpleResponse response = (SimpleResponse) fc.processRequest(request); if (!response.getResponse()) { if (ShowAlert.showMessage( "Username o password non corretti", AlertType.ERROR)) { usernameText.clear(); passwordText.clear(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Response login() {\n return login(\"\");\n }", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "protected void login() {\n\t\t\r\n\t}", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Action(value = \"userAction_login\", results = {\n\t\t\t@Result(name = \"login-error\", location = \"/login.jsp\"),\n\t\t\t@Result(name = \"login-ok\", type = \"redirect\", location = \"/index.jsp\"),\n\t\t\t@Result(name = \"login-params-error\", location = \"/login.jsp\") })\n\t@InputConfig(resultName = \"login-params-error\")\n\tpublic String login() {\n\t\tremoveSessionAttribute(\"key\");\n\t\ttry {\n\t\t\t// 1.获取subject对象\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t// 2.获取令牌对象(封装参数数据)\n\t\t\tUsernamePasswordToken token = new UsernamePasswordToken(\n\t\t\t\t\tmodel.getEmail(), model.getPassword());\n\t\t\tsubject.login(token);\n\t\t\treturn \"login-ok\";\n\t\t} catch (AuthenticationException e) {\n\t\t\te.printStackTrace();\n\t\t\tthis.addActionError(this.getText(\"login.emailorpassword.error\"));\n\t\t\treturn \"login-error\";\n\t\t}\n\t}", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "void redirectToLogin();", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public static void login() {\n\t\trender();\n\t}", "public String onLogin() {\n final HttpServletRequest request = (HttpServletRequest) getFacesContext()\n .getExternalContext().getRequest();\n try {\n request.login(getModel().getUsername(), getModel().getPassword());\n } catch (final ServletException e) {\n log.debug(\"Bad authentication for login \"\n + getModel().getUsername(), e);\n getFacesMessages().warn(AppMessageKey.VIEW_LOGIN_ERROR);\n return \"\";\n }\n IView viewId;\n if (getSecurityContext().isUserInSecurityRole(SecurityRole.ADMIN)) {\n viewId = View.ADMIN_ACCESS;\n } else if (getSecurityContext()\n .isUserInSecurityRole(SecurityRole.GUEST)) {\n viewId = View.GUEST_ACCESS;\n } else {\n viewId = View.INDEX;\n }\n // Fire login event.\n event.fire(new LoginEvent(new SecurityUser(getModel()\n .getUsername())));\n // Fire render view event.\n return fireEventRenderView(viewId).getId();\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }", "public void login(ActionEvent event) throws IOException {\n\t\t//if user is admin, open admin screen\n\t\tif(username.getText().toLowerCase().equals(\"admin\")) {\n\t\t\t//open admin screen\n\t\t\tMain.changeScene(\"/view/admin.fxml\", \"Administrator Dashboard\");\t\t\t\n\t\t}\n\t\t//if user is blank, throw error\n\t\telse if(username.getText().isEmpty()){\n\t\t\tinvalidUserError.setVisible(true);\n\t\t}\n\t\t//otherwise make sure user exists and if they do set current user and change screen, if not throw error.\n\t\telse {\n\t\t\tfor(User user : UserState.getAllUsers()) {\n\t\t\t\tif(user.getUserName().toLowerCase().equals(username.getText().toLowerCase())) {\n\t\t\t\t\tUserState.setCurrentUser(user);\n\t\t\t\t\tMain.changeScene(\"/view/userhome.fxml\", \"User Home\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tinvalidUserError.setVisible(true);\n\t\t\tusername.setText(\"\");\n\t\t}\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public void loginButtonAction() {\n String username = usernameTextField.getText();\n String pass = passwordField.getText();\n\n if(checkFields()){\n if(am.login(username, pass)){\n LoginDetails.currentAdmin = am.getAdmin();\n try {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n Stage stage = new Stage();\n Parent parent = FXMLLoader.load(getClass().getResource(\"/app/main/MainView.fxml\"));\n stage.setResizable(true);\n stage.setTitle(\"Admin Application\");\n stage.setScene(new Scene(parent, screenSize.getWidth() * 0.9, screenSize.getHeight() * 0.9));\n stage.show();\n\n Stage thisStage = (Stage) usernameTextField.getScene().getWindow();\n thisStage.close();\n\n stage.setOnCloseRequest(e -> {\n System.err.println(\"Main: Shutting down!\");\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n setInfoMessage(\"Wrong username and/or password\", true);\n }\n }\n else{\n setInfoMessage(\"You have to enter username/password\", true);\n }\n }", "RequestResult loginRequest() throws Exception;", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public final void login() {\n Activity_ExtensionKt.hideSoftKeyboard(this);\n if (hasAllRequiredField()) {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n String obj = editText.getText().toString();\n if (obj != null) {\n this.username = StringsKt.trim((CharSequence) obj).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n String obj2 = editText2.getText().toString();\n if (obj2 != null) {\n this.password = StringsKt.trim((CharSequence) obj2).toString();\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n EditText editText3 = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText3, \"etUserName\");\n String obj3 = editText3.getText().toString();\n EditText editText4 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText4, \"etPassword\");\n loginViewModel.login(obj3, editText4.getText().toString());\n return;\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n throw new TypeCastException(\"null cannot be cast to non-null type kotlin.CharSequence\");\n }\n }", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@RequestMapping(\"login\")\r\n\tpublic String loginUser() {\n\t\treturn \"login\";\r\n\t}", "Login() { \n }", "public static Result login() {\n String csrfToken = \"\";\n return serveAsset(\"\");\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "public login() {\n initComponents();\n \n \n }", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public boolean loginUser();", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "@FXML\n\tvoid login(ActionEvent event) throws IOException {\n\t\tMessage messageToServer = new Message();\n\t\tString userName = txtUserName.getText();\n\t\tString password = txtPassword.getText();\n\t\t// check that user put details\n\t\tif (userName.trim().isEmpty() || password.trim().isEmpty())\n\t\t\tlblErr.setText(\"User Name or Password is missing\");\n\t\telse {\n\t\t\tlblErr.setText(\"\");\n\t\t\t// create new Message object with the request\n\t\t\tmessageToServer.setMsg(userName + \" \" + password);\n\t\t\tmessageToServer.setOperation(\"isUserExists\");\n\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t// the result User instance\n\t\t\tuser = (User) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t// user isn't exists in DB\n\t\t\tif (user == null) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User Name or Password is incorrect\");\n\t\t\t}\n\t\t\t// user already log in\n\t\t\telse if (user.isLogedIN() == true) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User already logged in\");\n\t\t\t} else { // user logged in successfully\n\t\t\t\tmessageToServer.setMsg(userName);\n\t\t\t\tmessageToServer.setOperation(\"updateConnectionStatus\");\n\t\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t\t// update the user's connection status\n\t\t\t\tClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t\t// navigate user to the right home page, by his permission\n\t\t\t\tswitch (user.getUserType()) {\n\t\t\t\tcase STUDENT:\n\t\t\t\t\tNavigator.instance().navigate(\"StudentHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEACHER:\n\t\t\t\t\tNavigator.instance().navigate(\"TeacherHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase PRINCIPAL:\n\t\t\t\t\tNavigator.instance().navigate(\"PrincipalHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\t} // end switch case\n\t\t\t}\n\t\t}\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "@FXML\r\n\tpublic void handleLoginButton() throws IOException{\r\n\t\tString username = tfUsernameLogin.getText();\r\n\t\tString password = pfPasswordLogin.getText();\r\n\t\tuserCred = theController.isValidUser(username, password);\r\n\t\tif(userCred.equals(\"manager\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(false);\r\n\t\t\tteamScreen.setDisable(false);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse if(userCred.equals(\"employee\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(true);\r\n\t\t\tteamScreen.setDisable(true);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlbAlertLogin.setTextFill(Color.RED);\r\n\t\t\tlbAlertLogin.setText(userCred);\r\n\t\t}\r\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "@FXML\r\n\tprivate void volverLogin(ActionEvent event) throws IOException {\r\n\r\n\t\tMain_App.showLoginView();\r\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n public String login(Principal principal) { \n return principal == null ? \"login\" : \"index\";\n }", "public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void login(String username,String password){\n\n }", "@FXML\n\tprivate void onLogin(ActionEvent event) throws IOException {\n\t\tif (!username.getText().equals(\"\") && !password.getText().equals(\"\")) {\n\t\t\tUserCommunication clientCom = new UserCommunication();\n\t\t\tSession client = clientCom.login(username.getText(), password.getText());\n\t\t\t\n\t\t\tif(client != null) { \n\t\t\t\t// login good\n\t\t\t\tparent.createSession(client);\n\t\t\t\tparent.populateProfileDatas();\n\t\t\t\tparent.goToHome();\n\t\t\t\tparent.changeContextualMenu(TypeMenu.CONNECTED);\n\t\t\t\tusername.clear();\n\t\t\t\tpassword.clear();\n\t\t\t\t\n\t\t\t\t// load favorites\n\t\t\t\tArrayList<SearchFavorite> sf = new SearchFavoriteDAO().findByUserId(client.getUser().getID());\n\t\t\t\tparent.setFavorites(sf);\n\t\t\t\tparent.populateSearcheScrollPane();\n\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// login failed\n\t\t\t\tMessage.show(\"Erreur\", \"Authentification échouée\", AlertType.INFORMATION);\n\t\t\t}\n\t\t} else {\n\t\t\tMessage.show(\"Erreur au niveau du formulaire\", \"Veuillez remplir le formulaire convenablement.\", AlertType.WARNING);\n\t\t}\n\t}", "public void StartLogIn(){\n\t}", "@GetMapping(\"/loginForm\")\n\t\tpublic String login() {\n\t\t\treturn\"user/loginForm\";\n\t\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "public void login(User user);", "public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"new_user\");\n if(new_user != null){\n return ok(login.render(username,password));\n } else {\n Skier s=Session.authenticate(username,password);\n if(s==null){\n return badRequest(index.render(\"Invalid Username or Password\"));\n } else {\n login(s);\n return redirect(\"/home\");\n }\n }\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "@FXML\n protected void viewLoginPage() {\n \tLoginVistaNavigator.loadVista(LoginVistaNavigator.LOGIN);\n }", "void loginAttempt(String email, String password);", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "void login(String user, String password);", "private void loadLogin() throws IOException{\n FXMLLoader loginLoader = new FXMLLoader(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/loginregisterform.fxml\"));\n Parent login = loginLoader.load();\n String cssDoc = getClass().getResource(\"/com/slackers/inc/Boundary/CSS/custom.css\").toExternalForm();\n login.getStylesheets().add(cssDoc);\n\n LoginController loginController = loginLoader.getController();\n loginController.setMainController(this);\n\n Stage stage = new Stage();\n stage.setTitle(\"Login or Signup\");\n stage.setScene(new Scene(login));\n stage.showAndWait();\n\n\n if (userController.getUser().getEmail() == null || userController.getUser().getEmail().equals(\"\")\n || userController.getUser().getPassword() == null || userController.getUser().getPassword().equals(\"\")) {\n Platform.exit();\n System.exit(1);\n }\n\n programPref.put(\"email\", userController.getUser().getEmail());\n try {\n programPref.put(\"password\", CryptoTools.encrypt(userController.getUser().getPassword(), programPref));\n } catch (GeneralSecurityException | IOException e) {\n e.printStackTrace();\n Notifications.create().title(\"Username Not Saved\").text(\"Could not save username and password for reiterations. Please try again later.\").showError();\n System.out.println(\"Could not save username and password for reiterations\");\n }\n\n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public abstract boolean showLogin();", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "public void Login(ActionEvent event) throws Exception{\r\n Login();\r\n }", "@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public String loginAction() throws Exception {\n\t\t\t\t\n\t return \"builder\";\n\t }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void LoginButton() {\n\t\t\r\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@FXML\n void doLogin(ActionEvent event) {\n try {\n loginModel.doLogin(new Login(textFieldUsername.getText(), passwordFieldPassword.getText()));\n } catch (WrongCredentialsException e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Wrong username or password\");\n alert.showAndWait();\n } catch (Exception e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Cannot load application. Goodbye!\");\n alert.showAndWait();\n Platform.exit();\n } finally {\n textFieldUsername.clear();\n passwordFieldPassword.clear();\n }\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }" ]
[ "0.7604132", "0.7584374", "0.737912", "0.72724336", "0.72276217", "0.7202528", "0.71939903", "0.7113412", "0.699401", "0.6969792", "0.694025", "0.69269216", "0.68990785", "0.68945", "0.68940485", "0.68652683", "0.68622726", "0.6848183", "0.68315476", "0.6823511", "0.6805394", "0.6786899", "0.6778975", "0.6764648", "0.6761185", "0.67597616", "0.6733537", "0.670985", "0.6697179", "0.6686331", "0.6662092", "0.6660506", "0.6650062", "0.6629057", "0.6620406", "0.6617623", "0.66006833", "0.65953463", "0.6593716", "0.6578978", "0.65638095", "0.6563635", "0.65623134", "0.6562218", "0.65609425", "0.65487075", "0.65464884", "0.65463895", "0.6543008", "0.65311706", "0.6528776", "0.6527628", "0.65253663", "0.6524246", "0.6521982", "0.65175736", "0.6512442", "0.65097815", "0.65060526", "0.6501886", "0.65003735", "0.64795834", "0.6476475", "0.6473118", "0.64672357", "0.6466828", "0.64537627", "0.64532834", "0.6433351", "0.6424461", "0.6423023", "0.6421935", "0.64172953", "0.64095324", "0.64084363", "0.6408039", "0.64075655", "0.6406342", "0.63939285", "0.6392369", "0.6390879", "0.6390141", "0.63816565", "0.63731164", "0.6369184", "0.63664097", "0.6364123", "0.636356", "0.6350724", "0.6348366", "0.6348122", "0.63302237", "0.6328958", "0.6324448", "0.6311452", "0.6308972", "0.6308409", "0.6305549", "0.6303698", "0.62970054" ]
0.6752176
26
clicking refresh button after Internet Connection was lost
public void refreshNet(View view) { ll.setVisibility(View.GONE); getMovies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRefresh() {\n if (isNetworkAvailable2()) {\n //Reloading the latest kernel and rom.\n ArrayList<String> fileArray = new ArrayList<>();\n srl.setRefreshing(true);\n getNXVersionFromURL();\n soldierRomCheck(fileArray);\n } else {\n //If there is no Internet Connection, sending you back to InternetCheck activity.\n Intent a = new Intent(MainActivity.this, InternetCheck.class);\n startActivity(a);\n }\n }", "public void refreshPage() {\n WebDriverManager.getDriver().navigate().refresh();\n waitForPageToLoad();\n }", "void connectionLost() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.VISIBLE);\n }", "@Override\n\t\t\tpublic void onRefreshClick() {\n\t\t\t\thttpRefreshMethod();\n\t\t\t}", "void clickOnRefreshButton() {\n\t\tSeleniumUtility.clickOnElement(driver, homepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning);\n\t}", "public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "@Override\n\t\tpublic void onRefresh() {\n\t\t\thttpRefreshMethod();\n\t\t}", "public void refresh()\n\t{\n\t\t\tConnectivityManager connMgr = (ConnectivityManager)\n\t\t getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\t\t if (networkInfo != null && networkInfo.isConnected()) {\n\t\t // fetch data\n\t\t \tDownloadXmlTask task = new DownloadXmlTask();\n\t\t task.execute(\"http://api.androidhive.info/pizza/?format=xml\");\n\t\t \t\n\t\t\t\t\n\t\t } else {\n\t\t // display error\n\t\t \tLog.v(\"Network\", \"Error: Network is not available\");\n\t\t\t \n\t\t }\n\t}", "void onInternetConnectionLost();", "@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }", "private void retryOnline() {\n setContentView(R.layout.activity_retry);\n Button retryButton = this.findViewById(R.id.retryButton);\n\n retryButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (isOnline()) {\n recreate();\n }\n }\n });\n }", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "public static void refreshPage() {\n\t\tLOG.info(\"Refreshing current page.\");\n\t\tConstants.driver.navigate().refresh();\n\n\t}", "public void onRefresh() {\n\n //detect if there's a connection issue or not: if there's a connection problem stop refreshing and show message\n if (cM.getActiveNetworkInfo() == null) {\n Toast toast = Toast.makeText(getBaseContext(), R.string.no_internet, Toast.LENGTH_SHORT);\n toast.show();\n swiperefresh.setRefreshing(false);\n\n } else {\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n DOMParser tmpDOMParser = new DOMParser();\n fFeed = tmpDOMParser.parseXml(feedURL);\n ListActivity.this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n if (fFeed != null && fFeed.getItemCount() > 0) {\n adapter.notifyDataSetChanged();\n swiperefresh.setRefreshing(false);\n }\n }\n });\n }\n });\n thread.start();\n }\n }", "@Override\n public void onRefresh() {\n if (CheckNetwork.isInternetAvailable(getApplicationContext()))\n {\n data.clear();\n mAdapter.notifyDataSetChanged();\n apiCall();\n }\n else\n {\n Toast.makeText(RideShareHome.this, \"Internet is not available\", Toast.LENGTH_SHORT).show();\n }\n swipeContainer.setRefreshing(false);\n }", "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "public void actionPerformed(ActionEvent e) {\n Debug.signal(Debug.WARNING, null, \"Wotlas Web Server unreachable. Trying again... (\" + this.nbTry + \"/12)\");\n this.nbTry++;\n }", "void onInternetConnectionBack();", "@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "private void refresh() {\n\t\tIntent intent = new Intent(BacklogActivity.this, BacklogActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public static void Refresh(){\n if(driver!=null){\n driver.navigate().refresh();\n }\n }", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "void refresh();", "private static native void reloadHostPage()\n /*-{\n $wnd.location.reload();\n }-*/;", "public abstract void refreshing();", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}", "@Override\n public void onRefresh() {\n if (CUtil.isNetworkConnected(mViewList.getContext())) {\n reloadData();\n } else {\n// Toast.makeText(mTitleView.getContext(), R.string.network_not_connection, Toast.LENGTH_SHORT).show();\n showToast(getResources().getString(R.string.network_not_connection));\n mSwipeRefreshLayout.setRefreshing(false);\n }\n }", "public void refresh() {\n }", "@Override\n\tpublic void onRefresh() {\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\t\t\n\t\tmAdapterView.setRefreshTime(sdf.format(new Date()));\n\t\tmAdapterView.stopRefresh();\n\t\tFindHttpPost();\n\t\tpage = 1;\n\t\t\n\t\tif(mLocationClient.isStarted()){\n\t\t\tmLocationClient.stop();\n\t\t}else{\n\t\t\tmLocationClient.start();\n\t\t\tmLocationClient.requestLocation();\n\t\t}\n\t}", "protected void refresh() {\n\t}", "@Override\n public void onRefresh() {\n\n if (isInternetPresent) {\n deleteVIewlistTable_B4insertion();\n deleteInstiTable_B4insertion();\n deleteLevelTable_B4insertion();\n deleteStatusTable_B4insertion();\n// AsyncCall_GetAssessmentList task = new AsyncCall_GetAssessmentList(Activity_AssessmentList.this);\n// task.execute();\n\n getassessmentlist();\n } else {\n Toast.makeText(getApplicationContext(), \"No Internet\", Toast.LENGTH_SHORT).show();\n }\n swipeLayout.setRefreshing(false);\n }", "void connectionFound() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.GONE);\n }", "private void refresh() throws IOException {\n Launch.frame.setVisible(false);\n Launch.frame=null;\n new Launch(\"TodayQ\", 1, null);\n }", "private void autoRefreshStaleMailbox() {\n if (!mIsRefreshable) {\n // Not refreshable (special box such as drafts, or magic boxes)\n return;\n }\n if (!mRefreshManager.isMailboxStale(getMailboxId())) {\n return;\n }\n onRefresh(false);\n }", "private void exeRefresh()\n\t{\n\t this.setCursor(cl_dat.M_curWTSTS_pbst);\n\t\tgetDSPMSG(\"Before\");\n\t\tcl_dat.M_flgLCUPD_pbst = true;\n\t\tsetMSG(\"Decreasing Stock Master\",'N');\n\t\tdecSTMST();\n\t\tsetMSG(\"Updating Stock Master\",'N');\n\t\texeSTMST();\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXRCT\");\t\n\t\tupdCDTRN(\"D\"+cl_dat.M_strCMPCD_pbst,\"FGXXISS\");\n\t\t/*if(chkREFRCT.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Receipt Masters.\",'N');\n\t\t\t\n\t\t}\n\t\tif(chkREFISS.isSelected())\n\t\t{\n\t\t\tsetMSG(\"Refreshing Issue Masters.\",'N');\n\t\t\t\n\t\t}*/\n\t\tgetDSPMSG(\"After\");\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t\tsetMSG(\"Data refreshed successfully\",'N');\n\t\telse\n\t\t\tsetMSG(\"Data not refreshed successfully\",'E');\n\t\tthis.setCursor(cl_dat.M_curDFSTS_pbst);\n\t\n\t}", "@Override\r\n\tpublic void onRefreshAd() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONREFRESH);\r\n\t}", "@Override\n\tpublic long updateDisplay() {\n\t\treturn AppStatus.NO_REFRESH;\n\t}", "@Override\r\n\tpublic void afterNavigateRefresh(WebDriver arg0) {\n\t\t\r\n\t}", "public void stopRefresh() {\n\t\twaitRefresh = false;\n\t\trefreshing = false;\n\t\tpullRefresh = true;\n\t}", "public abstract void pullToRefresh();", "@Override\n public void onRefresh() {\n isNetworkAvailable(connectionHandler, 5000);\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n String initializedKey = getActivity().getString(R.string.pref_stocks_initialized_key);\n boolean initialized = prefs.getBoolean(initializedKey, false);\n\n QuoteSyncJob.syncImmediately(getActivity());\n\n if (!mConnected && adapter.getItemCount() == 0) {\n swipeRefreshLayout.setRefreshing(false);\n error.setText(getString(R.string.error_no_network));\n error.setVisibility(View.VISIBLE);\n } else if (!mConnected) {\n swipeRefreshLayout.setRefreshing(false);\n Toast.makeText(getActivity(), R.string.toast_no_connectivity, Toast.LENGTH_LONG).show();\n } else if (PrefUtils.getStocks(getActivity()).size() == 0) {\n swipeRefreshLayout.setRefreshing(false);\n error.setText(getString(R.string.error_no_stocks));\n error.setVisibility(View.VISIBLE);\n } else {\n error.setVisibility(View.GONE);\n }\n }", "void onRefresh() {\n\t}", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "public abstract void refresh();", "public abstract void refresh();", "public abstract void refresh();", "public void Refresh()\n\t{\n\t}", "public void internetConnectionProble()\n\t\t{\n\n\n\t\t}", "public void goOffline()\n\t{\n\t\tif (isOnline()){\n\t\t\tchatConnection.closeConnection();\n\t\t}\n\t\tgetMainWindow().displayOfflineSymbol();\n\t\tcloseAllRoomWindows();\n\n\t}", "public void manualRefreshComing() {\r\n if (!Preferences.isEnabled(Preferences.SICKBEARD)) {\r\n return;\r\n }\r\n SickBeardController.refreshFuture(messageHandler);\r\n }", "void doRefreshContent();", "public void refresh()\n {\n refresh( null );\n }", "public void refreshFrame() {\n switchWindow();\n this.switchToFrame(\"botFr\");\n }", "public void stopAutomaticRefresh() {\n try {\n dnsService.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void afterNavigateRefresh(WebDriver arg0) {\n\n\t}", "public void onRefresh() {\n }", "@When(\"^I refresh current page$\")\r\n public void I_refresh_current_page() throws Throwable {\r\n Driver.refreshPage();\r\n }", "@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}", "public void refresh() {\n\n odp.refresh();\n\n\n }", "long lastAutomaticRefresh();", "@Override\n public void onRefresh() {\n synchronizeContent();\n }", "Account refresh();", "@Override\n public void refresh() {\n }", "@Override\n public void onRefresh() {\n requestSoal();\n swipeRefreshLayout.setRefreshing(false);\n }", "public void onRefreshClick(View v) {\n\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n\t\tif (cm != null && cm.getActiveNetworkInfo() != null) {\n\t\t\tfinal Intent intent = new Intent(Intent.ACTION_SYNC, null, this, SyncService.class);\n\t\t\tintent.putExtra(SyncService.EXTRA_STATUS_RECEIVER, mState.mReceiver);\n\t\t\tintent.putExtra(SyncService.OPERATOR, SyncService.OPERATOR_FETCH_TOPIC_LIST);\n\t\t\tintent.putExtra(SyncService.PATH, LATEST_TOPICS);\n\t\t\tstartService(intent);\n\t\t} else {\n\t\t\tfinal Toast toast = Toast.makeText(TopicListActivity.this.getApplicationContext(),\n\t\t\t\t\tR.string.no_available_connection, Toast.LENGTH_SHORT);\n\t\t\tToastMaster.setToast(toast);\n\t\t\ttoast.show();\n\t\t}\n\n\t}", "@Override\r\n public void onErrorResponse(VolleyError error) {\n heading.setText(\"Try Again\");\r\n swipeRefreshLayout.setRefreshing(false);\r\n progressBar.setVisibility(View.INVISIBLE);\r\n\r\n rl.setVisibility(View.INVISIBLE);\r\n recyclerView.setVisibility(View.INVISIBLE);\r\n// clearData();\r\n\r\n }", "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "@Override\n\tpublic void refresh() {\n\t\t\n\t}", "@Override\r\n\tpublic void onRefresh() {\n\r\n\t}", "abstract void refresh();", "EventChannel refresh();", "@Override\n public void onRefresh() {\n }", "@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }", "@Override\n public void onRefresh() {\n }", "@Override\n\tpublic void refresh() {\n\t\tsuper.refresh();\n\t\tapplyConnectionRouter(getConnectionFigure());\n\t}", "public abstract void releaseToRefresh();", "public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}", "@Override\n public void run() {\n int i = SCAN_NUM;\n\t\t\t\tMessage msg1 = new Message();\n\t\t\t\tmsg1.what = WIFI_REFRESH;\n\t\t\t\tmwifiHandler.sendMessage(msg1);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n refreshWifi();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = WIFI_REFRESH_FINISH;\n\t\t\t\tmwifiHandler.sendMessage(msg);\n }", "public void navigate_pageRefresh() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().refresh();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tif(isRefreshEnabled()){\n\t\t\t\t\tsetRefreshEnabled(false);\n\t\t\t\t\tfetchGardenDetails(homeFrgRootView,true);\n\t\t\t\t}\n\t\t\t}", "public void btnRetryClick(){\n String Tag = TAG + \"-BtnRetry\";\n Log.d(Tag, \"Retrying...\");\n // Clear the chosen Wi-Fi and start connection thread again\n setWifiModule(null);\n startThread();\n //btn_retry.setVisibility(View.INVISIBLE);\n }", "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "@Override\n\tpublic void refreshUI(Object pushMsg) {\n\t\t\n\t}", "@Override\r\n\tpublic void onRefresh() {\n\t\tif (!isLoading) {\r\n\t\t\tbottomActivityId = 0;\r\n\t\t\tgetNotificationFromNetWork(\"1\", \"0\");\r\n\t\t}\r\n\t}", "private void refreshButtonHandler(){\n refreshButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n fetchChatContact();\n }\n });\n }", "public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult)\n {\n swipeRefreshLayout.setVisibility(View.GONE);\n showError(R.drawable.ic_location_disabled_black,\n R.string.error_message_update_google_play_services,\n R.string.fix_error_no_fix);\n }", "public void btn_Reshow_Server(ActionEvent e) throws Exception\n {\n }" ]
[ "0.684425", "0.6686908", "0.6642415", "0.66046655", "0.65565085", "0.64439684", "0.63851565", "0.635065", "0.63398194", "0.63207793", "0.6303806", "0.6243264", "0.6235636", "0.61204076", "0.6082408", "0.60693336", "0.60604006", "0.60364515", "0.6014014", "0.60109204", "0.60109204", "0.600296", "0.5998486", "0.5998486", "0.5998486", "0.5998486", "0.5998486", "0.5998486", "0.5998486", "0.59925395", "0.59838825", "0.59838825", "0.59838825", "0.59838825", "0.59838825", "0.5964093", "0.5942162", "0.5940566", "0.5940566", "0.5940037", "0.59391105", "0.59362674", "0.5909796", "0.5907829", "0.5899596", "0.5891959", "0.5871455", "0.58597386", "0.585094", "0.5835551", "0.58318645", "0.5822103", "0.58209157", "0.58196545", "0.5814748", "0.5792236", "0.57807946", "0.57807946", "0.57807946", "0.5780004", "0.5778256", "0.5776328", "0.57710284", "0.57594097", "0.57541597", "0.5746426", "0.57363164", "0.5728441", "0.5727886", "0.571236", "0.5711194", "0.5705543", "0.5704489", "0.5701829", "0.56941056", "0.56893635", "0.5677651", "0.5672127", "0.5666144", "0.5664371", "0.5664371", "0.56619537", "0.56609243", "0.5656057", "0.5655618", "0.56479055", "0.5646415", "0.56453806", "0.5633883", "0.5629589", "0.5620474", "0.5620102", "0.561254", "0.5609185", "0.5603004", "0.5596508", "0.5594586", "0.5587811", "0.5586501", "0.55864704", "0.5581711" ]
0.0
-1
Will return hostname stored in InetAddress.
public static String getHostName() { try { return InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { return LOCALHOST; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getHostname()\n throws UnknownHostException {\n return InetAddress.getLocalHost().getHostName();\n }", "public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "String getHostname();", "String getHostname();", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public InetAddress getHost();", "public String getHostname();", "String getHostName();", "String getHostName();", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public String getHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "public String get_hostname() throws Exception {\n\t\treturn this.hostname;\n\t}", "public String getHostname() {\r\n return hostname;\r\n }", "public String getHostname() {\n return this.hostname;\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public static String getHostname()\n\t{\n\t\treturn hostname; // send the hostname\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public static String getInetAddress(String hostName) throws UnknownHostException {\r\n InetAddress addr = InetAddress.getByName(hostName);\r\n return addr.getHostAddress();\r\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostname () {\n return hostname;\n }", "public String hostname() {\n return this.hostname;\n }", "public String getHostName() {\n return FxSharedUtils.getHostName();\n }", "String getRemoteHostName();", "java.lang.String getHost();", "java.lang.String getHost();", "public String getHostName() {\n return this.hostContext.getHostName();\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHostAddress() {\n\t\treturn javaNetAddress.getHostAddress();\n\t}", "public static String getHostname() throws IOException {\n\n String line;\n StringBuilder result = new StringBuilder();\n Process p = Runtime.getRuntime().exec(\"hostname\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n while ((line = br.readLine()) != null) result.append(line);\n\n br.close();\n\n return result.toString();\n }", "@Override\n public String resolveHostname(InetAddress addr) {\n return resolver.resolve(addr, 100);\n }", "private String GetHostAddress() throws UnknownHostException {\n return Inet4Address.getLocalHost().getHostAddress();\n }", "public String getHostname() {\n return this.config.getHostname();\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "public String getHostName (){\n return hostName;\n }", "String host();", "public static InetAddress localHost() throws UnknownHostException {\n\n\t\treturn InetAddress.getLocalHost();\n\t}", "public String hostname() {\n return this.innerProperties() == null ? null : this.innerProperties().hostname();\n }", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private static InetAddress getLocalHost() throws UnknownHostException {\n InetAddress addr;\n try {\n addr = InetAddress.getLocalHost();\n } catch (ArrayIndexOutOfBoundsException e) {\n addr = InetAddress.getByName(null);\n }\n return addr;\n }", "String getHost();", "public String getHostName() {\n return null;\n }", "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public static String getCanonicalHostName() {\n try {\n return InetAddress.getLocalHost().getCanonicalHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "public String getHost() {\n\t\treturn url.getHost();\n }", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "public boolean getGuessHostname();", "public static String name() {\r\n String _computername=\"\";\r\n InetAddress _address=null;\r\n \r\n try {\r\n _address=InetAddress.getLocalHost();\r\n _computername=_address.getHostName();\r\n }\r\n catch (Exception ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n \r\n if (_address!=null) {\r\n _address=null; System.gc();\r\n }\r\n \r\n return _computername;\r\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "protected String get_object_name() {\n\t\treturn this.hostname;\n\t}", "InetAddress getAddress();", "InetAddress getAddress();", "public String getHost();", "public String getHost();", "@NonNull\n public String getServerHostname() {\n return mServerHostname;\n }", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String getHost( ) {\n\t\treturn host;\n\t}", "public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}", "private String getDnsDomain() throws UnknownHostException\r\n {\r\n // get dns domain\r\n String lDnsDomain = null;\r\n\r\n if ( lDnsDomain == null ) {\r\n String lLocalhost = InetAddress.getLocalHost().getCanonicalHostName();\r\n String[] lParts = lLocalhost.split( \"[.]\" );\r\n if ( lParts.length > 1 )\r\n lDnsDomain = lParts[ lParts.length - 2 ] + \".\" + lParts[ lParts.length - 1 ];\r\n }\r\n\r\n return (lDnsDomain);\r\n }", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}", "public String getHostAddress() {\n String address = null;\n\n if (this.clientSocket != null) {\n address = this.clientSocket.getInetAddress().getHostAddress();\n }\n\n return address;\n }", "@ZAttr(id=744)\n public String getDNSCheckHostname() {\n return getAttr(Provisioning.A_zimbraDNSCheckHostname, null);\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "Host getHost();", "public String getHost() {\n \t\treturn host;\n \t}", "String getHostName(String clusterName, String componentName) throws SystemException;", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "public String resolveIP(final String hostname) throws UnknownHostException {\n final InetAddress addr = InetAddress.getByName(hostname);\n\n return addr.getHostAddress();\n }", "HostInfo getHostInfo();", "java.lang.String getServerAddress();", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public String getSimulatorHostname() {\n return simSpec.getHostAddr();\n }", "public static Host getLocalHostAddresAndIP() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n // IPv4 only\n if (inetAddress instanceof Inet6Address)\n continue;\n if (!inetAddress.isLoopbackAddress()) {\n Host thisHost = new Host(inetAddress.getHostAddress().toString(), true);\n return thisHost;\n }\n }\n }\n } catch (SocketException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public String getHost() {\n return host.getText();\n }", "String getAddr();", "public InetAddress getInetAddress()\n {\n return addr;\n }", "@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }", "java.lang.String getRemoteHost();", "public String getHost() {\r\n return host;\r\n }", "public String host() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }", "public int getHostAddress() {\n return hostAddress;\n }" ]
[ "0.79509664", "0.79385126", "0.78461695", "0.78292745", "0.78292745", "0.7828654", "0.7761056", "0.77396876", "0.76967394", "0.76410913", "0.76410913", "0.7605561", "0.7600964", "0.7431057", "0.7415354", "0.7387287", "0.7382624", "0.73786867", "0.7348785", "0.7313384", "0.7313384", "0.7282318", "0.72437936", "0.72437936", "0.72385013", "0.72356707", "0.71655506", "0.71651393", "0.71104443", "0.71104443", "0.7106548", "0.70950645", "0.7092794", "0.7066736", "0.70508134", "0.70385474", "0.70248693", "0.6989622", "0.6968696", "0.69679874", "0.69384974", "0.69160235", "0.6851565", "0.6816007", "0.6793234", "0.67135715", "0.6703028", "0.6685339", "0.6680197", "0.66680855", "0.66216046", "0.66073143", "0.65555143", "0.6525096", "0.6524616", "0.649897", "0.648516", "0.6477583", "0.6477583", "0.64758116", "0.64758116", "0.6457989", "0.6454913", "0.6449783", "0.64276683", "0.64242226", "0.6412417", "0.6393954", "0.63618964", "0.634655", "0.63192505", "0.6318114", "0.6313708", "0.62867457", "0.6285211", "0.6279152", "0.6271759", "0.6271759", "0.6267442", "0.6262405", "0.6243093", "0.62385756", "0.62138253", "0.62120754", "0.6209776", "0.62050605", "0.61798006", "0.6167911", "0.6149057", "0.61476827", "0.6141389", "0.613889", "0.61270607", "0.61270607", "0.61270607", "0.61270607", "0.61270607", "0.61270607", "0.6124422", "0.61222947" ]
0.77767426
6
Will return FQDN of the host after doing reverse DNS lookip.
public static String getCanonicalHostName() { try { return InetAddress.getLocalHost().getCanonicalHostName(); } catch (UnknownHostException e) { return LOCALHOST; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "public static String reverseDnsLookup(String ipAddress) {\n //cache this so we dont lookup every request\n String theHost = remoteHosts.get(ipAddress);\n if (ProxyUtils.isBlank(theHost)) {\n //default to ip address\n theHost = ipAddress;\n try {\n InetAddress addr = InetAddress.getByName(ipAddress); \n // Get the host name\n theHost = addr.getCanonicalHostName();\n } catch (Exception e) {\n //only logging\n if (ProxyWrapperFilter.isDebug()) {\n String timestamp = new Timestamp(System.currentTimeMillis()).toString();\n System.out.println(timestamp + \": Problem with address: \" + ipAddress);\n e.printStackTrace();\n }\n }\n remoteHosts.put(ipAddress, theHost);\n } \n return theHost;\n }", "private String getDnsDomain() throws UnknownHostException\r\n {\r\n // get dns domain\r\n String lDnsDomain = null;\r\n\r\n if ( lDnsDomain == null ) {\r\n String lLocalhost = InetAddress.getLocalHost().getCanonicalHostName();\r\n String[] lParts = lLocalhost.split( \"[.]\" );\r\n if ( lParts.length > 1 )\r\n lDnsDomain = lParts[ lParts.length - 2 ] + \".\" + lParts[ lParts.length - 1 ];\r\n }\r\n\r\n return (lDnsDomain);\r\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public InetAddress getHost();", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }", "String getRemoteHostName();", "private String GetHostAddress() throws UnknownHostException {\n return Inet4Address.getLocalHost().getHostAddress();\n }", "public String fqdn() {\n return this.fqdn;\n }", "public String fqdn() {\n return this.fqdn;\n }", "public String getFqdn() {\n return fqdn;\n }", "public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}", "public String resolve(byte ip[]) throws UnknownHostException\n {\n // CACHE DNS requests!\n synchronized(this.ipadress2host)\n {\n String ipstr=ip2string(ip); \n \n StringList hostList= this.ipadress2host.get(ipstr); \n if (hostList!=null)\n if (hostList.size()>0)\n return hostList.get(0); \n \n String hostname=null;//dns.getHostByAddr(ip);\n \n if (hostname==null)\n return null; // throw ? \n this.ipadress2host.put(ipstr,new StringList(hostname)); \n return hostname;\n }\n }", "@Override\n public String resolveHostname(InetAddress addr) {\n return resolver.resolve(addr, 100);\n }", "java.lang.String getUserDN();", "public static String getInetAddress(String hostName) throws UnknownHostException {\r\n InetAddress addr = InetAddress.getByName(hostName);\r\n return addr.getHostAddress();\r\n }", "java.lang.String getHost();", "java.lang.String getHost();", "public String getRnidsHostAddress() {\n\t\tString address = getProperties().getProperty(\"rnids.host.address\").trim();\n\t\treturn address;\n\t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "String getAddr();", "String getHostName();", "String getHostName();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "private static InetAddress getLocalHost() throws UnknownHostException {\n InetAddress addr;\n try {\n addr = InetAddress.getLocalHost();\n } catch (ArrayIndexOutOfBoundsException e) {\n addr = InetAddress.getByName(null);\n }\n return addr;\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "private static String getHostname()\n throws UnknownHostException {\n return InetAddress.getLocalHost().getHostName();\n }", "java.lang.String getRemoteHost();", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "String getRemoteAddr();", "public String getDN() {\n\t\treturn url.getDN();\n }", "public String getHostName();", "private int checkDomainNameResolvable(String ip_detect_type) {\n if (!ip_detect_type.equals(\"ipv4\") && !ip_detect_type.equals(\"ipv6\")) {\n return DN_UNKNOWN;\n }\n try {\n ArrayList<String> ipAddressList = MLabNS.Lookup(context, \"mobiperf\", \n ip_detect_type, \"fqdn\");\n String ipAddress;\n // MLabNS returns one fqdn each time\n if (ipAddressList.size() == 1) {\n ipAddress = ipAddressList.get(0);\n } else {\n return DN_UNKNOWN;\n }\n InetAddress inet = InetAddress.getByName(ipAddress);\n if (inet != null)\n return DN_RESOLVABLE;\n } catch (UnknownHostException e) {\n // Fail to resolve domain name\n Logger.e(\"UnknownHostException in checkDomainNameResolvable() \"\n + e.getMessage());\n return DN_UNRESOLVABLE;\n } catch (InvalidParameterException e) {\n // MLabNS service lookup fail\n Logger.e(\"InvalidParameterException in checkIPCompatibility(). \"\n + e.getMessage());\n return DN_UNRESOLVABLE;\n } catch ( Exception e ) {\n // \"catch-all\"\n Logger.e(\"Unexpected Exception: \" + e.getMessage());\n return DN_UNRESOLVABLE;\n }\n return DN_UNKNOWN;\n }", "public static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "protected static String getDUnitLocatorAddress() {\n return Host.getHost(0).getHostName();\n }", "String getHost();", "public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }", "private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }", "public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}", "InetAddress getAddress();", "InetAddress getAddress();", "public String getHostAddress() {\n\t\treturn javaNetAddress.getHostAddress();\n\t}", "String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;", "public String resolveIP(final String hostname) throws UnknownHostException {\n final InetAddress addr = InetAddress.getByName(hostname);\n\n return addr.getHostAddress();\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "String host();", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "public String getHostName() {\n return FxSharedUtils.getHostName();\n }", "public DnsResolve(String hostName) {\n this(hostName, null);\n }", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "private String getAddress() {\n\t\tif (localIp != null) {\n\t\t\treturn localIp;\n\t\t}\n\t\tString address = \"\";\n\t\tInetAddress lanIp = null;\n\t\ttry {\n\t\t\tString ipAddress = null;\n\t\t\tEnumeration<NetworkInterface> net = null;\n\t\t\tnet = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (net.hasMoreElements()) {\n\t\t\t\tNetworkInterface element = net.nextElement();\n\t\t\t\tEnumeration<InetAddress> addresses = element.getInetAddresses();\n\t\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\t\tInetAddress ip = addresses.nextElement();\n\t\t\t\t\tif (ip instanceof Inet4Address) {\n\t\t\t\t\t\tif (ip.isSiteLocalAddress()) {\n\t\t\t\t\t\t\tipAddress = ip.getHostAddress();\n\t\t\t\t\t\t\tlanIp = InetAddress.getByName(ipAddress);\n\t\t\t\t\t\t\tSystem.out.println(\"found local address: \" + ipAddress);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lanIp == null)\n\t\t\t\treturn null; \n\t\t\taddress = lanIp.toString().replaceAll(\"^/+\", \"\"); \n\t\t} catch (UnknownHostException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn address;\n\n\t}", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public DummyDNS() {\n\n\t\ttry {\n\t\t\tonlyOne = InetAddress.getByName(\"127.0.0.1\").getAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// impossible\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static Host getLocalHostAddresAndIP() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n // IPv4 only\n if (inetAddress instanceof Inet6Address)\n continue;\n if (!inetAddress.isLoopbackAddress()) {\n Host thisHost = new Host(inetAddress.getHostAddress().toString(), true);\n return thisHost;\n }\n }\n }\n } catch (SocketException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public static InetAddress localHost() throws UnknownHostException {\n\n\t\treturn InetAddress.getLocalHost();\n\t}", "public String getHostName (){\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL u) {\n if (u.hostAddress != null) {\n return u.hostAddress;\n }\n String host = u.getHost();\n if (host != null && !host.equals(\"\")) {\n try {\n u.hostAddress = InetAddress.getByName(host);\n return u.hostAddress;\n } catch (UnknownHostException e) {\n return null;\n } catch (SecurityException e2) {\n return null;\n }\n }\n }", "public String getRemoteIPAddress() {\n String xForwardedFor = getRequestHeader(\"X-Forwarded-For\");\n\n if (!Utils.isEmpty(xForwardedFor)) {\n System.out.println(\"The xForwardedFor address is: \" + xForwardedFor + \"\\n\");\n return xForwardedFor.split(\"\\\\s*,\\\\s*\", 2)[0]; // The xForwardFor is a comma separated string: client,proxy1,proxy2,...\n }\n\n return getRequest().getRemoteAddr();\n }", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public InetAddress getIP()\r\n\r\n {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int dip=dhcp.ipAddress;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (dip >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n }\r\n return ip;\r\n }", "public DnsResolve(String hostName, InetAddress server) {\n this.mHostName = hostName;\n this.mServer = server;\n }", "SocketAddress getLocalAddress();", "public String getHost();", "public String getHost();", "public String getMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getMaddr () \");\n Via via=(Via)sipHeader;\n \n Host host=via.getMaddr();\n if ( host == null) return null;\n else return host.getIpAddress(); \n }", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }", "String getHostname();", "String getHostname();", "SocketAddress getRemoteAddress();", "public void getDomain(){\n String requestDomain = IPAddressTextField.getText();\n Connection conn = new Connection();\n\n String ip = conn.getDomain(requestDomain);\n\n output.writeln(requestDomain + \" --> \" + ip);\n }", "public static String getHostAddress(HttpRequest argHttpRequest) {\r\n\t\tString originHostName = getHostName(argHttpRequest);\r\n\t\ttry {\r\n\t\t\tInetAddress hostInetAddress = InetAddress.getByName(originHostName);\r\n\t\t\treturn hostInetAddress.getHostAddress();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\tthrow new BaseUncheckedException(\r\n\t\t\t\t\t\"exception while resolving IP address\", e);\r\n\t\t}\r\n\t}", "public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }", "Host getHost();", "private String computeAddress(String domain) throws ProtocolUnderTCPException {\n String address;\n try {\n address = DNS.getAddress(domain);\n } catch (DNSException e) {\n throw new ProtocolUnderTCPException(\"Unable to determine address.\", e);\n }\n return address;\n }", "private static String[] getServerAddress(String p_78863_0_) {\n/* */ try {\n/* 87 */ String var1 = \"com.sun.jndi.dns.DnsContextFactory\";\n/* 88 */ Class.forName(\"com.sun.jndi.dns.DnsContextFactory\");\n/* 89 */ Hashtable<Object, Object> var2 = new Hashtable<>();\n/* 90 */ var2.put(\"java.naming.factory.initial\", \"com.sun.jndi.dns.DnsContextFactory\");\n/* 91 */ var2.put(\"java.naming.provider.url\", \"dns:\");\n/* 92 */ var2.put(\"com.sun.jndi.dns.timeout.retries\", \"1\");\n/* 93 */ InitialDirContext var3 = new InitialDirContext(var2);\n/* 94 */ Attributes var4 = var3.getAttributes(\"_minecraft._tcp.\" + p_78863_0_, new String[] { \"SRV\" });\n/* 95 */ String[] var5 = var4.get(\"srv\").get().toString().split(\" \", 4);\n/* 96 */ return new String[] { var5[3], var5[2] };\n/* */ }\n/* 98 */ catch (Throwable var6) {\n/* */ \n/* 100 */ return new String[] { p_78863_0_, Integer.toString(25565) };\n/* */ } \n/* */ }", "public static void main(String[] args) throws UnknownHostException {\n InetAddress myIP= InetAddress.getLocalHost();\n\n /* public String getHostAddress(): Returns the IP\n * address string in textual presentation.\n */\n System.out.println(\"My IP Address is:\");\n System.out.println(myIP.getHostAddress());\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t//由主机名得到InetAddress对象\n\t\t\tInetAddress address1=InetAddress.getByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"address1:\"+address1);\n\t\t\t//由ip得到InetAddress对象\n\t\t\tInetAddress address2=InetAddress.getByName(\"13.229.188.59\");\n\t\t\tSystem.out.println(\"address2:\"+address2.getHostName()+\"/\"+address2.getHostAddress());\n\t\t\t//由主机名得到多个InetAddress对象数组,因为一个主机名可以对应多个ip\n\t\t\tInetAddress addressArr1[]=InetAddress.getAllByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"addressArr1:\");\n\t\t\tfor(int i=0; i<addressArr1.length; i++)\n\t\t\t\tSystem.out.println(addressArr1[i]);\n\t\t\t//得到本机的InetAddress对象\n\t\t\tInetAddress me=InetAddress.getLocalHost();\n\t\t\tSystem.out.println(\"me:\"+me);\n\t\t\t//getByName(xxx.xxx.com.cn)会立刻请求解析域名为IP地址,而getByAddress不会立刻请求解析IP地址为域名\n\t\t\tbyte []ip1={(byte)202,(byte)201,(byte)179,110};//int转byte会截断int\n\t\t\tInetAddress address3=InetAddress.getByAddress(ip1);\n\t\t\tbyte []ip2={61,(byte)135,(byte)169,121};\n\t\t\tInetAddress address4=InetAddress.getByAddress(\"www.baidu.com\", ip2);\n\t\t\tSystem.out.println(\"address3:\"+address3);\n\t\t\tSystem.out.println(\"address3 hostname:\"+address3.getHostName());\n\t\t\tSystem.out.println(\"address4:\"+address4);\n\t\t\t//下面这行会抛异常,因为如果调用getByName创建InetAddress对象时,如果参数是主机名,就会立即进行dns解析,但是参数中的主机名\n\t\t\t//又不存在,所以程序抛异常\n\t\t\tInetAddress address5=InetAddress.getByName(\"www.baidxxx.com\");\n\t\t\t//下面这两行代码不会抛异常,虽然参数中的ip是不存在的(不知道为什么,反正是这样规定的)\n\t\t\tInetAddress address6=InetAddress.getByName(\"202.117.179.110\");\n\t\t\taddress6.getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private String getLocalNameSpaceURI() {\n String localNameSpace = \"\";\n\n try {\n URL locator = new URL(IP_SERVICE_URL);\n URLConnection connection = locator.openConnection();\n InputStream is = connection.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader reader = new BufferedReader(isr);\n String str = reader.readLine();\n if (null == str) {\n str = \"127.0.0.1\";\n }\n localNameSpace = InetAddress.getLocalHost().getHostName() + \"@\" + str + \"#\";\n } catch (IOException e) {\n try {\n localNameSpace = InetAddress.getLocalHost().getHostName() + \"@\"\n + InetAddress.getLoopbackAddress() + \"#\";\n } catch (UnknownHostException ex) {\n localNameSpace = \"UnknownHostName@127.0.0.1#\";\n }\n }\n\n return localNameSpace;\n }", "public java.lang.String getRemoteHost() {\n java.lang.Object ref = remoteHost_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n remoteHost_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }", "@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}", "public String getInternalAddress();", "abstract String getRemoteAddress();", "public InetAddress getInitialDns(int index) {\n if (mIpConfiguration != null && mIpConfiguration.getStaticIpConfiguration() != null\n && mIpConfiguration.getStaticIpConfiguration().dnsServers == null) {\n try {\n return mIpConfiguration.getStaticIpConfiguration().dnsServers.get(index);\n } catch (IndexOutOfBoundsException e) {\n return null;\n }\n }\n return null;\n }", "@Nullable public abstract String ipAddress();", "public DestAddress getHostAddress()\r\n {\r\n return hostAddress;\r\n }", "public java.lang.String getRemoteHost() {\n java.lang.Object ref = remoteHost_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n remoteHost_ = s;\n }\n return s;\n }\n }", "private static InetAddress getLocalHostLANAddress() throws UnknownHostException {\n\t\ttry {\n\t\t\tInetAddress candidateAddress = null;\n\t\t\t// Iterate all NICs (network interface cards)...\n\t\t\tfor (final Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces.hasMoreElements();) {\n\t\t\t\tfinal NetworkInterface iface = (NetworkInterface) ifaces.nextElement();\n\t\t\t\t// Iterate all IP addresses assigned to each card...\n\t\t\t\tfor (final Enumeration inetAddrs = iface.getInetAddresses(); inetAddrs.hasMoreElements();) {\n\t\t\t\t\tfinal InetAddress inetAddr = (InetAddress) inetAddrs.nextElement();\n\t\t\t\t\tif (!inetAddr.isLoopbackAddress()) {\n\t\t\t\t\t\tif (inetAddr.getHostAddress().startsWith(\"141\")) {\n\t\t\t\t\t\t\t// Found non-loopback site-local address. Return it immediately...\n\t\t\t\t\t\t\treturn inetAddr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((candidateAddress == null) && (inetAddr instanceof Inet4Address)) {\n\t\t\t\t\t\t\t// Found non-loopback address, but not necessarily site-local.\n\t\t\t\t\t\t\t// Store it as a candidate to be returned if site-local address is not subsequently found...\n\t\t\t\t\t\t\tcandidateAddress = inetAddr;\n\t\t\t\t\t\t\t// Note that we don't repeatedly assign non-loopback non-site-local addresses as candidates,\n\t\t\t\t\t\t\t// only the first. For subsequent iterations, candidate will be non-null.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (candidateAddress != null) {\n\t\t\t\t// We did not find a site-local address, but we found some other non-loopback address.\n\t\t\t\t// Server might have a non-site-local address assigned to its NIC (or it might be running\n\t\t\t\t// IPv6 which deprecates the \"site-local\" concept).\n\t\t\t\t// Return this non-loopback candidate address...\n\t\t\t\treturn candidateAddress;\n\t\t\t}\n\t\t\t// At this point, we did not find a non-loopback address.\n\t\t\t// Fall back to returning whatever InetAddress.getLocalHost() returns...\n\t\t\tfinal InetAddress jdkSuppliedAddress = InetAddress.getLocalHost();\n\t\t\tif (jdkSuppliedAddress == null) {\n\t\t\t\tthrow new UnknownHostException(\"The JDK InetAddress.getLocalHost() method unexpectedly returned null.\");\n\t\t\t}\n\t\t\treturn jdkSuppliedAddress;\n\t\t}\n\t\tcatch (final Exception e) {\n\t\t\tfinal UnknownHostException unknownHostException = new UnknownHostException(\"Failed to determine LAN address: \" + e);\n\t\t\tunknownHostException.initCause(e);\n\t\t\tthrow unknownHostException;\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static String resolveURL(String dnsServer, String serviceName) throws UnknownHostException {\n\t\tSystem.setProperty(\"sun.net.spi.nameservice.nameservers\", dnsServer);\n\t\tSystem.setProperty(\"sun.net.spi.nameservice.provider.1\", \"dns,sun\");\n\t\tInetAddress[] inetAddressArray = InetAddress.getAllByName(serviceName);\n\t\tif (inetAddressArray.length == 0) throw new UnknownHostException(\"Cannot resolve service name: \" + serviceName + \" using DNS: \" + dnsServer);\n\t\treturn inetAddressArray[0].getHostAddress();\n\t}", "public static String getCanonicalHostNamebyAddress(String address) {\r\n String[] octets = address.split(\"\\\\.\");\r\n byte[] octetBytes = new byte[octets.length];\r\n for (int i = 0; i < octets.length; i++) {\r\n octetBytes[i] = Integer.valueOf(octets[i]).byteValue();\r\n }\r\n try {\r\n InetAddress addr = InetAddress.getByAddress(octetBytes);\r\n return addr.getCanonicalHostName();\r\n } catch (UnknownHostException ex) {\r\n }\r\n return null;\r\n }", "public String getHostname();", "public static InetAddress getJustLocalAddress()\n {\n if (localInetAddress == null)\n {\n if (DatabaseDescriptor.getListenAddress() == null)\n {\n try\n {\n localInetAddress = InetAddress.getLocalHost();\n logger.info(\"InetAddress.getLocalHost() was used to resolve listen_address to {}, double check this is \"\n + \"correct. Please check your node's config and set the listen_address in cassandra.yaml accordingly if applicable.\",\n localInetAddress);\n }\n catch(UnknownHostException e)\n {\n logger.info(\"InetAddress.getLocalHost() could not resolve the address for the hostname ({}), please \"\n + \"check your node's config and set the listen_address in cassandra.yaml. Falling back to {}\",\n e,\n InetAddress.getLoopbackAddress());\n // CASSANDRA-15901 fallback for misconfigured nodes\n localInetAddress = InetAddress.getLoopbackAddress();\n }\n }\n else\n localInetAddress = DatabaseDescriptor.getListenAddress();\n }\n return localInetAddress;\n }", "java.lang.String getServerAddress();", "@ZAttr(id=744)\n public String getDNSCheckHostname() {\n return getAttr(Provisioning.A_zimbraDNSCheckHostname, null);\n }", "public static String getCurrentIp() throws UnknownHostException {\n try {\n InetAddress candidateAddress = null;\n for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces\n .hasMoreElements();) {\n NetworkInterface iface = (NetworkInterface) ifaces.nextElement();\n for (Enumeration inetAddrs = iface.getInetAddresses(); inetAddrs.hasMoreElements();) {\n InetAddress inetAddr = (InetAddress) inetAddrs.nextElement();\n if (!inetAddr.isLoopbackAddress()) {\n if (inetAddr.isSiteLocalAddress() && !iface.getName().contains(\"docker\")) {\n return inetAddr.getHostAddress();\n } else if (candidateAddress == null) {\n candidateAddress = inetAddr;\n }\n }\n }\n }\n if (candidateAddress != null) {\n return candidateAddress.getHostAddress();\n }\n InetAddress jdkSuppliedAddress = InetAddress.getLocalHost();\n if (jdkSuppliedAddress == null) {\n throw new UnknownHostException(\n \"The JDK InetAddress.getLocalHost() method unexpectedly returned null.\");\n }\n return jdkSuppliedAddress.getHostAddress();\n } catch (Exception e) {\n UnknownHostException unknownHostException =\n new UnknownHostException(\"Failed to determine LAN address: \" + e);\n unknownHostException.initCause(e);\n throw unknownHostException;\n }\n }" ]
[ "0.70067585", "0.69732976", "0.65608555", "0.64732957", "0.64467144", "0.63766456", "0.6351033", "0.6298937", "0.629226", "0.629226", "0.6253538", "0.62525314", "0.6212399", "0.61719567", "0.61482453", "0.6143072", "0.61043054", "0.61043054", "0.5999228", "0.5968083", "0.59614265", "0.5956196", "0.5956196", "0.59309834", "0.59250295", "0.5923972", "0.5920597", "0.591163", "0.59089506", "0.58997136", "0.58859587", "0.5869587", "0.580711", "0.579722", "0.5788229", "0.57846504", "0.57710415", "0.5761206", "0.57578987", "0.5753364", "0.5753364", "0.57490116", "0.57217693", "0.5694858", "0.5692644", "0.56888515", "0.5678138", "0.56684566", "0.5658812", "0.56519043", "0.56443363", "0.56404674", "0.5622167", "0.5621114", "0.56152785", "0.56138134", "0.5613381", "0.5613381", "0.5610877", "0.56098676", "0.5596067", "0.5596067", "0.5576783", "0.55717134", "0.5571334", "0.5569474", "0.5569474", "0.5535728", "0.55327404", "0.5528224", "0.5522379", "0.5522379", "0.55188334", "0.55111665", "0.55054176", "0.54979354", "0.54863596", "0.54667115", "0.5444272", "0.5443875", "0.54312074", "0.54272604", "0.5422507", "0.5422287", "0.54182804", "0.54174745", "0.54140353", "0.5413096", "0.5412396", "0.54098946", "0.5393109", "0.5389563", "0.53887063", "0.5388508", "0.53805494", "0.5378012", "0.5367777", "0.53671634", "0.5355667", "0.53530455" ]
0.5584628
62
For preMarshmallow devices that causes the activity to pause for giving the permission for the first time
@Override public void onOpened(@NonNull CameraDevice camera) { mCameraDevice = camera; if (mIsRecording) { try { mVideoFilePath = FileUtils.createVideoFile(getApplicationContext()); } catch (IOException e) { e.printStackTrace(); } startNewVideo(); } else { startPreview(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onResume() {\n List<String> a2;\n try {\n super.onResume();\n if (Build.VERSION.SDK_INT >= 23 && this.a) {\n String[] strArr = this.needPermissions;\n try {\n if (Build.VERSION.SDK_INT >= 23 && getApplicationInfo().targetSdkVersion >= 23 && (a2 = a(strArr)) != null && a2.size() > 0) {\n try {\n getClass().getMethod(\"requestPermissions\", String[].class, Integer.TYPE).invoke(this, (String[]) a2.toArray(new String[a2.size()]), 0);\n } catch (Throwable th) {\n }\n }\n } catch (Throwable th2) {\n th2.printStackTrace();\n }\n }\n } catch (Throwable th3) {\n th3.printStackTrace();\n }\n }", "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "@Override\n public void onClick(View v) {\n if (Build.VERSION.SDK_INT >= 23)\n {\n if (permissionUtils.checkPermissions())\n {\n Log.e(TAG, \"Permission Is Not Granted. Request For Permission\");\n permissionUtils.askPermission();\n }\n else\n {\n Log.e(TAG, \"Permission Already Granted\");\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }\n else\n {\n /*\n * Pre-Marshmallow\n * If build version is less than or 23, then all permission is\n * granted at install time in google play store.\n */\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n finish();\n }\n }", "private void requestPermissions(){\n Intent intent = new Intent(this.getApplication(), MainActivity.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(intent);\r\n }", "private void requestPermissions() {\n mWaiting4Permission = Boolean.TRUE;\n\n ActivityCompat.requestPermissions(this, permissionsToAsk(), PERMISSIONS_REQUEST_CODE);\n }", "private void requestAutoStartPermission() {\n if (Build.MANUFACTURER.equals(\"OPPO\")) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.FakeActivity\")));\n } catch (Exception e) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e1) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e2) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startup.StartupAppListActivity\")));\n } catch (Exception e3) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e4) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e5) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startsettings\")));\n } catch (Exception e6) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.startupmanager\")));\n } catch (Exception e7) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.startupActivity\")));\n } catch (Exception e8) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.startupapp.startupmanager\")));\n } catch (Exception e9) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity.Startupmanager\")));\n } catch (Exception e10) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity\")));\n } catch (Exception e11) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.FakeActivity\")));\n } catch (Exception e12) {\n e12.printStackTrace();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }", "private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "public void onPermissionGranted() {\n\n }", "private void requestPermission(){\r\n ActivityCompat.requestPermissions(activity,new String[]{Manifest.permission.ACCESS_FINE_LOCATION},1);\r\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }", "private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }", "static /* synthetic */ void m79214c(PermissionActivity permissionActivity) {\n AppMethodBeat.m2504i(79436);\n C4990ab.m7416i(\"MicroMsg.PermissionActivity\", \"goIgnoreBatteryOptimizations()\");\n try {\n permissionActivity.startActivityForResult(new Intent(\"android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS\").setData(Uri.parse(\"package:\" + permissionActivity.getPackageName())), 1);\n if (C5018as.amF(\"service_launch_way\").getBoolean(\"954_93_first\", true)) {\n C7053e.pXa.mo8378a(954, 93, 1, false);\n C5018as.amF(\"service_launch_way\").edit().putBoolean(\"954_93_first\", false);\n }\n C7053e.pXa.mo8378a(954, 94, 1, false);\n AppMethodBeat.m2505o(79436);\n } catch (Exception e) {\n C4990ab.m7413e(\"MicroMsg.PermissionActivity\", \"onResume scene = %d startActivityForResult() Exception = %s \", Integer.valueOf(permissionActivity.scene), e.getMessage());\n AppMethodBeat.m2505o(79436);\n }\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }", "@Override\n protected void onStart() {\n super.onStart();\n if (!hasPermissions(this, getRequiredPermissions())) {\n if (!hasPermissions(this, getRequiredPermissions())) {\n if (Build.VERSION.SDK_INT < 23) {\n ActivityCompat.requestPermissions(\n this, getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS);\n } else {\n requestPermissions(getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS);\n }\n }\n }\n }", "private void requestPermission() {\n\n ActivityCompat.requestPermissions(CalltoVendor.this, new String[]\n {\n CALL_PHONE\n }, RequestPermissionCode);\n }", "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }", "boolean requestIfNeeded(Activity activity, Permission permission);", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "private void RequestPermissions() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{RECORD_AUDIO, WRITE_EXTERNAL_STORAGE}, REQUEST_AUDIO_PERMISSION_CODE);\r\n }", "@Override\n public void onPermissionGranted() {\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermissionLlamada() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CALL_PHONE)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == RC_PERMISSION_ALL) {\n if (permissions.length > 0 && /*permissions[0].equals(android.Manifest.permission.READ_EXTERNAL_STORAGE) &&*/ grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n } else if (grantResults.length > 0 &&/* permissions[0].equals(Manifest.permission.ACCESS_FINE_LOCATION) && */grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n// mLocationPermissionGranted = true;\n } else if (/*grantResults.length > 0 &&*/ grantResults[0] == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"Permissions denied the app will shut down shortly\", Toast.LENGTH_LONG).show();\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n finish();\n }\n }, 2000);\n }\n }\n\n // donot allow the onmap raedy proceed unless the permissions are granted and gps is on\n//\n }", "private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }", "public void requestPermissions(ArrayList<String> needPermissions) {\n\n String packageName = getApplicationContext().getPackageName();\n Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse(\"package:\" + packageName) );\n startActivityForResult(intent, REQ_CODE_REQUEST_SETTING);\n }", "private void askForPermission(){\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG,\"don't have permission\");\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)) {\n Log.i(TAG,\"Asking for permission with explanation\");\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n } else {\n Log.i(TAG,\"Asking for permission without explanation\");\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n Log.i(TAG,\"Already had permission\");\n }\n\n }", "private void requestPermissions() {\r\n ActivityCompat.requestPermissions(ContactActivity.this,new String[]{Manifest.permission.CALL_PHONE},1);\r\n }", "private void requestCameraPermission(){\n requestPermissions(cameraPermissions, CAMERA_REQUESTED_CODE);\n }", "@Override\n public void onRequestNoAsk(String permissionName) {\n }", "private void checkPermissions(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },PERMS_CALL_ID);\n\n }\n\n\n }", "public void requestPermissionsIfNeeded() {\n ArrayList<String> requiredPermissions = new ArrayList<String>();\n checkIfPermissionGranted(requiredPermissions, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n checkIfPermissionGranted(requiredPermissions, Manifest.permission.CAMERA);\n\n if(requiredPermissions.size() > 0) {\n // Request Permissions Now\n ActivityCompat.requestPermissions(activity,\n requiredPermissions.toArray(new String[requiredPermissions.size()]),\n Constants.REQUEST_PERMISSIONS);\n }\n }", "@Override\n public void onPermissionGranted() {\n }", "public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }", "protected void setPermissions(){\n //Set permissions\n //READ_PHONE_STATE\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n ) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n //Show an explanation to the user *asynchronously* -- don't block\n //this thread waiting for the user's response! After the user\n //sees the explanation, request the permission again.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n } else {\n //No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n\n //MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n //app-defined int constant. The callback method gets the\n //result of the request.\n }\n }\n }", "public void askPermission() {\n if (ContextCompat.checkSelfPermission(getActivity()\n , android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n reqestLocationPermission);\n }\n }", "@Override\n public void onPermissionGranted() {\n Timer t = new Timer();\n boolean checkConnection = new ApplicationUtility().checkConnection(SplashActivity.this);\n if (checkConnection) {\n t.schedule(new splash(), 3000);\n Toast.makeText(SplashActivity.this,\n \"Internet permission granted\", 3000).show();\n } else {\n Toast.makeText(SplashActivity.this,\n \"connection not found...plz check connection\", 3000).show();\n t.schedule(new splash(), 3000);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n if (grantResults.length > 0\n && !(grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Without granting all permissions the app may not work properly. Please consider granting this permission in settings\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(@NonNull int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (permissions.length == 0) {\n return;\n }\n boolean allPermissionsGranted = true;\n if (grantResults.length > 0) {\n for (int grantResult : grantResults) {\n if (grantResult != PackageManager.PERMISSION_GRANTED) {\n allPermissionsGranted = false;\n break;\n }\n }\n }\n if (!allPermissionsGranted) {\n boolean somePermissionsForeverDenied = false;\n for (String permission : permissions) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) {\n //denied\n } else {\n if (ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED\n && requestCode == Extra.LOCATION) {\n getLocation();\n } else {\n //set to never ask again\n somePermissionsForeverDenied = true;\n }\n }\n }\n if (somePermissionsForeverDenied) {\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(R.string.permissions_required)\n .setMessage(R.string.you_have_explicitly_denied_permissions_which_are_required_by_this_app_to_run_for_this_action_open_settings_go_to_permissions_and_allow_them)\n .setPositiveButton(R.string.settings, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(Extra.PACKAGE, getPackageName(), null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }\n } else if (requestCode == Extra.LOCATION) {\n getLocation();\n }\n }", "private void permissionsDenied() {\n Log.w(\"TAG\", \"permissionsDenied()\");\n }", "private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }", "void askForPermissions();", "private void callPermissionSettings() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", HomeActivity.this.getApplicationContext().getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 300);\n }", "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "void onRequestPermissionsResult(int reqCode, String[] permissions, int[] grants) {\n if (reqCode == REQ_PERMISSIONS) {\n Log.d(TAG, \"onRequestPermissionsResult\");\n for (int i = 0; i < permissions.length; i++) {\n if (grants[i] != PackageManager.PERMISSION_GRANTED) {\n String text = activity.getString(R.string.toast_scanning_requires_permission, permissions[i]);\n Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n startScan1();\n }\n }", "public void doPermissionGrantedStuffs() {\n TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n //Get IMEI Number of Phone //////////////// for this example i only need the IMEI\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n IMEINumber = tm.getDeviceId();\n SharedPreferences settings = getSharedPreferences(\"prefs\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"IMEI\", IMEINumber);\n editor.apply();\n\n IMEI = settings.getString(\"IMEI\", null);\n if (accessToken == null) {\n\n\n goToLogin(true);\n }\n\n }", "public void phoneStatePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.PROCESS_OUTGOING_CALLS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.PROCESS_OUTGOING_CALLS}, PERMISSIONS_REQUEST_PHONE_STATE);\n } else {\n Utils.log(\"already phoneStatePermission\");\n Utils.showToast(\"already phoneStatePermission\");\n// IntentFilter filter = new IntentFilter();\n// filter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);\n// registerReceiver(new PhoneStateReceiver(), filter);\n// Intent i = new Intent(MainActivity.this, PhoneCallStatesService.class);\n// startService(i);\n\n }\n }", "@Override\n public void onNotAcceptingPermissions(Permission.Type type) {\n Log.w(TAG, String.format(\"You didn't accept %s permissions\", type.name()));\n }", "public void requestPermission() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{\n Manifest.permission.CAMERA,\n Manifest.permission.READ_CONTACTS\n }, RequestPermissionCode);\n }", "public void askPermission() {\n try {\n if (Build.VERSION.SDK_INT >= 23) {\n //call the function to ask for permission\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, 100);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n if (requestCode == CAMERA_PERMISSIONS_REQUEST)\n {\n Log.i(TAG, \"Received Response For Camera Permission Request\");\n\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n Log.i(TAG, \"Permission Granted\");\n Intent intent = new Intent(RuntimePermissionActivity.this, PermissionGrantedActivity.class);\n startActivity(intent);\n }\n else\n {\n if (Build.VERSION.SDK_INT >= 23)\n {\n //********************* FIRST WAY ********************\n /*\n * showRationale = false If permission is denied (and never ask again is checked), otherwise true\n * shouldShowRequestPermissionRationale will return false if user clicks Never Ask Again, otherwise true\n */\n boolean showRationale = shouldShowRequestPermissionRationale(Manifest.permission.CAMERA);\n if (showRationale)\n {\n Log.i(TAG, \"Permission Denied\");\n permissionUtils.dialogWhenDenied();\n }\n else\n {\n Log.i(TAG, \"Never Ask Again With Checked\");\n permissionUtils.dialogWhenNeverAskAgain();\n }\n\n\n //********************* OR SECOND WAY ********************\n /*if (ActivityCompat.shouldShowRequestPermissionRationale(RuntimePermissionActivity.this, Manifest.permission.CAMERA))\n {\n Log.i(TAG, \"Permission Denied\");\n permissionUtils.dialogWhenDenied();\n }\n else\n {\n Log.i(TAG, \"Never Ask Again With Checked\");\n permissionUtils.dialogWhenDenied();\n }*/\n\n }\n }\n }\n else\n {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "public void mo5977n() {\n this.f5394N.postDelayed(new C1273Qa(this, new String[]{\"android.permission.RECORD_AUDIO\", \"android.permission.WRITE_EXTERNAL_STORAGE\"}), 300);\n }", "private void permissionLocationRequest() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);\n if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {\n if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {\n showMessageOKCancel(\"You need to allow access to Location\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n });\n }\n }\n\n }\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n // Request the permission and allow it\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Make sure the permission is granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n new String[] {Manifest.permission.READ_CALENDAR}, new boolean[] {true});\n }", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n public void onResume() {\n Log.d(LOG_TAG, \"called onResume()\");\n super.onResume();\n if (checkPermissions()) {\n startLocationUpdates();\n }\n }", "private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults){\n switch (requestCode){\n case 10:\n if(grantResults.length>0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){\n configureStart();\n }\n }\n }", "private void permissionsDenied() {\n Log.w(TAG, \"permissionsDenied()\");\n // TODO close app and warn user\n }", "public void requestAllManifestPermissionsIfNecessary(Activity paramActivity, PermissionsResultAction paramPermissionsResultAction) {\n }", "private void requestPermissions(Activity activity, int requestCode) {\n String[] permissions = getRequiredAndroidPermissions();\n handler.requestPermissions(activity, permissions, requestCode);\n }", "@Override\r\n public void onClick() {\r\n if (!permissionsGranted()) {\r\n if (isNull(MainActivity.active) || !MainActivity.active) {\r\n requestPermissions();\r\n }\r\n }\r\n else{\r\n toggleLTE();\r\n }\r\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "void requestNeededPermissions(int requestCode);", "@Override\n public void onPermissionDenied() {\n Log.d(TAG, \"onPermissionDenied() called\");\n }", "public static void requestAppPermissions(Activity activity){\n String s = com.combustiongroup.burntout.Manifest.permission.C2D_MESSAGE;\n // Here, thisActivity is the current activity\n if (ContextCompat.checkSelfPermission(activity,\n android.Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(activity,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(activity,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED ) {\n\n\n ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.CAMERA},\n PermissionsRequestCode);\n\n }\n }", "private void requestPermissions() {\n String[] PERMISSIONS = {android.Manifest.permission.WRITE_EXTERNAL_STORAGE};\r\n ActivityCompat.requestPermissions(this, PERMISSIONS, 112);\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n // Check for GPS usage permission\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED\r\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n try {\n switch (requestCode) {\n case REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 121);\n }\n break;\n\n case REQUEST_CODE_ASK_PERMISSIONS_STORAGE:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 1234);\n }\n break;\n\n default:\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onRequestPermissionsResult()\");\n }\n\n }", "public void askContactsPermission(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ) {\n\n ArrayList<String> permissionList=new ArrayList<String>();\n if(checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_CONTACTS);\n\n }\n if(checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.CALL_PHONE);\n }\n\n if(permissionList.size()>0) {\n ActivityCompat.requestPermissions(this, permissionList.toArray(new String[permissionList.size()]), 100);\n }\n\n //After this point you wait for callback in onRequestPermissionsResult(int, String[], int[]) overriden method\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private void requestCameraPermission() {\n requestPermissions(cameraPermissions, CAMERA_REQUEST_CODE);\n }", "void permissionGranted(int requestCode);", "@Override\n public void onGranted() {\n }", "@Override\n public void onGranted() {\n }", "private void requestPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.CAMERA}, 1);\n //if not permitted by the user ,send a message to the user to get the right\n } else {\n opencamera();\n //if permitted by the user already ,then start open the camera directly\n }\n }", "private void requestPermissions() {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_ID);\n }", "private void requestPermissions() {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_ID);\n }", "private void checkRuntimePermisson(boolean flag) {\n try {\n int hasRecordAudioPermission = 0;\n int hasWriteExternalStoragePermission = 0;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n hasWriteExternalStoragePermission = getActivity().checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n hasRecordAudioPermission = getActivity().checkSelfPermission(Manifest.permission.RECORD_AUDIO);\n if (hasWriteExternalStoragePermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS_STORAGE);\n return;\n } else if (hasRecordAudioPermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO},\n REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO);\n return;\n }\n }\n if (flag) {\n intializeRecorder();\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_checkRuntimePermisson()\");\n }\n\n }", "public void runTimePermission(){\n Dexter.withActivity(this).withPermission(Manifest.permission.READ_EXTERNAL_STORAGE)\n .withListener(new PermissionListener() {\n @Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n play();\n }\n\n @Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\n token.continuePermissionRequest();\n }\n }).check();\n }", "@Override\n public void onGranted() {\n }", "private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }", "private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void askPermission() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth LE. Buy another phone.\");\n builder.setPositiveButton(android.R.string.ok, null);\n finish();\n }\n\n //Checking if the Bluetooth is on/off\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n if (mBluetoothAdapter == null) {\n // Device does not support Bluetooth\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Uff\");\n builder.setMessage(\"This device does not support Bluetooth.\");\n builder.setPositiveButton(android.R.string.ok, null);\n } else {\n if (!mBluetoothAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 2);\n }\n }\n\n }", "@TargetApi(Build.VERSION_CODES.M)\n private void checkBTPermissions() {\n if(Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP){\n int permissionCheck = this.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += this.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n this.requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}, 1001); //Any number\n }\n }else{\n Log.d(TAG, \"checkBTPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\n }\n }", "private void alertDialogeForAskingPermissions() {\n builder.setMessage(getResources().getString(R.string.app_name) + \" needs access to \" + permissions[0] + \", \" + permissions[1]).setTitle(R.string.permissions_required);\n\n //Setting message manually and performing action on button click\n //builder.setMessage(\"Do you want to close this application ?\")\n builder.setCancelable(false)\n .setPositiveButton(R.string.later, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n // Action for 'Later'\n //Saving later boolean value as true, also saving time of pressed later\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }\n })\n .setNegativeButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults){\n switch (requestCode) {\n case MY_PERMISSIONS_REQUEST: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n // permission was granted\n // Launch App A2 i.e. Application2Project3.\n Log.i(\"Main Activity\",\"Allow Permission\");\n Intent intent=new Intent();\n intent.setAction(TOAST_INTENT);\n sendBroadcast(intent);\n } else {\n\n // permission denied, Do nothing Return back to Application1Project3\n break;\n }\n return;\n }\n }\n }", "private void dynamicPermission() {\n if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {\n Log.i(\"MainActivity\", \"android sdk <= 28 Q\");\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] strings =\n {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n ActivityCompat.requestPermissions(this, strings, 1);\n }\n } else {\n // Dynamically apply for required permissions if the API level is greater than 28. The android.permission.ACCESS_BACKGROUND_LOCATION permission is required.\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\") != PackageManager.PERMISSION_GRANTED) {\n String[] strings = {android.Manifest.permission.ACCESS_FINE_LOCATION,\n android.Manifest.permission.ACCESS_COARSE_LOCATION,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\"};\n ActivityCompat.requestPermissions(this, strings, 2);\n }\n }\n }", "private void RequestMultiplePermission() {\n // Creating String Array with Permissions.\n ActivityCompat.requestPermissions(SplashActivity.this, new String[]\n {\n INTERNET,\n ACCESS_NETWORK_STATE,\n WRITE_EXTERNAL_STORAGE,\n READ_EXTERNAL_STORAGE,\n ACCESS_COARSE_LOCATION,\n ACCESS_FINE_LOCATION,\n VIBRATE\n// CALL_PHONE,\n// SEND_SMS\n }, RequestPermissionCode);\n\n }", "private boolean shouldAskBackgroundPermissions() {\n return Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q;\n }", "private void requestCameraPermission() {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CALL_PHONE},\n REQUEST_CALL);\n }", "private boolean runtime_permissions() {\n if(Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},100);\n\n return true;\n }\n return false;\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n // Check for granted permission and remove from missing list\n if (requestCode == REQUEST_PERMISSION_CODE) {\n for (int i = grantResults.length - 1; i >= 0; i--) {\n if (grantResults[i] == PackageManager.PERMISSION_GRANTED) {\n missingPermission.remove(permissions[i]);\n }\n }\n }\n // If there is enough permission, we will start the registration\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else {\n Toast.makeText(getApplicationContext(), \"Missing permissions!!!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }", "@Test\n public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CALENDAR));\n\n String[] permissions = new String[] {Manifest.permission.READ_CALENDAR};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.READ_CALENDAR}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Clear the denial with prejudice\n grantPermission(Manifest.permission.READ_CALENDAR);\n revokePermission(Manifest.permission.READ_CALENDAR);\n\n // We just committed a suicide by revoking the permission. See part2 below...\n }" ]
[ "0.7302363", "0.71852934", "0.7184606", "0.7059669", "0.6892205", "0.6883556", "0.6832404", "0.6745898", "0.67177266", "0.6684275", "0.66612613", "0.6653703", "0.66335684", "0.6620952", "0.66168636", "0.6616343", "0.66024065", "0.6577802", "0.654006", "0.6536967", "0.6536859", "0.65293235", "0.65135825", "0.64935225", "0.6476723", "0.6470804", "0.6466893", "0.64645684", "0.6457537", "0.6457398", "0.64528716", "0.6432324", "0.64029944", "0.6396474", "0.63931876", "0.63876444", "0.638595", "0.63825625", "0.6381233", "0.63798106", "0.63632125", "0.6349211", "0.63383925", "0.6329052", "0.6328079", "0.63218004", "0.62985677", "0.62983996", "0.6296053", "0.6291999", "0.62885994", "0.62699676", "0.62618583", "0.6256739", "0.62483346", "0.62332404", "0.6231776", "0.62285024", "0.62202644", "0.6217168", "0.62088877", "0.62039006", "0.61984843", "0.6192716", "0.61923647", "0.61875135", "0.61847806", "0.61725396", "0.61710495", "0.6164097", "0.61632836", "0.6149904", "0.6145135", "0.61443096", "0.6136781", "0.6135856", "0.61323464", "0.61215234", "0.61215234", "0.6115038", "0.6111352", "0.6111352", "0.61091477", "0.6105157", "0.6102351", "0.6102009", "0.60967416", "0.60966575", "0.60954225", "0.60910046", "0.60846174", "0.60792464", "0.60784936", "0.6078286", "0.6076492", "0.606962", "0.6067706", "0.6066129", "0.6063768", "0.6062284", "0.6062266" ]
0.0
-1
Helpers / Camera Helpers Get the Id of the front camera
private void setupCamera(int width, int height) { CameraManager cameraManager = (CameraManager) getSystemService(CAMERA_SERVICE); try { if (cameraManager == null) return; for (String cameraId : cameraManager.getCameraIdList()) { CameraCharacteristics cc = cameraManager.getCameraCharacteristics(cameraId); if (cc.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_BACK) { continue; } mCameraId = cameraId; int deviceOrientation = getWindowManager().getDefaultDisplay().getRotation(); mTotalRotation = CameraUtils.calculateTotalRotation(cc, deviceOrientation); StreamConfigurationMap map = cc.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); int finalWidth = width; int finalHeight = height; boolean swapDimensions = mTotalRotation == 90 || mTotalRotation == 270; if (swapDimensions) { finalHeight = width; finalWidth = height; } mPreviewSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(SurfaceTexture.class), finalWidth, finalHeight); mVideoSize = CameraUtils.chooseOptimalSize(map.getOutputSizes(MediaRecorder.class), finalWidth, finalHeight); return; } } catch (CameraAccessException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCameraIdPref();", "private int findBackFacingCamera() {\n\n int numberOfCameras = Camera.getNumberOfCameras();\n for (int i = 0; i < numberOfCameras; i++) {\n Camera.CameraInfo info = new Camera.CameraInfo();\n Camera.getCameraInfo(i, info);\n if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {\n cameraId = i;\n break;\n }\n }\n return cameraId;\n }", "Camera getCamera();", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public Camera getCamera() { return (Camera)CameraSet.elementAt(0); }", "public static Camera getCameraInstance() {\n int backCameraId;\n Camera cam = null;\n try {\n backCameraId = findBackFacingCamera();// COMMENTED OUT FOR THE SAKE OF TESTING\n cam = Camera.open(backCameraId);\n }\n catch (Exception e) {\n Log.d(\"ERROR\", \"Failed to get camera: \"+ e.getMessage());\n }\n return cam;\n }", "public String getPreferredCameraId(int cameraType) {\n if (cameraType != CameraCharacteristics.LENS_FACING_FRONT\n && cameraType != CameraCharacteristics.LENS_FACING_BACK) {\n throw new IllegalArgumentException(\"Invalid camera type\");\n }\n\n try {\n for (String cameraId : mCameraManager.getCameraIdList()) {\n CameraCharacteristics characteristics =\n mCameraManager.getCameraCharacteristics(cameraId);\n\n if (characteristics.get(CameraCharacteristics.LENS_FACING)\n == cameraType) {\n Log.d(TAG, \"Found camera: \" + cameraId);\n return cameraId;\n }\n }\n\n //No matching camera found\n return null;\n } catch (CameraAccessException e) {\n Log.w(TAG, \"Unable to access camera devices.\", e);\n return null;\n } catch (NullPointerException e) {\n //This will happen if the device does not support Camera2\n Log.w(TAG, \"No Support for Camera2 APIs.\", e);\n return null;\n }\n }", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index);", "public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }", "public static Camera getCameraInstance() {\n Camera c = null;\n try {\n c = Camera.open(nextCam); // attempt to get a Camera instance\n } catch (Exception e) {\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public Camera getCamera() {\n return getValue(PROP_CAMERA);\n }", "public int[] getCamera() {\n\t\treturn camera;\n\t}", "public void setCamera(int camera) {\n\t\tCameraInfo cameraInfo = new CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\t\tfor (int i=0;i<numberOfCameras;i++) {\n\t\t\tCamera.getCameraInfo(i, cameraInfo);\n\t\t\tif (cameraInfo.facing == camera) {\n\t\t\t\tthis.mCameraId = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public CameraInstance getCameraInstance() {\n return cameraInstance;\n }", "private Camera selectAndOpenCamera() {\n\t\tCamera.CameraInfo info = new Camera.CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\n\t\tint selected = -1;\n\n\t\tfor (int i = 0; i < numberOfCameras; i++) {\n\t\t\tCamera.getCameraInfo(i, info);\n\n\t\t\tif( info.facing == Camera.CameraInfo.CAMERA_FACING_BACK ) {\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// default to a front facing camera if a back facing one can't be found\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = true;\n\t\t\t}\n\t\t}\n\n\t\tif( selected == -1 ) {\n\t\t\tdialogNoCamera();\n\t\t\treturn null; // won't ever be called\n\t\t} else {\n\t\t\treturn Camera.open(selected);\n\t\t}\n\t}", "private native void iniciarCamara(int idCamera);", "long getCaptureFestivalId();", "public OrthographicCamera getCamera() {\n\t\treturn cam;\n\t}", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index) {\n return camera_.get(index);\n }", "void setCameraIdPref(int cameraId);", "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "public Camera getCam() {\n return this.cam;\n }", "public static int getCameraFacingIntentExtras(Activity currentActivity) {\n\t\tint cameraId = -1;\n\n\t\tint intentCameraId = currentActivity.getIntent().getIntExtra(\n\t\t\t\tUtil.EXTRAS_CAMERA_FACING, -1);\n\n\t\tif (isFrontCameraIntent(intentCameraId)) {\n\t\t\t// Check if the front camera exist\n\t\t\tint frontCameraId = CameraHolder.instance().getFrontCameraId();\n\t\t\tif (frontCameraId != -1) {\n\t\t\t\tcameraId = frontCameraId;\n\t\t\t}\n\t\t} else if (isBackCameraIntent(intentCameraId)) {\n\t\t\t// Check if the back camera exist\n\t\t\tint backCameraId = CameraHolder.instance().getBackCameraId();\n\t\t\tif (backCameraId != -1) {\n\t\t\t\tcameraId = backCameraId;\n\t\t\t}\n\t\t}\n\t\treturn cameraId;\n\t}", "public OrthographicCamera getCamera() {\n\t\treturn this.camera;\n\t}", "public int switchCamera() {\n return mRtcEngine.switchCamera();\n }", "public void startFrontCam() {\n }", "private static Camera getCameraInstance(int cameraId) {\n Camera c = null;\n try {\n c = Camera.open(cameraId);\n }\n catch (Exception e) {\n // Camera is not available (in use or does not exist)\n Log.w(LOG_TAG, \"Camera is not available: \" + e.getMessage());\n }\n return c;\n }", "public Camera2D getCamera()\r\n\t{\r\n\t\treturn _Camera;\r\n\t}", "public void setCameraId(int currentId) {\n mRender.setCameraId(currentId);\n }", "private void fetchCameras() {\n\n mCameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n String[] cameraInfo = null;\n try {\n cameraInfo = mCameraManager.getCameraIdList();\n if (cameraInfo != null) {\n if (cameraInfo[0] != null) {\n backCamera = Integer.valueOf(cameraInfo[0]);\n isBackCameraSelected = true;\n imgviewCameraSelect.setTag(\"backCamera\");\n mCameraCharactersticsBack = fetchCameraCharacteristics(backCamera);\n hasBackCamera = true;\n }\n if (cameraInfo[1] != null) {\n frontCamera = Integer.valueOf(cameraInfo[1]);\n mCameraCharactersticsFront = fetchCameraCharacteristics(frontCamera);\n hasFrontCamera = true;\n }\n\n }\n } catch (CameraAccessException e) {\n Log.e(TAG, \"CameraAccessException\" + e.getMessage());\n }\n }", "@Override\n protected Camera getCamera() {\n return Camera.createForPositionAndAngles(new ThreeDoubleVector(31.0, 7.0, 5.5), 0.0, 0.7);\n\n // Camera for orientation curve interpolation presentation\n// return Camera.createForPositionAndAngles(new ThreeDoubleVector(54.5, 10.0, 2.5), -0.5, 0.3);\n }", "public String getIdentityCardFront() {\n return identityCardFront;\n }", "public static Camera getCameraInstance(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Camera.open(0); // This is the line the error occurs\n } else {\n return Camera.open();\n }\n }", "private Camera getCameraInstance() {\r\n Camera camera = null;\r\n try {\r\n camera = Camera.open();\r\n } catch (Exception e) {\r\n // cannot get camera or does not exist\r\n }\r\n Camera.Parameters params = camera.getParameters();\r\n\r\n List<Size> sizes = params.getSupportedPictureSizes();\r\n int w = 0, h = 0;\r\n for (Size size : sizes) {\r\n if (size.width > w || size.height > h) {\r\n w = size.width;\r\n h = size.height;\r\n }\r\n\r\n }\r\n params.setPictureSize(w, h);\r\n\r\n\r\n if (params.getSupportedFocusModes().contains(\r\n Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO)) {\r\n params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);\r\n }\r\n params.setPictureFormat(ImageFormat.JPEG);\r\n params.setJpegQuality(100);\r\n camera.setParameters(params);\r\n\r\n\r\n return camera;\r\n }", "void onFrontCameraNotFound() {\n mUserAwarenessListener.onErrorOccurred(Errors.FRONT_CAMERA_NOT_AVAILABLE);\n\n //Stop eye tracking.\n stopEyeTracking();\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "public Pj3dCamera Camera()\r\n\t{\r\n\t\tPj3dCamera cam = new Pj3dCamera(this);\r\n\t\treturn cam;\r\n\t}", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index) {\n if (cameraBuilder_ == null) {\n return camera_.get(index);\n } else {\n return cameraBuilder_.getMessage(index);\n }\n }", "private static void upgradeCameraId(SharedPreferences pref) {\n int cameraId = readPreferredCameraId(pref);\n if (cameraId == 0) return; // fast path\n\n int n = CameraHolder.instance().getNumberOfCameras();\n if (cameraId < 0 || cameraId >= n) {\n writePreferredCameraId(pref, 0);\n }\n }", "public boolean isCameraFrontFacing() {\n Characteristics chara = null;\n try {\n chara = this.mAppController.getCameraProvider().getCharacteristics(this.mCameraId);\n } catch (NullPointerException e) {\n }\n if (chara != null) {\n return chara.isFacingFront();\n }\n boolean z = true;\n if (this.mCameraId != 1) {\n z = false;\n }\n return z;\n }", "public static Camera getInstance() {\r\n return instance;\r\n }", "public static Camera getCameraInstance() {\n Camera c = null;\n try {\n c = Camera.open();\n } catch (Exception e) {\n }\n return c;\n }", "public void onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline r20) {\n /*\n r19 = this;\n r0 = r19\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"onCreateCameraPipeline\"\n r1.d(r2)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r2 = r20\n r1.f73l = r2\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.FileType r1 = r1.getFileType()\n com.arashivision.insta360.basemedia.model.FileType r2 = com.arashivision.insta360.basemedia.model.FileType.FISH_EYE\n r3 = 1\n r4 = 0\n if (r1 != r2) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.viewconstraint.Constraint r1 = r1.getConstraint()\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r2 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r2 = r2.IL1Iii\n int[] r2 = r2.getConstraintRatio()\n if (r1 == 0) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r5 = r0.f577a\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r6 = r5.I11L\n float r5 = r1.getDefaultDistance()\n double r9 = (double) r5\n float r5 = r1.getDefaultFov()\n double r11 = (double) r5\n r5 = r2[r3]\n float r5 = (float) r5\n r2 = r2[r4]\n float r2 = (float) r2\n float r5 = r5 / r2\n double r13 = (double) r5\n float r2 = r1.getXScale()\n double r7 = (double) r2\n float r1 = r1.getYScale()\n double r1 = (double) r1\n r15 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n r17 = r7\n r7 = r15\n r15 = r17\n r17 = r1\n r6.setGyroStabilizerFovDistance2(r7, r9, r11, r13, r15, r17)\n L_0x0059:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r1.setLoading(r4)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n if (r1 == 0) goto L_0x00cf\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r2 = r1.ILil\n if (r2 == 0) goto L_0x006d\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r2 = r2.getCameraRenderSurfaceInfo()\n if (r2 == 0) goto L_0x006d\n r4 = r3\n L_0x006d:\n if (r4 != 0) goto L_0x0077\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Custom surface is null\"\n L_0x0073:\n r1.e(r2)\n goto L_0x00c5\n L_0x0077:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r2 = r1.I11L\n if (r2 != 0) goto L_0x0080\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Render is null\"\n goto L_0x0073\n L_0x0080:\n boolean r2 = r1.llliI\n if (r2 == 0) goto L_0x0089\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Already render surface\"\n goto L_0x0073\n L_0x0089:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo r2 = new com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo\n r2.<init>()\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderWidth\n r2.renderWidth = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderHeight\n r2.renderHeight = r4\n a.a.a.a.e.a.e.l r4 = r1.f60IL\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r5 = r1.ILil\n int r5 = r5.getRenderModelType()\n com.arashivision.graphicpath.render.rendermodel.RenderModelType r4 = r4.a(r5)\n int r4 = r4.getType()\n r2.renderModeType = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n android.view.Surface r4 = r4.mSurface\n r2.mSurface = r4\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r4 = r1.I11L\n r4.startCameraRenderSurface(r2)\n r1.llliI = r3\n L_0x00c5:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.listener.IBasePlayerViewListener r1 = r1.f741\n if (r1 == 0) goto L_0x00ce\n r1.onLoadingFinish()\n L_0x00ce:\n return\n L_0x00cf:\n r1 = 0\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.e.a.f.h.onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline):void\");\n }", "private boolean isFrontCamera() {\n closeMenu();\n\n if (mIsVersionJ || mIsVersionK) {\n return (mDevice.hasObject(By.desc(\"Switch to back camera\")));\n } else if (mIsVersionI) {\n return (mDevice.hasObject(By.desc(\"Front camera\")));\n } else {\n // Open mode options if not open\n UiObject2 modeoptions = getModeOptionsMenuButton();\n if (modeoptions != null) {\n modeoptions.click();\n }\n return (mDevice.hasObject(By.desc(\"Front camera\")));\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Nullable\n protected static <T extends OpenCvCamera> T getCamera(String cameraId) {\n if (internalCamera != null && cameraId.equals(internalCameraId)) return (T) internalCamera;\n else if (externalCameras.containsKey(cameraId)) return (T) externalCameras.get(cameraId);\n else {\n Log.e(LOGGING_TAG, \"Tried to find camera with id \" + cameraId + \" but no camera with that id was registered.\");\n return null;\n }\n }", "public SVector3d getPositionCam() {\n\t\treturn transCamera;\n\t}", "public void onCamera();", "private Camera getCameraInstance() {\n Camera c = null;\n try {\n c = Camera.open(); // attempt to get a Camera instance\n\n Camera.Parameters params = c.getParameters();\n List<Camera.Size> sizes = params.getSupportedPictureSizes();\n\n // set the second lowest resolution for taking snapshots\n params.setPictureSize(sizes.get(sizes.size() - 2).width, sizes.get(sizes.size() - 2).height);\n\n c.setParameters(params);\n } catch (Exception e) {\n // Camera is not available (in use or does not exist)\n }\n return c;\n }", "public static Camera open() { \n return new Camera(); \n }", "public static Camera getInstance() {\n return INSTANCE;\n }", "private void checkCameraBeforeOpen() {\n // First get the back up camera\n List<String> backUpPreviewCamera = mCameraIdManager.getBackUpPreviewCameraId();\n // Second,get the remote camera and filter is connect camera\n LinkedHashMap<String, IRemoteDevice> remoteConnectedCamera = mIMultiCameraDeviceAdapter\n .queryRemoteDevices();\n // key-value is cameraId-deviceId\n LinkedHashMap<String, String> deviceId = mCameraIdManager.getDeviceId();\n List<String> deleteItem = new ArrayList<String>();\n int status = IMultiCameraDeviceAdapter.REMOTE_CAEMRA_STATUS_UNKNOWN;\n LogHelper.d(TAG, \"[checkCameraBeforeOpen],before check camera, the camera id :\"\n + backUpPreviewCamera);\n // back up camera maybe not equals remote camera,such as pause camera\n // and disconnect remote camera from cross mount setting.\n for (String needOpenCamera : mCameraIdManager.getDeviceId().keySet()) {\n if (!MultiCameraModuleUtil.isLocalCamera(needOpenCamera)) {\n if (remoteConnectedCamera.size() == 0) {\n deleteItem.add(needOpenCamera);\n } else {\n // get the device id according camera id from mDeviceId\n String needCheckdeviceId = deviceId.get(needOpenCamera);\n IRemoteDevice device = remoteConnectedCamera.get(needCheckdeviceId);\n if (device != null) {\n status = device.get(IRemoteDevice.KEY_REMOTE_SERVICE_STATUS);\n }\n // If the remote camera status is not connected,need remove it.\n if (IMultiCameraDeviceAdapter.REMOTE_CAEMRA_STATUS_CONNECTED != status) {\n deleteItem.add(needOpenCamera);\n }\n }\n }\n }\n // Update the back up preview camera id and update the camera id.\n for (String cameraId : deleteItem) {\n backUpPreviewCamera.remove(cameraId);\n updateCameraBeforeOpened(false, cameraId, null);\n }\n // if the camera id is null,need add the local camera into the preview list\n if (backUpPreviewCamera.size() == 0) {\n backUpPreviewCamera.add(mCameraId);\n updateCameraBeforeOpened(true, mCameraId, mLocalDeviceIdKeyPref + mCameraId);\n }\n\n LogHelper.d(TAG, \"[checkCameraBeforeOpen],after check camera, the camera id :\"\n + backUpPreviewCamera);\n }", "public static Camera getCameraInstance(){\n Camera c = null;\n try {\n c = Camera.open(); // attempt to get a Camera instance\n }\n catch (Exception e){\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "public static Camera getCameraInstance(){\n Camera c = null;\n try {\n c = Camera.open(); // attempt to get a Camera instance\n }\n catch (Exception e){\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "private void setupCamera(final int camera) {\n try {\n // mPreview = new CamPreview(this, camera, CamPreview.LayoutMode.NoBlank);// .FitToParent);\n } catch (Exception e) {\n Toast.makeText(this, R.string.cannot_connect_to_camera, Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n\n RelativeLayout.LayoutParams previewLayoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n Display display = getWindowManager().getDefaultDisplay();\n DisplayMetrics outMetrics = new DisplayMetrics();\n display.getMetrics(outMetrics);\n\n int width = outMetrics.widthPixels;\n int height = outMetrics.heightPixels;\n\n previewLayoutParams.height = width;\n previewLayoutParams.width = width;\n\n // Un-comment below line to specify the position.\n // mPreview.setCenterPosition(width / 2, height / 2);\n\n // previewParent.addView(mPreview, 0, previewLayoutParams);\n\n\n }", "public void onCameraPicked(String newCameraId);", "@SuppressLint(\"NewApi\")\n\tpublic static Camera getCameraInstance(int cameraId)\n {\n Log.d(\"tag\", \"getCameraInstance\");\n Camera c = null;\n try\n {\n c = Camera.open(cameraId); // attempt to get a Camera instance\n }\n catch (Exception e)\n {\n // Camera is not available (in use or does not exist)\n e.printStackTrace();\n Log.e(\"tag\", \"Camera is not available\");\n }\n return c; // returns null if camera is unavailable\n }", "public boolean isCameraFrontFacing() {\n return this.mAppController.getCameraProvider().getCharacteristics(this.mCameraId).isFacingFront();\n }", "@Override\n public int getMenuEntryId() {\n return R.id.nav_camera;\n }", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.CameraOrBuilder getCameraOrBuilder(\n int index);", "public void openCamera() {\n \n\n }", "public static CamcorderProfile getCameraProfile(int cameraId, int quality) {\n // adapt X\n try {\n mMethodGetProfile = CamcorderProfile.class.getDeclaredMethod(\n \"getMtk\", int.class, int.class);\n mMethodGetProfile.setAccessible(true);\n mIsGetProfileDetect = X_Supported;\n // getMtk is a static method\n // public static CamcorderProfile getMtk(int cameraId, int\n // quality) {\n Log.v(TAG, \"getCameraProfile adapt X\");\n } catch (SecurityException e) {\n Log.e(TAG, \"X getMtk SecurityException\");\n } catch (NoSuchMethodException e) {\n Log.e(TAG, \"X getMtk NoSuchMethodException\");\n } catch (IllegalArgumentException e) {\n Log.e(TAG, \"X getMtk IllegalArgumentException\");\n }\n if (mIsGetProfileDetect == 0) {\n // adapt XS\n try {\n Class<?> c = Class\n .forName(\"com.mediatek.camcorder.CamcorderProfileEx\");\n mMethodGetProfile = c.getDeclaredMethod(\"getProfile\",\n int.class, int.class);\n mIsGetProfileDetect = XS_Supported;\n // getProfile is a static method\n // public static CamcorderProfile getProfile(int cameraId, int\n // quality) {\n Log.v(TAG, \"getCameraProfile adapt XS\");\n } catch (ClassNotFoundException e) {\n // e.printStackTrace();\n } catch (SecurityException e) {\n Log.e(TAG, \"XS getProfile SecurityException\");\n } catch (NoSuchMethodException e) {\n Log.e(TAG, \"XS getProfile NoSuchMethodException\");\n }\n }\n\n try {\n if (mIsGetProfileDetect == X_Supported\n || mIsGetProfileDetect == XS_Supported) {\n Log.v(TAG, \"mIsGetProfileDetect:\" + mIsGetProfileDetect\n + \"mMethodGetProfile.invoke:\" + cameraId + \",\"\n + quality);\n return (CamcorderProfile) mMethodGetProfile.invoke(null,\n cameraId, quality);\n }\n } catch (IllegalAccessException e) {\n Log.e(TAG, \"mMethodGetProfile.invoke IllegalAccessException\");\n } catch (InvocationTargetException e) {\n Log.e(TAG, \"mMethodGetProfile.invoke InvocationTargetException\");\n }\n Log.v(TAG, \"return CamcorderProfile.get()\");\n // TODO add a protected here if the quality is not supported.\n return CamcorderProfile.get(cameraId, quality);\n }", "@Override\n\tpublic boolean isCameraRelated() {\n\t\treturn true;\n\t}", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.CameraOrBuilder getCameraOrBuilder(\n int index) {\n return camera_.get(index);\n }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }", "public static boolean hasFrontCamera(final Context context) {\n final PackageManager pm = context.getPackageManager();\n return pm != null && pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);\n }", "public long getCaptureFestivalId() {\n return captureFestivalId_;\n }", "public static Camera getCameraInstance(){\n\t Camera c = null;\n\t try {\n\t \tLog.d(TAG, \"not null\");\n\t c = Camera.open(); // attempt to get a Camera instance\n\t }\n\t catch (Exception e){\n\t // Camera is not available (in use or does not exist)\n\t }\n\t return c; // returns null if camera is unavailable\n\t}", "public long getCaptureFestivalId() {\n return captureFestivalId_;\n }", "public void openCamera(View view){\n if (isInspecting) {\n Context context = App.getContext();\n Intent intent = new Intent(Inspector.this, PhotoManager.class);\n intent.putExtra(\"blueprint\", blueprint);\n intent.putExtra(\"isInspecting\", isInspecting);\n intent.putExtra(\"filename\", filename);\n View parent = (View) view.getParent();\n String tag = parent.getTag().toString();\n intent.putExtra(\"cameraID\", tag);\n LogManager.reportStatus(context, \"INSPECTOR\", \"parent tag = \" + tag);\n startActivity(intent);\n }\n }", "void initializeCamera() {\n camera_linear = (LinearLayout) findViewById(R.id.camera_linear);\n //The preview frame is overlayed on the layout which shows the camera view.\n preview = (FrameLayout) findViewById(R.id.camera_preview);\n //Get an instance of the phone's camera.\n mCamera = cameraRecorder.getCameraInstance();\n //Find content fort the camera preview frame using the instance of the camera initialized.\n mPreview = new CameraPreview(getApplicationContext(), mCamera);\n //Apply the camera previes content from the camera to the preview frame itself.\n preview.addView(mPreview);\n }", "public java.util.List<org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera> getCameraList() {\n return camera_;\n }", "public CameraManager(HardwareMap hardwareMap) {\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n pipeline = new CvPipeline();\n phoneCam.setPipeline(pipeline);\n }", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "public static Camera getCameraInstance(int cameraId) {\n Camera c = null;\n try {\n c = Camera.open(cameraId); // attempt to get a Camera instance\n\n } catch (Exception e) {\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "private boolean _getCamera(){\n\n\t\ttry {\n\n\t\t\t// instantiate flash light object depending on SDK version\n\t\t\tif (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n\t\t\t\t_flash = new FlashLight_Pre_Marshmallow();\n\t\t\t}else{\n\t\t\t\t_flash = new FlashLight_Post_Marshmallow(_main);\n\t\t\t}\n\n\t\t\t// open the flash\n\t\t\t_flash.open();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tL.e(TAG, \"Camera Error : Couldn't get the camera, it may be used by another app !\");\n\t\t\tL.e(TAG, \"Camera Error : \" + e.getMessage());\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void setupCamera(int width, int height) {\n CameraManager cameraManager = (CameraManager) mActivity.getSystemService(Context.CAMERA_SERVICE);\n\n if (cameraManager == null) {\n return;\n }\n\n try {\n for (String cameraId : cameraManager.getCameraIdList()) {\n // get camera characteristics\n CameraCharacteristics cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId);\n\n Integer currentCameraId = cameraCharacteristics.get(CameraCharacteristics.LENS_FACING);\n if (currentCameraId == null) {\n // The return value of that key could be null if the field is not set.\n return;\n }\n if (currentCameraId != mRokidCameraParamCameraId.getParam()) {\n // if not desired Camera ID, skip\n continue;\n }\n int deviceOrientation = mActivity.getWindowManager().getDefaultDisplay().getRotation();\n mTotalRotation = CameraDeviceUtils.sensorToDeviceRotation(cameraCharacteristics, deviceOrientation, ORIENTATIONS);\n\n mImageReader = ImageReader.newInstance(mSizeImageReader.getSize().getWidth(), mSizeImageReader.getSize().getHeight(), mImageFormat, mMaxImages);\n mImageReader.setOnImageAvailableListener(mOnImageAvailableListener, mBackgroundHandler);\n\n // Check if auto focus is supported\n int[] afAvailableModes = cameraCharacteristics.get(\n CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES);\n if (afAvailableModes.length == 0 ||\n (afAvailableModes.length == 1\n && afAvailableModes[0] == CameraMetadata.CONTROL_AF_MODE_OFF)) {\n mAutoFocusSupported = false;\n } else {\n mAutoFocusSupported = true;\n }\n\n mCameraId = cameraId;\n return;\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public String getCaptureDevice();", "public Point getCameraPosition() {\n\t\treturn new Point(cameraPosition.x, cameraPosition.y, cameraPosition.z);\n\t}", "private void invokeCameraSerialNumber() {\n\n // get a file reference\n pictureUri = FileProvider.getUriForFile(this, getApplicationContext().getPackageName(), createImageFile()); // Make Uri file example file://storage/emulated/0/Pictures/Civil_ID20180924_180619.jpg\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Go to camera\n\n // tell the camera where to save the image.\n intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);\n\n // tell the camera to request WRITE permission.\n intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n startActivityForResult(intent, CAMERA_DEVICE_SERIAL_NUMBER);\n\n }", "public Matrix4f getCameraMatrix() {\n\t\treturn mCameraMatrix;\n\t}", "public void setCamera(Camera camera) {\r\n\t\tthis.camera = camera;\r\n\t}", "public void startCamera()\n {\n startCamera(null);\n }", "public interface CameraPreview {\n\n /**\n * Set the camera system this will act as the preview for.\n * <p/>\n * The preview will update the camera system as necessary for certain events, such as\n * setting the surface holder, or pausing/restarting the preview when reconfiguring the surface.\n *\n * @param cameraSystem the camera system to connect to\n */\n void connectToCameraSystem(@NonNull CameraSystem cameraSystem);\n\n}", "public Card front()\n {\n if (firstLink == null)\n return null;\n\n return firstLink.getCard();\n }", "java.util.List<org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera> \n getCameraList();", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }", "public void setCamera(Camera camera) {\n mCamera = camera;\n }", "public void getNativePreviewWindowId();", "private void pickFromCamera() {\n Intent startCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startCamera.putExtra(MediaStore.EXTRA_OUTPUT, uriImage);\n startActivityForResult(startCamera, IMAGE_PICK_CAMERA_CODE);\n\n }", "void onBind(String cameraId);", "protected Camera interceptCamera (LightProperties lp) {\n\t\treturn lp.camera;\n\t}", "public int getCameraCount() {\n return camera_.size();\n }", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "public Camera open(int cameraId) {\r\n Camera camera = null;\r\n try {\r\n if (mMethodOpenLevel9 != null) {\r\n Object[] argList = new Object[1];\r\n argList[0] = cameraId;\r\n camera = (Camera) mMethodOpenLevel9.invoke(null, argList);\r\n }\r\n } catch (Exception e) {\r\n Log.w(LOG_TAG, \"CameraHideMethods:mMethodOpenLevel9()\", e);\r\n }\r\n\r\n return camera;\r\n }", "public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.CameraOrBuilder getCameraOrBuilder(\n int index) {\n if (cameraBuilder_ == null) {\n return camera_.get(index); } else {\n return cameraBuilder_.getMessageOrBuilder(index);\n }\n }", "public void setCamera(Camera c) {\n\t\tmCamera = c;\n\t}", "private void createCameraSource() {\n\n int facing = CameraSource.CAMERA_FACING_FRONT;\n\n // If there's no existing cameraSource, create one.\n if (cameraSource == null) {\n cameraSource = new CameraSource(this, graphicOverlay);\n }\n\n CameraSource.setFacing(facing);\n cameraSource.setMachineLearningFrameProcessor(\n new FaceDetectorProcessor(this, defaultOptions));\n }", "private void openCamera(int desiredWidth, int desiredHeight) {\n if (mCamera != null) {\n throw new RuntimeException(\"camera already initialized\");\n }\n\n android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo();\n\n // Try to find a front-facing camera (e.g. for videoconferencing).\n int numCameras = android.hardware.Camera.getNumberOfCameras();\n for (int i = 0; i < numCameras; i++) {\n android.hardware.Camera.getCameraInfo(i, info);\n if (info.facing == android.hardware.Camera.CameraInfo.CAMERA_FACING_BACK) {\n mCamera = android.hardware.Camera.open(i);\n break;\n }\n }\n if (mCamera == null) {\n// Log.d(TAG, \"No front-facing camera found; opening default\");\n mCamera = android.hardware.Camera.open(); // opens first back-facing camera\n }\n if (mCamera == null) {\n throw new RuntimeException(\"Unable to open camera\");\n }\n\n android.hardware.Camera.Parameters parms = mCamera.getParameters();\n\n CameraUtils.choosePreviewSize(parms, desiredWidth, desiredHeight);\n\n // Give the camera a hint that we're recording video. This can have a big\n // impact on frame rate.\n parms.setRecordingHint(true);\n\n // leave the frame rate set to default\n mCamera.setParameters(parms);\n\n int[] fpsRange = new int[2];\n android.hardware.Camera.Size mCameraPreviewSize = parms.getPreviewSize();\n parms.getPreviewFpsRange(fpsRange);\n String previewFacts = mCameraPreviewSize.width + \"x\" + mCameraPreviewSize.height;\n if (fpsRange[0] == fpsRange[1]) {\n previewFacts += \" @\" + (fpsRange[0] / 1000.0) + \"fps\";\n } else {\n previewFacts += \" @[\" + (fpsRange[0] / 1000.0) +\n \" - \" + (fpsRange[1] / 1000.0) + \"] fps\";\n }\n// TextView text = (TextView) findViewById(R.id.cameraParams_text);\n// text.setText(previewFacts);\n\n mCameraPreviewWidth = mCameraPreviewSize.width;\n mCameraPreviewHeight = mCameraPreviewSize.height;\n\n\n// AspectFrameLayout layout = (AspectFrameLayout) findViewById(R.id.cameraPreview_afl);\n\n Display display = ((WindowManager)getSystemService(WINDOW_SERVICE)).getDefaultDisplay();\n\n if(display.getRotation() == Surface.ROTATION_0) {\n mCamera.setDisplayOrientation(90);\n// layout.setAspectRatio((double) mCameraPreviewHeight / mCameraPreviewWidth);\n } else if(display.getRotation() == Surface.ROTATION_270) {\n// layout.setAspectRatio((double) mCameraPreviewHeight/ mCameraPreviewWidth);\n mCamera.setDisplayOrientation(180);\n } else {\n // Set the preview aspect ratio.\n// layout.setAspectRatio((double) mCameraPreviewWidth / mCameraPreviewHeight);\n }\n }", "public static CameraManager get() {\n\t\treturn cameraManager;\n\t}", "public void getNativeVideoWindowId();" ]
[ "0.7244544", "0.72216797", "0.6812847", "0.6730583", "0.66934186", "0.6627097", "0.6546312", "0.6476441", "0.63648236", "0.6363041", "0.63348806", "0.63236105", "0.6291326", "0.62838227", "0.6283537", "0.628304", "0.6270997", "0.6256802", "0.6219861", "0.62177557", "0.62088805", "0.6180191", "0.61364055", "0.61254054", "0.6087875", "0.60789174", "0.6063595", "0.6045405", "0.60315347", "0.60006016", "0.59932065", "0.59560037", "0.59487283", "0.58977914", "0.5885147", "0.58845305", "0.58802205", "0.58794844", "0.5876113", "0.58751476", "0.5855796", "0.5850204", "0.58273923", "0.5825143", "0.5821273", "0.58189535", "0.57793134", "0.57670397", "0.57614857", "0.5723716", "0.5704582", "0.5703044", "0.57019067", "0.57019067", "0.569454", "0.5693087", "0.5687285", "0.5687259", "0.5686295", "0.5678442", "0.5676363", "0.566892", "0.5656707", "0.56537366", "0.563912", "0.5639113", "0.56379634", "0.562364", "0.5590808", "0.5581121", "0.55704606", "0.55566335", "0.5551547", "0.5546087", "0.5542846", "0.55123734", "0.54967344", "0.54911894", "0.5477093", "0.54761976", "0.546559", "0.5458967", "0.54516566", "0.5446907", "0.54343855", "0.5404192", "0.54005885", "0.5394886", "0.53870773", "0.53838366", "0.53799874", "0.5372971", "0.536736", "0.5367225", "0.5360455", "0.5349016", "0.5343882", "0.5342423", "0.53393376", "0.5335765", "0.5327338" ]
0.0
-1
Close the active camera device
private void closeCamera() { if (mCameraDevice != null) { mCameraDevice.close(); mCameraDevice = null; } if (mIsRecording) { long elapsedMillis = SystemClock.elapsedRealtime() - mTimer.getBase(); mTimer.stop(); mTimer.setVisibility(View.GONE); scrollContents(); mIsRecording = false; mRecordButton.setImageResource(R.drawable.ic_record_white); mMediaRecorder.stop(); mMediaRecorder.reset(); //Scan the file to appear in the device studio Intent mediaScannerIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); mediaScannerIntent.setData(Uri.fromFile(new File(mVideoFilePath))); sendBroadcast(mediaScannerIntent); logFirebaseVideoEvent(elapsedMillis); } if (mMediaRecorder != null) { mMediaRecorder.release(); mMediaRecorder = null; } if (mAnimator != null && mAnimator.isStarted()) { mAnimator.cancel(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeCamera()\n {\n }", "private void closeCamera() {\n if (null != cameraDevice) {\n cameraDevice.close();\n cameraDevice = null;\n }\n if (null != imageReader) {\n imageReader.close();\n imageReader = null;\n }\n }", "protected void closeCamera() {\n try {\n mCameraOpenCloseLock.acquire();\n if (null != mCameraDevice) {\n mCameraDevice.close();\n mCameraDevice = null;\n }\n if (null != mMediaRecorder) {\n mMediaRecorder.release();\n mMediaRecorder = null;\n }\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Interrupted while trying to lock camera closing.\");\n } finally {\n mCameraOpenCloseLock.release();\n }\n }", "public synchronized void closeDriver() {\n if (camera != null) {\n camera.getCamera().release();\n camera = null;\n }\n }", "public void closeDriver() {\n\t\tif (camera != null) {\n\t\t\tcamera.release();\n\t\t\tcamera = null;\n\t\t\tinitialized = false;\n\t\t}\n\t}", "private void releaseCamera() {\n if (mCamera != null) {\n mCamera.release(); // release the camera for other applications\n mCamera = null;\n }\n }", "void cameraClosed();", "public void releaseCamera()\n {\n\n if (mcCamera != null)\n {\n //stop the preview\n mcCamera.stopPreview();\n //release the camera\n mcCamera.release();\n //clear out the camera\n mcCamera = null;\n }\n }", "private void releaseCamera() {\n if(camera != null) {\n camera.stopPreview();\n camera.release();\n camera = null;\n }\n }", "private void releaseCamera() {\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }\n }", "void releaseCamera() {\n\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n }\n }", "private void releaseCamera() {\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.setPreviewCallback(null);\n mCamera.release();\n mCamera = null;\n }\n }", "private void releaseCamera() {\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.setPreviewCallback(null);\n mCamera.release();\n mCamera = null;\n }\n }", "void closeVideo();", "protected static void stopInternalCamera() {\n if (internalCamera != null) {\n internalCamera.stopStreaming();\n internalCamera.closeCameraDevice();\n }\n }", "private static void releaseCameraAndPreview() {\n if (cam != null) {\n cam.release();\n cam = null;\n }\n }", "void close(){\r\n // check precondition: device must be opened\r\n if (!checkOpen()){\r\n return;\r\n }\r\n // turn off antenna and LED\r\n cardReader.power(handle, (byte)0);\r\n cardReader.close(handle);\r\n handle = -1;\r\n message = \"Device closed\";\r\n }", "@Override\n public void onDisconnect(final UsbDevice device, final UsbControlBlock ctrlBlock) {\n if (mUVCCamera != null) {\n mUVCCamera.close();\n if (mPreviewSurface != null) {\n mPreviewSurface.release();\n mPreviewSurface = null;\n }\n }\n }", "private void stopAcquisition() {\r\n if (this.timer != null && !this.timer.isShutdown()) {\r\n try {\r\n // stop the timer\r\n this.timer.shutdown();\r\n this.timer.awaitTermination(33, TimeUnit.MILLISECONDS);\r\n } catch (InterruptedException e) {\r\n // log any exception\r\n System.err.println(\"Exception in stopping the frame capture, trying to close the video now... \" + e);\r\n }\r\n }\r\n\r\n if (this.capture.isOpened()) {\r\n // release the camera\r\n this.capture.release();\r\n }\r\n }", "private void stopAcquisition() {\n if (this.timer != null && !this.timer.isShutdown()) {\n try {\n // stop the timer\n this.timer.shutdown();\n this.timer.awaitTermination(33, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n // log any exception\n System.err.println(\"Exception in stopping the frame capture, trying to release the camera now... \" + e);\n }\n }\n\n if (this.capture.isOpened()) {\n // release the camera\n this.capture.release();\n }\n }", "public void releaseCameraAndPreview() {\n if (mCameraActivity.mCamera != null) {\n mCameraActivity.mCamera.setPreviewCallback(null);\n mCameraActivity.mCamera.stopPreview();\n mImageCapture.mSurfaceHolder.removeCallback(mCameraPreview);\n mCameraPreview.surfaceDestroyed(mImageCapture.mSurfaceHolder);\n mSurfaceHolder.getSurface().release();\n mSurfaceHolder = null;\n releaseCamera();\n }\n }", "public final void destroy(){\n stop();\n LIBRARY.CLEyeDestroyCamera(camera_);\n camera_ = null;\n PS3_LIST_.remove(this);\n }", "@Override\r\n public void close(){\r\n if(!isOpened){\r\n log.warning(\"close(): not open\");\r\n return;\r\n }\r\n \r\n if(servoCommandWriter!=null) {\r\n// log.info(\"disabling all servos\");\r\n// disableAllServos();\r\n try{\r\n Thread.sleep(10);\r\n }catch(InterruptedException e){\r\n \r\n }\r\n servoCommandWriter.shutdownThread();\r\n }\r\n servoCommandWriter.close(); // unbinds pipes too\r\n if(gUsbIo!=null) gUsbIo.close();\r\n UsbIo.destroyDeviceList(gDevList);\r\n log.info(\"device closed\");\r\n errorString=null;\r\n isOpened=false;\r\n \r\n }", "@SuppressLint(\"NewApi\")\n public void onPause() {\n Log.d(TAG, \"onPause\");\n try {\n mCameraOpenCloseLock.acquire();\n if (null != mCameraDevice) {\n mCameraDevice.close();\n mCameraDevice = null;\n Log.d(TAG, \"CameraDevice Close\");\n }\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Interrupted while trying to lock camera closing.\");\n } finally {\n mCameraOpenCloseLock.release();\n }\n }", "public void stop() {\n\n\t\tif (!started.compareAndSet(true, false)) {\n\t\t\treturn;\n\t\t}\n\n\t\tLOG.debug(\"Stopping panel rendering and closing attached webcam\");\n\n\t\tupdater.stop();\n\t\tupdater = null;\n\n\t\timage = null;\n\n\t\ttry {\n\t\t\terrored = !webcam.close();\n\t\t} catch (WebcamException e) {\n\n\t\t\terrored = true;\n\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tredraw();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthrow e;\n\t\t}\n\t}", "public void end()\r\n\t{\n\t\ttry{\r\n\t\tNIVision.IMAQdxStopAcquisition(curCam);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t}\r\n\t}", "@Override\n\tpublic void close() {\n\t\tlight.close();\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.closeMediaControl();\r\n\r\n\t\t\t\t\t}", "@Override\n protected void onPause() {\n closeCamera();\n\n stopBackgroundThread();\n super.onPause();\n }", "public void stop(){\n if (mCamera != null){\n mCamera.stopPreview();\n mCamera.setPreviewCallback(null);\n mCamera.release();\n mCamera = null;\n }\n if (mHolder != null) {\n mHolder.getSurface().release();\n mHolder = null;\n }\n }", "public void onStop() {\n super.onStop();\n this.mZxingview.stopCamera();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//\t\tLog.e(\"destroy\", \"CameraActivity �׾�Ф�\");\n\t\t//\t\tsendMessage(\"exit\");\n\t\t//\t\tmodeEasyActivity.finish();\n\t}", "public void close(){\n this.boardController.close();\n }", "public void close() {\r\n\t\tframe.dispose();\r\n\t}", "public int cameraOff() {\r\n System.out.println(\"hw- desligarCamera\");\r\n return serialPort.enviaDados(\"!111F*\"); //camera OFF\r\n }", "public void freeCamera(final int id){\n\t\t//android.util.Log.d(TAG,\"freeCamera(\"+id+\")\");\n\t\tthis.cameras.delete(id);\n\t}", "@Override // com.master.cameralibrary.CameraViewImpl\n public void stop() {\n Camera camera = this.mCamera;\n if (camera != null) {\n camera.stopPreview();\n }\n this.mShowingPreview = false;\n releaseCamera();\n }", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "@Override\n public void stopCamera() {\n super.stopCamera();\n\n if(cameraListener != null)\n cameraListener.onCameraStop();\n }", "@Override\n public void closeMedia(LaunchSession launchSession, final ResponseListener<Object> listener) {\n stop(listener);\n }", "public void stop() {\n synchronized (mLock) {\n //if (!mRunning)\n //{\n // throw new IllegalStateException(\"CameraStreamer is already stopped\");\n //} // if\n \t\n \tLog.d(TAG, \"Stop\");\n \t\n mRunning = false;\n if (mMJpegHttpStreamer != null) {\n mMJpegHttpStreamer.stop();\n mMJpegHttpStreamer = null;\n } // if\n \n if (mCamera != null) {\n mCamera.release();\n mCamera = null;\n } // if\n } // synchronized\n mLooper.quit();\n }", "public void terminate() {\n screen.closeScreen();\n }", "public void closeGrabber() {\n grabberServo.setPosition(GRABBER_CLOSE);\n isGrab = false;\n }", "public void obtainCameraOrFinish() {\n mCamera = getCameraInstance();\n if (mCamera == null) {\n Toast.makeText(VideoCapture.getSelf(), \"Fail to get Camera\", Toast.LENGTH_LONG).show();\n VideoCapture.getSelf().finish();\n }\n }", "@Override\n public void onClick(View v) {\n int camerasNumber = Camera.getNumberOfCameras();\n if (camerasNumber > 1) {\n //release the old camera instance\n //switch camera, from the front and the back and vice versa\n\n releaseCamera();\n chooseCamera();\n } else {\n\n }\n }", "@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}", "public void destroy(){\n Log.d(TAG, \"onDestroy called\");\n runRunnable = false;\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }\n isPaused = true;\n // TODO stop executorService\n\n //executor.shutdown();\n cameraThread.stop();\n\n }", "public void closeView() {\n\t\tframeSystem.dispose();\n\t}", "public void surfaceDestroyed(SurfaceHolder holder) {\n stopCamera();\n }", "@Override\n protected void onPause() {\n ReleaseCamera();\n super.onPause();\n }", "public void closeImage() {\n\n\t}", "@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n this.releaseCamera();\n }", "public native final void stopPreview();", "void close(VirtualFrame frame);", "@Override\n\tpublic void onDestroy() {\n\t\t\n\t\tLog.d(TAG,\"onDestroy\");\n\t\tif(mCameraDevices!=null){\n\t\t\tmCameraDevices.release();\n\t\t}\n\t\tshowFloatTool(false);\n\t\tsuper.onDestroy();\n\t}", "public void stopStreaming() {\n phoneCam.stopStreaming();\n }", "@Override public void close() {\n\t\tthis.timer.cancel();\n\t\tthis.motionStream.removeListener(this);\n\t}", "@Override\n public void windowClosing(WindowEvent e) {\n new Thread(new Runnable() {\n public void run() {\n pcu.setDone();\n camera.getDriver().cleanUp();\n frame.setVisible(false);\n frame.dispose();\n }\n }).start();\n }", "public void onPause() {\n releaseCamera();\n }", "private void turnOffCamera() {\n playSound();\n preview.removeAllViews();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n camera.stopPreview();\n camera.release();\n camera = null;\n isCameraOn = false;\n strobo.setChecked(false);\n turnOffFlash();\n toggleButtonImageCamera();\n\n }", "void close() {\n\t\t\n\t\tthis.frame.setVisible(false);\n\t\tthis.frame.dispose();\n\t\t\n\t}", "private void shutdown() {\n mMediaRecorder.reset();\n mMediaRecorder.release();\n mCamera.release();\n\n // once the objects have been released they can't be reused\n mMediaRecorder = null;\n mCamera = null;\n }", "public native void exitScreenShotModeNative();", "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tif(myCamera!=null){\r\n\t\t\tmyCamera.stopPreview();\r\n\t\t\tmyCamera.release();//釋放相機\r\n\t\t\tmyCamera=null;\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n if (camera != null && previewing) {\n camera.stopPreview();\n camera.release();\n camera = null;\n\n previewing = false;\n }\n }", "public void releaseVideoPreview() {\n previewView.removeView(mVideoCapture.mTextureView);\n }", "public void openCamera() {\n \n\n }", "public void close() {\n\t\tcurrentClip.stop();\n\t\tcurrentClip.close();\n\t\tisPlaying = false;\n\t}", "public native void Close();", "public void stopDevice(){\n //Stop the device.\n super.stopDevice();\n }", "void closeActivity();", "public void release() {\r\n if (BuildConfig.DEBUG) {\r\n HiLog.debug(LABEL, \"release()\", new Object[0]);\r\n }\r\n if (!this.mNativeSurfaceHandle.equals(BigInteger.ZERO)) {\r\n this.mAgpContext.getEngine().destroySwapchain();\r\n Core.destroyAndroidSurface(this.mAgpContext.getDevice(), this.mNativeSurfaceHandle);\r\n this.mNativeSurfaceHandle = BigInteger.ZERO;\r\n }\r\n this.mAgpContext = null;\r\n }", "public void stopPreview() {\n\t\tif (autoFocusManager != null) {\n\t\t\tautoFocusManager.stop();\n\t\t\tautoFocusManager = null;\n\t\t}\n\t\tif (camera != null && previewing) {\n//\t\t\tLog.d(TAG, \"stopPreview\");\n\t\t\tcamera.stopPreview();\n//\t\t\tpreviewCallback.setHandler(null, 0);\n\t\t\tpreviewing = false;\n\t\t}\n\t\t\n\t}", "public native void close();", "public native void close();", "@Override\n protected void onPause() {\n super.onPause();\n releaseCamera();\n }", "protected void releaseVideoCapturebjects(boolean stopThread) {\n /** release video capture if !null */\n if (mVideoCapture != null) {\n\n /**\n * TODO:: need method to release camera2\n */\n try {\n mVideoCapture.mPreviewSession.stopRepeating();\n mVideoCapture.mPreviewSession.abortCaptures();\n mVideoCapture.mPreviewSession.close();\n mVideoCapture.mPreviewSession = null;\n\n mVideoCapture.mMediaRecorder.release();\n mVideoCapture.closeCamera();\n mVideoCapture.releaseVideoPreview();\n mVideoCapture = null;\n\n } catch (Exception e) {\n mVideoCapture.mPreviewSession = null;\n mVideoCapture = null;\n }\n }\n }", "public void close(){\n \tisClosed = true;\n \tClawAct.set(true);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "private void dispose() {\n theCar = null;\n win.dispose();\n }", "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException e) {\n Log.e(TAG, \"Stack:\" + Log.getStackTraceString(new Throwable()));\n }\n }\n\n mProfileConnector.disconnect();\n }", "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) \r\n\t{\n\t\tmCamera.stopPreview();\r\n\t\tmCamera.release(); \r\n\t}", "@Override\r\n protected void onDestroy() {\n \r\n \r\n \r\n if(DJIDrone.getDjiCamera() != null)\r\n DJIDrone.getDjiCamera().setReceivedVideoDataCallBack(null);\r\n mDjiGLSurfaceView.destroy();\r\n super.onDestroy();\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n FrontCameraVerificationActivity.this.finish();\n }", "public void surfaceDestroyed(SurfaceHolder holder) {\n \tif(CameraActivity.mCamera == null) return; \n \tCameraActivity.mCamera.release();\n \tCameraActivity.mCamera = null;\n }", "public void close() {\n\t\tSystem.out.println(\"Closed!\");\n\t\tStage stage = (Stage)gameScene.getWindow();\n\t\tstage.close();\n\t}", "public void closeMidi() {\n\t\tjDevice.close();\n\t}", "@Override\n protected void onPause() {\n super.onPause();\n if (theCamera != null){\n theCamera.stopPreview();\n theCamera.release();\n theCamera = null;\n }\n }", "public void close(){\n if(this.alreadyPlayingService != null){\n try{\n this.alreadyPlayingService.close();\n }\n catch(Exception ex){\n Log.e(DictationModel.class.getSimpleName(), \"Failed to close\", ex);\n }\n }\n this.closed.set(true);\n }", "public void close(){\n this.mMovieCursor.unregisterContentObserver(mContentObserver);\n mContentObserver = null;\n this.mMovieCursor.close();\n loadedMovies.clear();\n loadedMovies = null;\n }", "public void releaseOCR(){\n \tif(baseApi != null){ baseApi.end(); baseApi = null; } \n\t\tmState = State.UNINITIALIZED;\n }", "@UnsupportedAppUsage\n public void close() {\n this.mProfileConnector.disconnect();\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public void close() {\n/* 325 */ synchronized (this.mixer) {\n/* 326 */ if (isOpen()) {\n/* */ \n/* */ \n/* */ \n/* 330 */ setOpen(false);\n/* */ \n/* */ \n/* 333 */ implClose();\n/* */ \n/* */ \n/* 336 */ this.mixer.close(this);\n/* */ } \n/* */ } \n/* */ }", "public void stop() {\n\t\tthread.requestStop = true;\n\t\tlong start = System.currentTimeMillis()+timeout;\n\t\twhile( start > System.currentTimeMillis() && thread.running )\n\t\t\tThread.yield();\n\n\t\tdevice.stopDepth();\n\t\tdevice.stopVideo();\n\t\tdevice.close();\n\t}", "public void closeFrame() {\n framesize = wordpointer = bitindex = -1;\n }", "private void closeFrame()\n\t{\n\t\tSystem.exit(0);\n\t}", "@Override\n\t\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\tif (mCamera != null) {\n\t\t\t\t\tmCamera.stopPreview();\t\t\t\t\t\t\t\t\t\t//Stop the preview \n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\r\n\t\t\t\tif (mVideoContrl != null) {\r\n\t\t\t\t\t// mVideoContrl.releaseMediaPlayer();\r\n\t\t\t\t\tmVideoContrl.closeMediaControl();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private void quitGame() {\n this.primaryStage.close();\n }", "public void close(){\r\n \tStage stage = (Stage) exit.getScene().getWindow();\r\n\t stage.close();\r\n\t main.browserInteraction.close();\r\n }" ]
[ "0.8269154", "0.8111534", "0.8026502", "0.77020764", "0.7431959", "0.71309197", "0.71295893", "0.7038205", "0.69940484", "0.6955189", "0.69134897", "0.6799669", "0.6799669", "0.67384446", "0.6649253", "0.66456085", "0.6605222", "0.6578938", "0.65104663", "0.6420057", "0.63243574", "0.6320822", "0.62967694", "0.6257577", "0.6243525", "0.62112707", "0.6197839", "0.6188071", "0.6160993", "0.6145551", "0.61411595", "0.612341", "0.6086715", "0.60681003", "0.60634017", "0.6049783", "0.6039254", "0.6008164", "0.5991521", "0.59789777", "0.59606516", "0.59536624", "0.59464854", "0.5922142", "0.5919623", "0.5901796", "0.5892744", "0.58921236", "0.5890717", "0.58824617", "0.5871231", "0.586384", "0.5857029", "0.58554745", "0.58500797", "0.5841047", "0.5840037", "0.5830247", "0.5820081", "0.5814574", "0.5809723", "0.57888716", "0.5783776", "0.57817817", "0.57723045", "0.57706016", "0.5766006", "0.57603014", "0.575461", "0.57249135", "0.5695742", "0.5687377", "0.5684898", "0.5683359", "0.5683359", "0.5681258", "0.56746536", "0.56713474", "0.5666066", "0.5659881", "0.56466836", "0.5640351", "0.56356704", "0.5635115", "0.5624582", "0.561796", "0.5605042", "0.5600981", "0.5600108", "0.55981654", "0.559053", "0.5585834", "0.558477", "0.5571224", "0.5567654", "0.5564791", "0.5564202", "0.5553287", "0.5539394", "0.5526584" ]
0.74182504
5
Start the background thread for the camera
private void startBackgroundThread() { mThread = new HandlerThread(getString(R.string.app_name)); mThread.start(); Timber.d("Background thread started successfully"); mHandler = new Handler(mThread.getLooper()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void startBackgroundThread() {\n mBackgroundThread = new HandlerThread(\"Camera Background\");\n mBackgroundThread.start();\n mBackgroundHandler = new Handler(mBackgroundThread.getLooper());\n }", "private void startBackgroundThread() {\n backgroundHandlerThread = new HandlerThread(\"Camera2\");\n backgroundHandlerThread.start();\n backgroundHandler = new Handler(backgroundHandlerThread.getLooper());\n }", "public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms (30 frames/sec)\n\t\t\tRunnable frameGrabber = new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tgrabFrame();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttimer = Executors.newSingleThreadScheduledExecutor();\n\t\t\ttimer.scheduleAtFixedRate(frameGrabber, 0, 500, TimeUnit.MILLISECONDS);\n\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// log the error\n\t\t\tSystem.err.println(\"Impossible to open the camera connection...\");\n\t\t}\n \t}", "public void startCamera()\n {\n startCamera(null);\n }", "public void startCameraProcessing() {\n this.checkCameraPermission();\n\n try {\n cameraManager.openCamera(cameraId, new CameraDevice.StateCallback() {\n @Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n onCameraOpened();\n }\n\n @Override\n public void onDisconnected(@NonNull CameraDevice camera) {\n\n }\n\n @Override\n public void onError(@NonNull CameraDevice camera, int error) {\n System.out.println(\"CAMERA ERROR OCCURRED: \" + error);\n }\n\n @Override\n public void onClosed(@NonNull CameraDevice camera) {\n super.onClosed(camera);\n }\n }, null);\n }\n catch (Exception e) {\n System.out.println(\"CAMERA FAILED TO OPEN\");\n e.printStackTrace();\n }\n }", "@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsynchronized (mSync) {\n\t\t\t\t// 描画スレッドが実行されるまで待機\n\t\t\t\tif (!isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmSync.wait();\n\t\t\t\t\t} catch (final InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinit();\n\t\t\tif (egl.getGlVersion() > 2) {\n\t\t\t\tcaptureLoopGLES3();\n\t\t\t} else {\n\t\t\t\tcaptureLoopGLES2();\n\t\t\t}\n\t\t\t// release resources\n\t\t\trelease();\n//\t\t\tif (DEBUG) Log.v(TAG, \"captureTask finished\");\n\t\t}", "private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }", "private void startPreview() {\n if (cameraConfigured && camera!=null) {\n camera.startPreview();\n inPreview=true;\n }\n }", "public void startFrontCam() {\n }", "@Override\n public void init() {\n startCamera();\n }", "public void onStart() {\n\n mVideoFolder = createVideoFolder();\n mImageFolder = createImageFolder();\n mMediaRecorder = new MediaRecorder();\n\n startBackgroundThread();\n\n if (mTextureView.isAvailable()) {\n // TODO: see Google Example add comments\n // pause and resume\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n\n } else {\n // first time\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }", "public void onCameraOpened() {\n openCameraCommon();\n initializeControlByIntent();\n new Thread() {\n public void run() {\n try {\n Thread.sleep(500);\n PhotoModule.this.mIsCameraOpened = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.start();\n }", "@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "public void start(String name, String ip) {\r\n\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\r\n\t\t\t\t// Camera setup code\r\n\t\t\t\tcam = CameraServer.getInstance().addAxisCamera(name, ip);\r\n\t\t\t\tcam.setBrightness(0);\r\n\t\t\t\tcam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\tcam.setExposureHoldCurrent();\r\n\t\t\t\tcam.setResolution(320, 240);\r\n\t\t\t\tsink = CameraServer.getInstance().getVideo();\r\n\t\t\t\toutputStream = CameraServer.getInstance().putVideo(\"Post Porkcessing\", 320, 240);\r\n\t\t\t\tsecondaryOutput = CameraServer.getInstance().putVideo(\"Post Porkcessing 2: Electric Boogaloo\", 320,\r\n\t\t\t\t\t\t240);\r\n\t\t\t\t// tertiaryOutput = CameraServer.getInstance().putVideo(\"Post\r\n\t\t\t\t// Porkcessing 3: Finalmente\", 320, 240);\r\n\t\t\t\t// When using a Mat object, you must first create an empty\r\n\t\t\t\t// object of it before doing anything.\r\n\t\t\t\tcurrentPureFrame = new Mat();\r\n\t\t\t\tpostProcessingFrame = new Mat();\r\n\t\t\t\tArrayList<MatOfPoint> contours = new ArrayList<>();\r\n\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\t// This is where the image processing code goes.\r\n\t\t\t\t\tif (process) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Acquires the current frame from the camera\r\n\t\t\t\t\t\tsink.grabFrame(currentPureFrame);\r\n\t\t\t\t\t\tdouble[] color = currentPureFrame.get(120, 160);\r\n\t\t\t\t\t\tif (OI.mainJoy.getRawButton(1))\r\n\t\t\t\t\t\t\tSystem.out.println(color[0] + \" : \" + color[1] + \" : \" + color[2]);\r\n\t\t\t\t\t\tpostProcessingFrame = currentPureFrame;\r\n\t\t\t\t\t\t// cam.setExposureManual(20);\r\n\t\t\t\t\t\t// cam.setBrightness(80);\r\n\t\t\t\t\t\t// cam.setWhiteBalanceManual(50);\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * Basic theory: Go! After acquiring the image, you\r\n\t\t\t\t\t\t * first must filter by color. Call the\r\n\t\t\t\t\t\t * Imgproc.inRange() function and supply a minimum HSV\r\n\t\t\t\t\t\t * and maximum HSV. This will return a 'binary' image.\r\n\t\t\t\t\t\t * With this image, we can detect contours(basically\r\n\t\t\t\t\t\t * shapes). Then, we can find the bounding box of each\r\n\t\t\t\t\t\t * individual contour and filter accordingly.\r\n\t\t\t\t\t\t * \r\n\t\t\t\t\t\t * range was 70, 120, 120 to 100, 255, 255\r\n\t\t\t\t\t\t * \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (!OI.mainJoy.getRawButton(8)) { // TODO: ID THIS\r\n\t\t\t\t\t\t\tcam.setBrightness(20);\r\n\t\t\t\t\t\t\tcam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\t\t\t\tcam.setExposureHoldCurrent();\r\n\t\t\t\t\t\t\t// Imgproc.blur(postProcessingFrame,\r\n\t\t\t\t\t\t\t// postProcessingFrame, new Size(1, 1)); //:100:\r\n\t\t\t\t\t\t\t// :+1: :100:\r\n\r\n\t\t\t\t\t\t\t// Core.inRange(postProcessingFrame, new Scalar(70,\r\n\t\t\t\t\t\t\t// 150, 0), new Scalar(390, 360, 360),\r\n\t\t\t\t\t\t\t// postProcessingFrame);\r\n\t\t\t\t\t\t\t// cam.setExposureHoldCurrent();\r\n\t\t\t\t\t\t\t// cam.setWhiteBalanceHoldCurrent();\r\n\t\t\t\t\t\t\tMat copy = postProcessingFrame.clone();\r\n\r\n\t\t\t\t\t\t\tImgproc.cvtColor(copy, copy, Imgproc.COLOR_BGR2GRAY);\r\n\t\t\t\t\t\t\tImgproc.cvtColor(postProcessingFrame, postProcessingFrame, Imgproc.COLOR_BGR2RGB);\r\n\t\t\t\t\t\t\tCore.inRange(postProcessingFrame, new Scalar(0, 80, 40), new Scalar(100, 180, 180),\r\n\t\t\t\t\t\t\t\t\tpostProcessingFrame);\r\n\t\t\t\t\t\t\tImgproc.blur(copy, copy, new Size(2, 2));\r\n\t\t\t\t\t\t\tImgproc.threshold(copy, copy, 40, 255, Imgproc.THRESH_BINARY);\r\n\t\t\t\t\t\t\tMat and = copy.clone();\r\n\t\t\t\t\t\t\tCore.bitwise_and(copy, postProcessingFrame, and);\r\n\t\t\t\t\t\t\tImgproc.cvtColor(postProcessingFrame, postProcessingFrame, Imgproc.COLOR_GRAY2BGR);\r\n\r\n\t\t\t\t\t\t\t// SmartDashboard.putNumber(\"Contours\",\r\n\t\t\t\t\t\t\t// contours.size());\r\n\t\t\t\t\t\t\tint[] i = new int[5];\r\n\t\t\t\t\t\t\tsecondaryOutput.putFrame(postProcessingFrame);\r\n\t\t\t\t\t\t\tImgproc.findContours(and, contours, new Mat(), Imgproc.RETR_LIST,\r\n\t\t\t\t\t\t\t\t\tImgproc.CHAIN_APPROX_SIMPLE);\r\n\t\t\t\t\t\t\tint largestID = 0;\r\n\t\t\t\t\t\t\tdouble xs[] = new double[] { 0, 0 };\r\n\t\t\t\t\t\t\tif (contours.size() > 0) {\r\n\t\t\t\t\t\t\t\tlargestID = findLargestContour(contours);\r\n\t\t\t\t\t\t\t\tdouble[] XY = findXY(contours.get(largestID));\r\n\t\t\t\t\t\t\t\txs[0] = XY[0];\r\n\r\n\t\t\t\t\t\t\t\tImgproc.cvtColor(and, and, Imgproc.COLOR_GRAY2BGR);\r\n\t\t\t\t\t\t\t\tImgproc.drawContours(and, contours, findLargestContour(contours),\r\n\t\t\t\t\t\t\t\t\t\tnew Scalar(200, 100, 200));\r\n\r\n\t\t\t\t\t\t\t\tImgproc.drawMarker(and, new Point(XY[0] + 320 / 2, XY[1]),\r\n\r\n\t\t\t\t\t\t\t\t\t\tnew Scalar(Math.random() * 255, Math.random() * 255, Math.random() * 255));\r\n\t\t\t\t\t\t\t\t// contours.clear();\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Largest width\",\r\n\t\t\t\t\t\t\t\t\t\tImgproc.boundingRect(contours.get(largestID)).width);\r\n\t\t\t\t\t\t\t\tRect r = Imgproc.boundingRect(contours.get(largestID));\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Ratio\", (((double) r.height) / ((double) r.width)));\r\n\t\t\t\t\t\t\t\tif (contours.size() > 1) {\r\n\t\t\t\t\t\t\t\t\tcontours.remove(largestID);\r\n\t\t\t\t\t\t\t\t\tlargestID = findLargestContour(contours);\r\n\t\t\t\t\t\t\t\t\tXY = findXY(contours.get(largestID));\r\n\t\t\t\t\t\t\t\t\txs[1] = XY[0];\r\n\t\t\t\t\t\t\t\t\tImgproc.drawContours(and, contours, findLargestContour(contours),\r\n\t\t\t\t\t\t\t\t\t\t\tnew Scalar(200, 100, 200));\r\n\r\n\t\t\t\t\t\t\t\t\tImgproc.drawMarker(and, new Point(XY[0] + 320 / 2, XY[1]),\r\n\t\t\t\t\t\t\t\t\t\t\tnew Scalar(Math.random() * 255, Math.random() * 255, Math.random() * 255));\r\n\t\t\t\t\t\t\t\t\tsetAngleOff(((xs[0] + xs[1]) / 2) * degreesPerPixel);\r\n\t\t\t\t\t\t\t\t\tsetDistanceOff((xs[0] + xs[1]) / 2);\r\n\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", ((xs[0] + xs[1]) / 2) * degreesPerPixel);\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"Distance Relative\", Math.abs(xs[0] - xs[1]));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tsetAngleOff(0);\r\n\t\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", 0);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tsetAngleOff(0);\r\n\t\t\t\t\t\t\t\tSmartDashboard.putNumber(\"X degrees off\", 0);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\toutputStream.putFrame(and);\r\n\t\t\t\t\t\t\tcontours.clear();\r\n\t\t\t\t\t\t\tand.release();\r\n\t\t\t\t\t\t\tcopy.release();\r\n\t\t\t\t\t\t\tpostProcessingFrame.release();\r\n\t\t\t\t\t\t\tcurrentPureFrame.release();\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// TODO:DO CAMERA STUFF\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).start();\r\n\r\n\t}", "public void startBackgroundThread() {\n this.backgroundThread = new HandlerThread(\"DepthDecoderThread\");\n this.backgroundThread.start();\n this.backgroundHandler = new Handler(backgroundThread.getLooper());\n }", "@Override\n public void startCamera() {\n super.startCamera();\n\n if(cameraListener != null)\n cameraListener.onCameraStart();\n }", "public VisionThread (double framerate)\n\t{\t\n\t\tSystem.out.println(\"creating visionthread\");\n\t\t//camera setup\n\t\tcamera = new UsbCamera(\"camera1\", 0);\n camera.setResolution(320, 240);\n camera.setFPS(30);\n camera.setBrightness(0);\n camera.setExposureManual(20);\n camera.setWhiteBalanceManual(4000);\n \n cvSink = CameraServer.getInstance().getVideo(camera);\n cvSink.setEnabled(true);\n cvSource = CameraServer.getInstance().putVideo(\"GearCam\", 320, 240);\n \n \timage = new Mat();\n contours = new ArrayList<MatOfPoint>();\n mPipeline = new Pipeline();\n\t\t\n\t\ttarget1 = new RotatedRect();\n\t\ttarget2 = new RotatedRect();\n\t\tcombinedTarget = new Rect();\n\t\tcombinedTargetCenter = 0;\n\t\ttargetsFound = 0;\n\t\t\n\t\tthreadWait = Math.max((int)(Math.round(1.0 / framerate)) * 1000, 1);\n\t\t\n\t\trunningcount = 0;\n\t}", "public void startPreview() {\r\n\t\tCamera localCamera = camera;\r\n\t\tif (localCamera != null && !isPreview) {\r\n\t\t\tcamera.startPreview();\r\n\t\t\tisPreview = true;\r\n\t\t}\r\n\t}", "@FXML\r\n protected void startCamera(Event event)\r\n {\n if (this.rootElement != null)\r\n {\r\n // get the ImageView object for showing the video stream\r\n final ImageView frameView = currentFrame;\r\n final BorderPane root = (BorderPane) this.rootElement;\r\n // check if the capture stream is opened\r\n if (!this.capture.isOpened())\r\n {\r\n \t\tSystem.out.println(\"Starting Camera ...\");\r\n // start the video capture\r\n this.capture.open(0);\r\n // grab a frame every 33 ms (30 frames/sec)\r\n TimerTask frameGrabber = new TimerTask() {\r\n @Override\r\n public void run()\r\n {\r\n javafx.scene.image.Image tmp = grabFrame();\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n frameView.setImage(tmp);\r\n }\r\n });\r\n\r\n }\r\n };\r\n this.timer = new Timer();\r\n //set the timer scheduling, this allow you to perform frameGrabber every 33ms;\r\n this.timer.schedule(frameGrabber, 0, 33);\r\n this.start_btn.setText(\"Stop Camera\");\r\n }\r\n else\r\n {\r\n this.start_btn.setText(\"Start Camera\");\r\n // stop the timer\r\n if (this.timer != null)\r\n {\r\n this.timer.cancel();\r\n this.timer = null;\r\n }\r\n // release the camera\r\n this.capture.release();\r\n // clear the image container\r\n frameView.setImage(null);\r\n }\r\n }\r\n }", "public void Start() \r\n {\r\n // Set the canvas as the current phone's screen\r\n mDisplay.setCurrent(this);\r\n\r\n // we call our own initialize function to setup all game objects\r\n GameInitialize();\r\n\r\n // Here we setup the thread and start it\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n }", "@Override\n protected void onResume() {\n super.onResume();\n cameraView.start();\n }", "private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (preview == null) {\n //Log.d(TAG, \"resume: Preview is null\");\n }\n if (graphicOverlay == null) {\n //Log.d(TAG, \"resume: graphOverlay is null\");\n }\n preview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }", "public void startGearCam() {\n }", "public void start() {\n\t\tcanvas.createBufferStrategy(2);\n\t\tbuffer = canvas.getBufferStrategy();\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (cameraPreview == null) {\n Logger.e(TAG, \"Preview is null\");\n }\n cameraPreview.start(cameraSource, fireFaceOverlay);\n } catch (IOException e) {\n// Logger.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }", "private void runMainLoop() {\n\n ImageProcessor imageViewer = new ImageProcessor();\n Mat webcamMatImage = new Mat();\n Image tempImage;\n\n //VideoCapture capture = new VideoCapture(0); // Capture from web cam\n VideoCapture capture = new VideoCapture(\"rtsp://192.168.2.64/Streaming/Channels/101\"); // Capture from IP Camera\n //VideoCapture capture = new VideoCapture(\"src/main/resources/videos/192.168.2.64_20160804140448.avi\"); // Capture avi file\n\n // Setting camera resolution\n capture.set(Videoio.CAP_PROP_FRAME_WIDTH, 800);\n capture.set(Videoio.CAP_PROP_FRAME_HEIGHT, 600);\n\n if (capture.isOpened()) { // Check whether the camera is instantiated\n while (true) { // Retrieve each captured frame in a loop\n capture.read(webcamMatImage);\n if (!webcamMatImage.empty()) {\n tempImage = imageViewer.toBufferedImage(webcamMatImage);\n ImageIcon imageIcon = new ImageIcon(tempImage, \"Captured Video\");\n imageLabel.setIcon(imageIcon);\n frame.pack(); // This will resize the window to fit the image\n } else {\n System.out.println(\" -- Frame not captured or the video has finished! -- Break!\");\n break;\n }\n }\n } else {\n System.out.println(\"Couldn't open capture.\");\n }\n }", "public void startCamera() throws SQLException {\n\n\t\tif (!database.init()) {\n\n\t\t\tgui.putOnLog(\"Error: Database Connection Failed ! \");\n\t\t} else {\n\t\t\tisDBready = true;\n\t\t\tgui.putOnLog(\"Success: Database Connection Succesful ! \");\n\t\t}\n\n\t\t// *******************************************************************************************\n\n\t\tif (isDBready) {\n\t\t\tgui.getRecogniseBtn().setEnabled(true);\n\t\t\tgui.getSaveBtn().setEnabled(true);\n\t\t}\n\n\t\tfillListOfFaceImages();\n\n\t\tif (FOLDER.isDirectory()) {\n\t\t\tfor (final File f : FOLDER.listFiles()) {\n\t\t\t\tBufferedImage img = null;\n\t\t\t\ttry {\n\t\t\t\t\timg = ImageIO.read(f);\n\t\t\t\t\tImageIcon imageIcon = new ImageIcon(img);\n\t\t\t\t\tImage image = imageIcon.getImage();\n\t\t\t\t\tImage newimg = image.getScaledInstance(80, 80, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\t\timageIcon = new ImageIcon(newimg);\n\t\t\t\t\tJLabel label = new JLabel(imageIcon);\n\t\t\t\t\tgui.tile.add(label);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tgui.putOnLog(\"Real Time WebCam Stream Started !\");\n\t\ttheFaceDetector.start();\n\t\t// **********************************************************************************************\n\t}", "public synchronized void startPreview() {\n OpenCamera theCamera = camera;\n if (theCamera != null && !previewing) {\n theCamera.getCamera().startPreview();\n previewing = true;\n autoFocusManager = new AutoFocusManager(context, theCamera.getCamera());\n }\n }", "public void surfaceCreated(SurfaceHolder holder) {\n startCamera(holder);\n }", "public void run () {\n\t\twhile (!stopped) {\n\t\t\ttry {\n\t\t\t\tgetBoardFieldInternal(SAMPLESIZE);\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\tLCD.drawString(\"camera failed\", 0, 8);\n\t\t\t\t//System.out.println(\"Error: \"+ex);\n\t\t\t\t//TODO: find a way to restart camera in case it crashes\n\t\t\t\t//TODO: find a way to test if the camera is operational\n\t\t\t}\n\t\t\tDelay.msDelay(INTERVAL);\n\t\t}\n\t\t// close everything and finish up\n\t\t//cameraNXT.enableTracking(false);\n\t\t//cameraNXT.close();\n\t}", "private void startCameraSource() {\n\n if (cameraSource != null) {\n try {\n cameraPreview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n\n }", "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n thread = new MainThread(getHolder(), this);\n\n Constants.INIT_TIME = System.currentTimeMillis();\n\n // Makes game loop start running\n thread.setRunning(true);\n thread.start();\n }", "@Override // com.master.cameralibrary.CameraViewImpl\n public boolean start() {\n chooseCamera();\n openCamera();\n if (this.mPreview.isReady()) {\n setUpPreview();\n }\n this.mShowingPreview = true;\n this.mCamera.startPreview();\n return true;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_camera_preview);\n\t\tmCamSV = (SurfaceView) findViewById(R.id.camera_preview_surface_cam);\n\n\t\tmCamSV.getHolder().setFixedSize(VisionConfig.getWidth(),\n\t\t\t\tVisionConfig.getHeight());\n\n\t\tLog.i(\"MyLog\", \"CAP: onCreate\");\n\n\t\t// Setup Bind Service\n\t\tVisionConfig.bindService(this, mConnection);\n\t\ttakeAPictureReceiver = new TakeAPictureReceiver();\n\t\tIntentFilter filterOverlayVision = new IntentFilter(\n\t\t\t\tRobotIntent.CAM_TAKE_PICKTURE);\n\t\tHandlerThread handlerThreadOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadOverlay\");\n\t\thandlerThreadOverlay.start();\n\t\tLooper looperOverlay = handlerThreadOverlay.getLooper();\n\t\thandlerOverlay = new Handler(looperOverlay);\n\t\tregisterReceiver(takeAPictureReceiver, filterOverlayVision, null,\n\t\t\t\thandlerOverlay);\n\t\t\n\t\tfaceDetectionReceiver = new FaceDetectionReceiver();\n\t\tIntentFilter filterFaceDetection = new IntentFilter(RobotIntent.CAM_FACE_DETECTION);\n\t\tHandlerThread handlerThreadFaceDetectionOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadFaceDetectionOverlay\");\n\t\thandlerThreadFaceDetectionOverlay.start();\n\t\tLooper looperFaceDetectionOverlay = handlerThreadFaceDetectionOverlay.getLooper();\n\t\thandleFaceDetection = new Handler(looperFaceDetectionOverlay);\n\t\tregisterReceiver(faceDetectionReceiver, filterFaceDetection, null,\n\t\t\t\thandleFaceDetection);\n\t\t\n\t\t\n//\t\tfaceDetectionReceiver2 = new FaceDetectionReceiver2();\n//\t\tIntentFilter filterFaceDetection2 = new IntentFilter(\"hhq.face\");\n//\t\tHandlerThread handlerThreadFaceDetectionOverlay2 = new HandlerThread(\n//\t\t\t\t\"MyNewThreadFaceDetectionOverlay2\");\n//\t\thandlerThreadFaceDetectionOverlay2.start();\n//\t\tLooper looperFaceDetectionOverlay2 = handlerThreadFaceDetectionOverlay2.getLooper();\n//\t\thandleFaceDetection2 = new Handler(looperFaceDetectionOverlay2);\n//\t\tregisterReceiver(faceDetectionReceiver2, filterFaceDetection2, null,\n//\t\t\t\thandleFaceDetection2);\t\t\n\n\t\t\t\t\n\t\tpt.setColor(Color.GREEN);\n\t\tpt.setTextSize(50);\n\t\tpt.setStrokeWidth(3);\n\t\tpt.setStyle(Paint.Style.STROKE);\n\t\t\n//\t\tpt2.setColor(Color.BLUE);\n//\t\tpt2.setTextSize(50);\n//\t\tpt2.setStrokeWidth(3);\n//\t\tpt2.setStyle(Paint.Style.STROKE);\n\t}", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "@Override\n public void run() {\n preview.startAnimation(fadein);\n //Launch camera layout\n camera_linear.startAnimation(fadein);\n //Launch capture button\n captureButton.startAnimation(fadein);\n //Make these components visible\n preview.setVisibility(View.VISIBLE);\n captureButton.setVisibility(View.VISIBLE);\n camera_linear.setVisibility(View.VISIBLE);\n //Create onClickListener for the capture button\n captureButton.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // get an image from the camera\n if(cameraRecorder.getSafeToTakePicture()) {\n Log.i(\"Taking Picture: \", \"Safe\");\n captureButton.setImageResource(R.drawable.kids_ui_record_anim_alt_mini);\n mCamera.takePicture(null, null, mPicture);\n cameraRecorder.setSafeToTakePicture(false);\n }\n\n else {\n Log.i(\"Taking Picture: \", \"Unsafe\");\n }\n }\n }\n );\n\n }", "public void start() {\n\n\t\tif (!started.compareAndSet(false, true)) {\n\t\t\treturn;\n\t\t}\n\n\t\tLOG.debug(\"Starting panel rendering and trying to open attached webcam\");\n\n\t\tstarting = true;\n\n\t\tif (updater == null) {\n\t\t\tupdater = new ImageUpdater();\n\t\t}\n\n\t\tupdater.start();\n\n\t\ttry {\n\t\t\terrored = !webcam.open();\n\t\t} catch (WebcamException e) {\n\n\t\t\terrored = true;\n\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tredraw();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tstarting = false;\n\t\t}\n\t}", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "@Override\n\t\tpublic void run() {\n\t\t\tif(mCameraDevices != null && mParameters!=null){\n\t\t\t\tmParameters.setFlashMode(Parameters.FLASH_MODE_TORCH);\n\t\t\t\tmCameraDevices.setParameters(mParameters); \n\t\t\t\tison = true;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tLog.d(TAG,\"mParameters is null\");\n\t\t\t\tison = true;\n\t\t\t}\n\t\t\tmCallback.onLightStateChange(ison);\n\t\t}", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@FXML\n public void startCapture(ActionEvent event) throws IOException, PcapNativeException, NotOpenException {\n \tex = Executors.newScheduledThreadPool(3);\n \tallThreads = Executors.newFixedThreadPool(6);\n handle = DeviceListController.getPcapNetworkInterface().openLive(65535, PromiscuousMode.PROMISCUOUS, 50);\n \n //set to capture network in\n handle.setDirection(PcapDirection.IN);\n\n //start capture thread\n Capture cap = new Capture(handle);\n allThreads.execute(cap);\n \n //turn on defragmenter\n Runnable defrag = new Defragmenter();\n ex.scheduleAtFixedRate(defrag, 0, 1000, TimeUnit.MILLISECONDS);\n\n //detection engine\n DetectionHandler detectionHandler = new DetectionHandler();\n allThreads.execute(detectionHandler); \n \n //start db handler - has to be started last\n DatabaseHandler dbHandler = new DatabaseHandler();\n allThreads.execute(dbHandler);\n\n editRuleFileButton.setDisable(true);\n editRuleFilePath.setDisable(true);\n startButton.setDisable(true);\n stopButton.setDisable(false);\n }", "private void startCamera() {\n PreviewConfig previewConfig = new PreviewConfig.Builder().setTargetResolution(new Size(640, 480)).build();\n Preview preview = new Preview(previewConfig);\n preview.setOnPreviewOutputUpdateListener(output -> {\n ViewGroup parent = (ViewGroup) dataBinding.viewFinder.getParent();\n parent.removeView(dataBinding.viewFinder);\n parent.addView(dataBinding.viewFinder, 0);\n dataBinding.viewFinder.setSurfaceTexture(output.getSurfaceTexture());\n updateTransform();\n });\n\n\n // Create configuration object for the image capture use case\n // We don't set a resolution for image capture; instead, we\n // select a capture mode which will infer the appropriate\n // resolution based on aspect ration and requested mode\n ImageCaptureConfig imageCaptureConfig = new ImageCaptureConfig.Builder().setCaptureMode(ImageCapture.CaptureMode.MIN_LATENCY).build();\n\n // Build the image capture use case and attach button click listener\n ImageCapture imageCapture = new ImageCapture(imageCaptureConfig);\n dataBinding.captureButton.setOnClickListener(v -> {\n File file = new File(getExternalMediaDirs()[0], System.currentTimeMillis() + \".jpg\");\n imageCapture.takePicture(file, executor, new ImageCapture.OnImageSavedListener() {\n @Override\n public void onImageSaved(@NonNull File file) {\n String msg = \"Photo capture succeeded: \" + file.getAbsolutePath();\n Log.d(\"CameraXApp\", msg);\n dataBinding.viewFinder.post(\n () -> Toast.makeText(CameraXDemo.this, msg, Toast.LENGTH_SHORT).show()\n );\n }\n\n @Override\n public void onError(@NonNull ImageCapture.ImageCaptureError\n imageCaptureError, @NonNull String message, @Nullable Throwable cause) {\n String msg = \"Photo capture failed: \" + message;\n Log.e(\"CameraXApp\", msg, cause);\n dataBinding.viewFinder.post(\n () -> Toast.makeText(CameraXDemo.this, msg, Toast.LENGTH_SHORT).show()\n );\n }\n });\n });\n\n\n // Setup image analysis pipeline that computes average pixel luminance\n ImageAnalysisConfig analyzerConfig = new ImageAnalysisConfig.Builder().setImageReaderMode(\n ImageAnalysis.ImageReaderMode.ACQUIRE_LATEST_IMAGE).build();\n // Build the image analysis use case and instantiate our analyzer\n ImageAnalysis analyzerUseCase = new ImageAnalysis(analyzerConfig);\n analyzerUseCase.setAnalyzer(executor, new LuminosityAnalyzer());\n\n CameraX.bindToLifecycle(this, preview, imageCapture, analyzerUseCase);\n }", "public synchronized void start(){\n\t\tthis.running = true;\n\t\tthis.thread = new Thread(this,\"Game\");\n\t\tthread.start();\n\n\t}", "private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }", "private void StartSyncCapture() {\n\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n SetTextOnUIThread(\"\");\n isCaptureRunning = true;\n try {\n FingerData fingerData = new FingerData();//predefined class to get result data\n\n //Method to capture finger print with in time out session\n int ret = mfs100.AutoCapture(fingerData, timeout,false);\n Log.e(\"StartSyncCapture.RET\", \"\"+ret);\n if (ret != 0) {\n SetTextOnUIThread(mfs100.GetErrorMsg(ret));\n } else {\n lastCapFingerData = fingerData;\n final Bitmap bitmap = BitmapFactory.decodeByteArray(fingerData.FingerImage(), 0,\n fingerData.FingerImage().length);\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //set bitmap image to the image view\n imgFinger.setImageBitmap(bitmap);\n }\n });\n\n SetTextOnUIThread(\"Capture Success\");\n String log = \"\\nQuality: \" + fingerData.Quality()\n + \"\\nNFIQ: \" + fingerData.Nfiq()\n + \"\\nWSQ Compress Ratio: \"\n + fingerData.WSQCompressRatio()\n + \"\\nImage Dimensions (inch): \"\n + fingerData.InWidth() + \"\\\" X \"\n + fingerData.InHeight() + \"\\\"\"\n + \"\\nImage Area (inch): \" + fingerData.InArea()\n + \"\\\"\" + \"\\nResolution (dpi/ppi): \"\n + fingerData.Resolution() + \"\\nGray Scale: \"\n + fingerData.GrayScale() + \"\\nBits Per Pixal: \"\n + fingerData.Bpp() + \"\\nWSQ Info: \"\n + fingerData.WSQInfo();\n SetLogOnUIThread(log);\n\n SetData2(fingerData);\n\n }\n } catch (Exception ex) {\n SetTextOnUIThread(ex.toString());\n } finally {\n isCaptureRunning = false;\n }\n }\n }).start();\n }", "private void initThread() {\r\n\t\tthreadPreviewDataToImageData = new ThreadPreviewDataToImageData();\r\n\t\t// threadPreviewDataToFakePictureImageData = new\r\n\t\t// ThreadPreviewDataToFakePictureImageData();\r\n\t\t// threadPreviewYUVDecode = new ThreadPreviewYUVDecode();\r\n\r\n\t\tthreadPreviewDataToImageData.start();\r\n\t\t/*\r\n\t\t * if (CameraConfigure.isUseFakeImageData) { //\r\n\t\t * threadPreviewDataToFakePictureImageData.start(); } else {\r\n\t\t * //threadPreviewYUVDecode.start(); }\r\n\t\t */\r\n\r\n\t\t/** preview callback to ThreadPreviewDataToImageData */\r\n\t\tif (null == BlockingQueuePreviewData.getBlockingQueuePreviewData()) {\r\n\t\t\tnew BlockingQueuePreviewData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadQRcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteData.getBlockingQueueGrayByteData()) {\r\n\t\t\tnew BlockingQueueGrayByteData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBarcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteDataArray\r\n\t\t\t\t.getBlockingQueueGrayByteDataArray()) {\r\n\t\t\tnew BlockingQueueGrayByteDataArray();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBCardScanning */\r\n\t\tif (null == BlockingQueueGrayByteDataPreviewData\r\n\t\t\t\t.getBlockingQueueGrayByteDataPreviewData()) {\r\n\t\t\tnew BlockingQueueGrayByteDataPreviewData();\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueByteArray.getBlockingQueueByteArray()) { new\r\n\t\t * BlockingQueueByteArray(); }\r\n\t\t */\r\n\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueFakePictureImageData\r\n\t\t * .getBlockingQueueFakePictureImageData()) { new\r\n\t\t * BlockingQueueFakePictureImageData(); }\r\n\t\t */\r\n\t}", "@Override\n public void run() {\n cameraDetector.setDetectJoy(true);\n cameraDetector.setDetectAnger(true);\n cameraDetector.setDetectSadness(true);\n cameraDetector.setDetectSurprise(true);\n cameraDetector.setDetectFear(true);\n cameraDetector.setDetectDisgust(true);\n }", "public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void startTracking()\n {\n if(!pixyThread.isAlive())\n {\n pixyThread = new Thread(this);\n pixyThread.start();\n leds.setMode(LEDController.Mode.ON);\n }\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "private void setUpAndConfigureCamera() {\n\t\t// Open and configure the camera\n\t\tmCamera = selectAndOpenCamera();\n\n\t\tCamera.Parameters param = mCamera.getParameters();\n\n\t\t// Smaller images are recommended because some computer vision operations are very expensive\n\t\tList<Camera.Size> sizes = param.getSupportedPreviewSizes();\n\t\tCamera.Size s = sizes.get(closest(sizes,640,360));\n\t\tparam.setPreviewSize(s.width,s.height);\n\t\tmCamera.setParameters(param);\n\n\t\t// start image processing thread\n\n\t\t// Start the video feed by passing it to mPreview\n\t\tmPreview.setCamera(mCamera);\n\t}", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "public void ThreadStart()\r\n\t{\r\n\t\tthread_running=true;\r\n\t\tNewBallTheard.start();\r\n\t}", "public synchronized void start() {\n\t\tif (running) {\n\t\t\treturn;\n\t\t}\n\t\trunning = true; // thread\n\t\tthread = new Thread(this);\n\t\tthread.start(); // calls run method, where majority of game code wil go\n\t}", "@Override\n public void surfaceCreated(SurfaceHolder arg0) {\n screen_width = this.getWidth();\n screen_height = this.getHeight();\n initBitmap(); // 初始化图片资源\n threadFlag = true;\n thread.start();\n }", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public native final void startPreview();", "protected void startCamera() {\n profileImageCaptured = new File(\n Environment.getExternalStorageDirectory() + \"/\" + \"temp.png\");\n if (profileImageCaptured.exists())\n profileImageCaptured.delete();\n\n outputFileUri = Uri.fromFile(profileImageCaptured);\n Intent intent = new Intent(\n android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n intent.putExtra(\"return-data\", true);\n startActivityForResult(intent, CAMERA_REQUEST);\n\n }", "@Override\n protected void onStart() {\n camera_ = getCameraInstance();\n Parameters params;\n\n if (camera_ != null) {\n params = camera_.getParameters();\n params.setPreviewFormat(ImageFormat.NV21);\n getSmallestPreviewSize(params);\n params.setPreviewSize(width_, height_);\n //params.setFlashMode(Parameters.FLASH_MODE_TORCH);\n params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);\n camera_.setParameters(params);\n\n frame_ = new RGB[width_ * height_];\n for (int i = 0; i < frame_.length; ++i) {\n frame_[i] = new RGB();\n }\n\n camera_.setPreviewCallback(new PreviewCallback() {\n @Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n synchronized (frame_) {\n decodeYUV420SP(frame_, data, width_, height_);\n }\n }\n });\n SurfaceTexture texture_ = new SurfaceTexture(0);\n try {\n camera_.setPreviewTexture(texture_);\n } catch (IOException e) {\n e.printStackTrace();\n }\n camera_.startPreview();\n }\n\n super.onStart();\n }", "private void startPreview(CameraCaptureSession session) throws CameraAccessException{\n mPreviewBuilder.addTarget(mSurface);\n mPreviewBuilder.addTarget(mImageReader.getSurface());\n session.setRepeatingRequest(mPreviewBuilder.build(), mSessionCaptureCallback, mCamSessionHandler);\n }", "private void startPreview() {\n if (null == mCameraDevice || !mVideoPreview.isAvailable() || null == mPreviewSize) {\n return;\n }\n try {\n closePreviewSession();\n SurfaceTexture texture = mVideoPreview.getSurfaceTexture();\n assert texture != null;\n texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight());\n mPreviewBuilder = mCameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);\n\n Surface previewSurface = new Surface(texture);\n mPreviewBuilder.addTarget(previewSurface);\n\n mCameraDevice.createCaptureSession(Arrays.asList(previewSurface), new CameraCaptureSession.StateCallback() {\n\n @Override\n public void onConfigured(CameraCaptureSession cameraCaptureSession) {\n mPreviewSession = cameraCaptureSession;\n updatePreview();\n }\n\n @Override\n public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) {\n if (mVideoRecordListener != null) {\n mVideoRecordListener.onRecordingFailed(\"Capture session for previewing video failed.\");\n }\n }\n }, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public CameraControl(SocketAddress remote) throws IOException {\n this.remote = remote;\n Thread thread = new Thread(new Manager(), \"Camera Control Manager Thread\");\n thread.setDaemon(true);\n thread.start();\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void openCamera() {\n \n\n }", "protected void initialize() {\n \tm_cameraThread = new CameraThread();\n \tm_cameraThread.start();\n \tm_onTarget = false;\n \tm_moving = false;\n \tm_desiredYaw = Gyro.getYaw();\n \t\n \t\n \tcount = 0;\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public void start(){\n thread.start();\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "public void mo10681a() {\n if (MultiPhotoFrameMainActivity.this._handler != null) {\n MultiPhotoFrameMainActivity.this._handler.post(new Runnable() {\n public void run() {\n C2331d.m10114a((Activity) MultiPhotoFrameMainActivity.this, C2328a.WAIT_PROCESSING, (Bundle) null);\n }\n });\n }\n }", "@Override\r\n public void run() {\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }", "@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tactivity.updateCameraToolbar();\n\t\t\t}", "public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }", "public Bitmap startCapture() {\n if (mMediaProjection == null) {\n return null;\n }\n Image image = mImageReader.acquireLatestImage();\n int width = image.getWidth();\n int height = image.getHeight();\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n Bitmap bitmap = Bitmap.createBitmap(width + rowPadding / pixelStride, height, Bitmap.Config.ARGB_8888);\n bitmap.copyPixelsFromBuffer(buffer);\n bitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height ); //按范围截取图片\n image.close();\n Log.i(TAG, \"image data captured\");\n\n //Write local\n// final Bitmap finalBitmap = bitmap;\n// new Thread(){\n// @Override\n// public void run() {\n// super.run();\n// if( finalBitmap != null) {\n// try{\n// File fileImage = new File(getLocalPath());\n// if(!fileImage.exists()){\n// fileImage.createNewFile();\n// Log.i(TAG, \"image file created\");\n// }\n// FileOutputStream out = new FileOutputStream(fileImage);\n// if(out != null){\n// finalBitmap.compress(Bitmap.CompressFormat.PNG, 100, out);\n// out.flush();\n// out.close();\n// //发送广播刷新图库\n// Intent media = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n// Uri contentUri = Uri.fromFile(fileImage);\n// media.setData(contentUri);\n// mContext.sendBroadcast(media);\n// Log.i(TAG, \"screen image saved\");\n// }\n// }catch(Exception e) {\n// e.printStackTrace();\n// }\n// }\n// }\n// }.start();\n return bitmap;\n }", "public synchronized void start() {\n\t\tif(isRunning) return; //If the game is already running, exit method\n\t\tisRunning = true; //Set boolean to true to show that it is running\n\t\tthread = new Thread(this); //Create a new thread\n\t\tthread.start(); //Start the thread\n\t}", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public static void resume() {\n\n\t\tif (myCurrentCamera != null) {\n\t\t\tmyCurrentCamera = Camera.open();\n\n\t\t\tmyIsInPreview = false;\n\n\t\t\tmyCurrentCamera.setPreviewCallbackWithBuffer(myCallback);\n\n\t\t\tif (myCurrentCamera != null) {\n\t\t\t\tif (myWasPausedInPreview == true) {\n\t\t\t\t\tstart();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n final Bitmap imageBm = decodeBitmapFromUri(ChooseActivity.this, myUri);\n inputWidth = imageBm.getWidth();\n inputHeight = imageBm.getHeight();\n new Thread() {\n @Override\n public void run() {\n float perfectSize = 2000f;\n float minScale = Math.min(perfectSize / imageBm.getWidth(), perfectSize / imageBm.getHeight());\n minScale = Math.min(minScale, 1f);\n Bitmap scaledBitmap = Bitmap.createScaledBitmap(imageBm, (int) (minScale * imageBm.getWidth()), (int) (minScale * imageBm.getHeight()), true);\n FaceUtil.InitFaceUtil(ChooseActivity.this);\n Map<String, Object> faces = FaceUtil.DetectFace(scaledBitmap);\n FaceUtil.Release();\n if (scaledBitmap != imageBm) {\n scaledBitmap.recycle();\n }\n\n synchronized (imageBm) {\n imageBm.notify();\n }\n\n faceStates = faces;\n localStateMap.putAll(faceStates);\n\n renderView.updateStates(localStateMap);\n }\n }.start();\n synchronized (imageBm) {\n try {\n imageBm.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n renderView.importImage(imageBm);\n renderView.setAlpha(1);\n\n updateRenderLayout(imageBm.getWidth(), imageBm.getHeight());\n progressDialog.dismiss();\n\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void requestPreviewFrame(Camera.PreviewCallback cb) {\n OpenCamera theCamera = camera;\n if (theCamera != null && previewing) {\n theCamera.getCamera().setOneShotPreviewCallback(cb);\n }\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHARE_UID ? mRemoteShareContainerSplit : mRemoteCameraContainer);\n }", "void onCaptureStart();", "@Override\r\n public void run() {\n currentHud.setReceivedPictureScreen();\r\n }", "@Override\n public void run() {\n MotionEyeHelper helper = new MotionEyeHelper();\n helper.setUsername(device.getUser().getUsername());\n try {\n helper.setPasswordHash(device.getUser().getPassword());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n String cameraId = camera.getId();\n String serverurl;\n if (device.getDdnsURL().length() > 5) {\n if ((Utils.getNetworkType(mContext)) == NETWORK_MOBILE) {\n serverurl = device.getDDNSUrlCombo();\n } else if (device.getWlan().networkId == Utils.getCurrentWifiNetworkId(mContext)) {\n serverurl = device.getDeviceUrlCombo();\n\n } else {\n serverurl = device.getDDNSUrlCombo();\n\n }\n } else {\n serverurl = device.getDeviceUrlCombo();\n\n }\n String baseurl;\n if (!serverurl.contains(\"://\"))\n baseurl = removeSlash(\"http://\" + serverurl);\n else\n baseurl = removeSlash(serverurl);\n\n String url = baseurl + \"/picture/\" + cameraId + \"/current?_=\" + new Date().getTime();\n url = helper.addAuthParams(\"GET\", url, \"\");\n String finalUrl = url;\n\n new DownloadImageFromInternet(holder, camera, this, time, loaded).execute(finalUrl);\n\n\n }", "@SuppressLint(\"NewApi\")\n protected void updatePreview() {\n if(null == mCameraDevice) {\n Log.e(TAG, \"updatePreview error, return\");\n }\n\n mPreviewBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n HandlerThread thread = new HandlerThread(\"CameraPreview\");\n thread.start();\n Handler backgroundHandler = new Handler(thread.getLooper());\n\n try {\n mPreviewSession.setRepeatingRequest(mPreviewBuilder.build(), null, backgroundHandler);\n } catch (CameraAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\tscreen_width = this.getWidth();\n\t\tscreen_height = this.getHeight();\n\t\tinitBitmap(); // 初始化图片资源\n\t\tthreadFlag = true;\n\t\tthread.start();\n\t}", "public void start(){\r\n\t\tnew Thread(\r\n\t new Runnable() {\r\n\t public void run() {\r\n\t \twhile(true){\r\n\t \t\t try {\r\n\t \t Thread.sleep(200);\r\n\t \t } catch (Exception e) {\r\n\t \t e.printStackTrace();\r\n\t \t }\r\n\t \t // Functions.DEBUG(\r\n\t \t // \"child thread \" + new Date(System.currentTimeMillis()));\r\n\t \t repaint();\r\n\t \t}\r\n\t }\r\n\t }).start();\r\n\t}", "public void run() {\n\t\t\tlong frameDelay = (long) (1000 / getFrameRate(avi));\n\t\t\t\n\t\t\t// Start rendering while playing\n\t\t\twhile (isPlaying.get()) {\n\t\t\t\t// Request rendering\n\t\t\t\tglSurfaceView.requestRender();\n\t\t\t\t\n\t\t\t\t// Wait for the next frame\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(frameDelay);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "private void onShow() {\n if (DEBUG)\n MLog.d(TAG, \"onShow(): \" + printThis());\n\n startBackgroundThread();\n\n // When the screen is turned off and turned back on, the SurfaceTexture is already\n // available, and \"onSurfaceTextureAvailable\" will not be called. In that case, we can open\n // a camera and start preview from here (otherwise, we wait until the surfaceJavaObject\n // is ready in\n // the SurfaceTextureListener).\n if (mTextureView.isAvailable()) {\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n } else {\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }" ]
[ "0.8057175", "0.79229456", "0.7516889", "0.72226566", "0.7101501", "0.70363957", "0.7025303", "0.7000769", "0.6939059", "0.69194496", "0.6903522", "0.68887496", "0.6886542", "0.6796254", "0.6749662", "0.67411864", "0.67386675", "0.6659154", "0.6603475", "0.65271956", "0.65270156", "0.65086794", "0.6493092", "0.6490374", "0.64900184", "0.64870167", "0.64704835", "0.64583087", "0.6453512", "0.643757", "0.64289296", "0.64129186", "0.6404865", "0.64013064", "0.6383236", "0.63772863", "0.6371975", "0.6354295", "0.63257456", "0.6269738", "0.62622875", "0.6240485", "0.62293166", "0.6223782", "0.6208723", "0.6206749", "0.6206", "0.62034386", "0.62009627", "0.62004256", "0.6189267", "0.6156568", "0.6144422", "0.61367786", "0.61262953", "0.6122737", "0.6115037", "0.61086565", "0.610371", "0.6101138", "0.6098796", "0.60713255", "0.6071311", "0.60708255", "0.6065615", "0.60641456", "0.6059435", "0.6056783", "0.60470575", "0.6038877", "0.60303044", "0.60296303", "0.60276824", "0.6025629", "0.6023182", "0.60212463", "0.60013455", "0.600093", "0.60008514", "0.599513", "0.59944725", "0.59934866", "0.5992311", "0.5987956", "0.5985675", "0.5985675", "0.5981852", "0.5973889", "0.5970844", "0.59677285", "0.5966022", "0.5966008", "0.59636164", "0.5961319", "0.5959385", "0.59593457", "0.59549236", "0.5948438", "0.59461856", "0.5933766", "0.59292096" ]
0.0
-1
No need to cancel the animation the fling took care of that
@Override public void onFlingStarted() { Timber.d("A fling just started"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void animStop() {\n }", "@Override\n public void animate() {\n }", "private void m7229e() {\n int i = this.f5592l;\n if (i != 0) {\n if (i == 3) {\n this.f5591k.cancel();\n } else {\n return;\n }\n }\n this.f5592l = 1;\n this.f5591k.setFloatValues(new float[]{((Float) this.f5591k.getAnimatedValue()).floatValue(), 1.0f});\n this.f5591k.setDuration(500);\n this.f5591k.setStartDelay(0);\n this.f5591k.start();\n }", "public abstract void animationStopped();", "private void terminateAnimation() {\n doRun = false;\n }", "protected abstract void onAnimStart(boolean isCancelAnim);", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "void stopAnimation()\n {\n animationTimer.cancel();\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "private void m23259e() {\n boolean z;\n if (this.f19138f != null) {\n ValueAnimator valueAnimator = this.f19137e;\n if (valueAnimator != null) {\n z = valueAnimator.isStarted();\n this.f19137e.cancel();\n this.f19137e.removeAllUpdateListeners();\n } else {\n z = false;\n }\n this.f19137e = ValueAnimator.ofFloat(0.0f, ((float) (this.f19138f.f19131u / this.f19138f.f19130t)) + 1.0f);\n this.f19137e.setRepeatMode(this.f19138f.f19129s);\n this.f19137e.setRepeatCount(this.f19138f.f19128r);\n this.f19137e.setDuration(this.f19138f.f19130t + this.f19138f.f19131u);\n this.f19137e.addUpdateListener(this.f19133a);\n if (z) {\n this.f19137e.start();\n }\n }\n }", "@Override public void onAnimationCancel(Animator arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void animStart() {\n }", "public void onAnimationStart(Animation animation) {\n\r\n }", "@Override\n\t\t\t\t\tpublic void onAnimationCancel(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void run() {\n AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();\n frameAnimation.stop();\n }", "@Override\n\t\tpublic void onAnimationCancel(Animator animation) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "public void animate(){\n\n if (ra1.hasStarted() && ra2.hasStarted()) {\n\n// animation1.cancel();\n// animation1.reset();\n// animation2.cancel();\n// animation2.reset();\n gear1Img.clearAnimation();\n gear2Img.clearAnimation();\n initializeAnimations(); // Necessary to restart an animation\n button.setText(R.string.start_gears);\n }\n else{\n gear1Img.startAnimation(ra1);\n gear2Img.startAnimation(ra2);\n button.setText(R.string.stop_gears);\n }\n }", "@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationCancel(Animator animation) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void onAnimationStart(Animation animation) {\n }", "void onAnimationStart();", "@Override\n public void run() {\n runAnimation();\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\r\n public void onAnimationCancel(Animator arg0)// 动画取消\r\n {\n\r\n }", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "public void stopAnimation() {\r\n\t\tani.stop();\r\n\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}", "public void deten(){\n\t \tanimacion2.stop();\n\t }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "@Override\n\t\t\tpublic void onAnimationCancel(Animator animation) {\n\n\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n }", "public void run() {\n mTextView.setTranslationY(-mTextView.getHeight());\n mTextView.animate().setDuration(duration / 2).translationY(0).alpha(1)\n .setInterpolator(sDecelerator);\n }", "@Override\n public void onAnimationEnd() {\n }", "@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "public void stopAnimation()\n {\n animationTimer.stop();\n }", "void startAnimation();", "private void animarFloatingButton() {\r\n\r\n compartir.setScaleX(0);\r\n compartir.setScaleY(0);\r\n\r\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\r\n final Interpolator interpolador = AnimationUtils.loadInterpolator(getBaseContext(),\r\n android.R.interpolator.fast_out_slow_in);\r\n\r\n compartir.animate()\r\n .scaleX(1)\r\n .scaleY(1)\r\n .setInterpolator(interpolador)\r\n .setDuration(600)\r\n .setStartDelay(1000)\r\n .setListener(new Animator.AnimatorListener() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationCancel(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationRepeat(Animator animation) {\r\n\r\n }\r\n });\r\n }\r\n }", "public abstract void animationReelFinished();", "@Override\n public void onAnimationCancel(Animator arg0) {\n\n }", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "@Override\r\n\t\tpublic void onAnimationCancel(Animator arg0) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void onAnimationCancel(Animator arg0) {\n\n\t}", "public void anim() {\n // start the timer\n t.start();\n }", "public void onAnimationRepeat(Animation animation) {\n\r\n }", "@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }", "public void mo84055a() {\n if (getVisibility() == 0) {\n animate().cancel();\n setLayerType(2, null);\n animate().alpha(0.0f).setListener(new Animator.AnimatorListener() {\n /* class com.zhihu.android.article.widget.ArticleFloatingTipsView.C172711 */\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n ArticleFloatingTipsView.this.setVisibility(4);\n ArticleFloatingTipsView.this.setLayerType(0, null);\n }\n }).start();\n }\n }", "void onAnimationEnd();", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "public void stopAnim() {\n // stop the timer\n t.stop();\n }", "@Override\n\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\n\t}", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMOUT, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.HIDDEN);\n btnFAB.setOpacity(0);\n\n // Setting the visibility of the music panel\n musicPanel.setVisibility(Style.Visibility.VISIBLE);\n musicPanel.setOpacity(1);\n\n // Setting the music label with Bounce up animation\n lblMusic.setText(\"Pharell Williams / Love Yourself to Dance\");\n MaterialAnimator.animate(Transition.BOUNCEINUP, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"http://thatgrapejuice.net/wp-content/uploads/2013/08/pharrell-williams-that-grape-juice.png\");\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onAnimationRepeat(Animation arg0) {\n \n }", "private void m125730y() {\n this.f90219I.set(false);\n View view = this.f90216F;\n if (view != null && view.getVisibility() == 0 && !this.f90218H.get()) {\n this.f90216F.clearAnimation();\n AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setDuration(500);\n alphaAnimation.setAnimationListener(new Animation.AnimationListener() {\n /* class com.zhihu.android.topic.platfrom.TopicFragment.animationAnimation$AnimationListenerC258283 */\n\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n TopicFragment.this.f90218H.set(true);\n }\n\n public void onAnimationEnd(Animation animation) {\n TopicFragment.this.f90216F.setVisibility(8);\n TopicFragment.this.f90218H.set(false);\n if (TopicFragment.this.f90219I.get()) {\n TopicFragment.this.m125731z();\n }\n }\n });\n this.f90216F.startAnimation(alphaAnimation);\n }\n }", "public void mo26996b() {\n Animator animator = this.f24567g;\n if (animator != null) {\n animator.cancel();\n }\n }", "public void finishPassing() {\n\t\n\tmyGlass = null;\n controller.donePass();\n // System.out.println(\"done animating\");\n}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\t\t\tview.setY(0.0f);\n\t\t\t\t\t\t\t}", "public void onAnimationStart(Animation arg0) {\n\t}", "void animationFinished();", "@Override\n public void onAnimationCancel(Animator animation) {\n animation.removeAllListeners();\n }", "public void setGreenAnimation(){\n va.setDuration(75);\n va.setEvaluator(new ArgbEvaluator());\n va.setRepeatCount(ValueAnimator.INFINITE);\n va.setRepeatMode(ValueAnimator.REVERSE);\n va.start();\n\n //va.cancel();\n }", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "protected abstract void onAnimEnd(boolean isCancelAnim);", "@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_sticker1).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker2).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker3).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n\n\n //瞬间隐藏掉面板上的东西\n mStickerLayout.setVisibility(View.GONE);\n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "private void m87326d() {\n this.f61222o.abortAnimation();\n this.f61226s = null;\n this.f61219l = false;\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n setVisualState();\n }", "public abstract void animationStarted();", "void animation() {\n LinearLayout linearLayout = findViewById(R.id.loginLinear);\n animationDrawable = (AnimationDrawable)linearLayout.getBackground();\n animationDrawable.setEnterFadeDuration(5000);\n animationDrawable.setExitFadeDuration(5000);\n\n }", "@Override\n public void onAnimationEnd(Animation animation) {\n if (animation == animBlink) {\n }\n\n }", "public void close(){\n\t\tMultiPurposeInterpolator in = new MultiPurposeInterpolator(200, 0, 500, 0, 0, 1);\n\t\tAnimation animation = new Animation(\"fading\", in, this);\n\t\tanimation.addAnimationListener(new IAnimationListener() {\n\t\t public void processAnimationEvent(AnimationEvent ae) {\n\t\t //fade using ae.getValue() as alpha\n\t\t \tlauncher.setFillColor(new MTColor(255, 255, 255, ae.getValue()));\n\t\t \t\n\t\t \tif(ae.getValue() == 0)\n\t\t\t\t{\n\t\t\t\t\tlauncher.removeFromParent();\n\t\t\t\t}\n\t\t }\n\t\t});\n\t\tanimation.start();\n\t}" ]
[ "0.7501291", "0.7165688", "0.69673914", "0.69612026", "0.69103956", "0.6905975", "0.68967205", "0.68967205", "0.68937033", "0.6892165", "0.6884566", "0.68840915", "0.68840915", "0.68840915", "0.68840915", "0.68788046", "0.68788046", "0.6872175", "0.6872003", "0.6872003", "0.6867226", "0.6867226", "0.68596864", "0.6853644", "0.6842992", "0.68392134", "0.6835281", "0.6832793", "0.6831801", "0.68267184", "0.6826092", "0.6818823", "0.6818823", "0.6818823", "0.68173563", "0.68169016", "0.6814798", "0.6810881", "0.6810881", "0.68088824", "0.6793074", "0.67841923", "0.675932", "0.67592794", "0.6747978", "0.6713676", "0.6710717", "0.67067015", "0.6701489", "0.67010874", "0.6699991", "0.6699991", "0.6699991", "0.6699991", "0.6699645", "0.6694781", "0.66856843", "0.6685096", "0.66837806", "0.6683605", "0.66828144", "0.6678403", "0.6669955", "0.6662036", "0.66502297", "0.66478425", "0.66440827", "0.66421735", "0.66343075", "0.6632032", "0.66187716", "0.6605638", "0.66041994", "0.65792966", "0.65561783", "0.655191", "0.65440685", "0.6538534", "0.6538476", "0.6538476", "0.6529378", "0.65238875", "0.6515225", "0.6514976", "0.65131015", "0.6512752", "0.6507066", "0.65049785", "0.6504549", "0.6494618", "0.64930975", "0.6477697", "0.6476396", "0.64725435", "0.6468324", "0.646538", "0.64566875", "0.64564663", "0.64414793", "0.64277536", "0.6423221" ]
0.0
-1
Protocol for Comparable objects. In Java 1.2, you can remove this file.
public interface Comparable { /** * Compare this object with rhs. * * @param rhs * the second Comparable. * @return 0 if two objects are equal; less than zero if this object is * smaller; greater than zero if this object is larger. */ int compareTo(Comparable rhs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Comparable\n{\n\t/**\n\t * Returns a number representing the ordering relationship that\n\t * the object has with the given object.\n\t * A negative number indicates that the object is \"smaller\" than\n\t * the parameter, a positive number means it is \"larger\" and zero\n\t * indicates that the objects are equal.\n\t */\n\tint compareTo(Object o);\n\n\t/**\n\t * Returns true if this object is equal to the given object.\n\t */\n\tboolean equals(Object o);\n}", "public interface Comparable {\n\t\n\t/**\n\t * Compares this object with the specified object for order. \n\t * Returns a negative integer, zero, or a positive integer as \n\t * this object is less than, equal to, or greater than the \n\t * specified object.\n\t * @param obj the Object to be compared. \n\t * @return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. \n\t */\n\tint compareTo(Object obj);\n}", "@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\n public int compareTo(Object o) {\n return 0;\n }", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}", "public /* bridge */ /* synthetic */ int compareTo(java.lang.Object r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int\");\n }", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}", "@Override\n\tpublic int compareTo(Objeto o) {\n\t\treturn 0;\n\t}", "public interface Comparable {\n\n\n boolean better(Comparable other);\n}", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\r\n protected int compareTo (BasicComponent o)\r\n {\n return 0;\r\n }", "boolean isComparable();", "@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}", "public int compareTo(Object other) { return 404;}", "@Override\n\t\tpublic int compareTo(Object arg0) {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(T o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Version o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Cau4 o) {\n\t\treturn 0;\n\t}", "public int compareTo(Object o) {\n return 0;\n }", "public int compareTo(sun.security.x509.X509CRLEntryImpl r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.compareTo(sun.security.x509.X509CRLEntryImpl):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.compareTo(sun.security.x509.X509CRLEntryImpl):int\");\n }", "@Override\n public void sortIt(final Comparable a[]) {\n }", "public int compareTo(Object o) {\n\t\treturn 0;\n\t}", "public int compareTo(Bundle o) {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}", "public int compareTo(Object arg0)\r\n/* 26: */ {\r\n/* 27:47 */ return 0;\r\n/* 28: */ }", "@Override\r\n\tpublic int compareTo(E o) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int compare(Object oldObj) {\n\t\treturn 0;\n\t}", "public int compareTo(ULocale other) {\n/* 205 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int compareTo(Object o) {\n\t\treturn 1;\n\t}", "int compareTo(Comparable rhs);", "public interface SPLObject extends Comparable<SPLObject> {\n\n public String getType();\n\n public String getAddress();\n\n public void setAddress(String address);\n\n public double getPriority();\n\n public boolean wasNLP();\n}", "@Override\n\tpublic int compareTo(IPunktuelleBedingung o) {\n\t\treturn -1;\n\t}", "public final /* synthetic */ Comparable mo20959aT(Object obj) {\n AppMethodBeat.m2504i(60322);\n byte[] bArr = (byte[]) obj;\n if (bArr == null || bArr.length <= 0) {\n Integer valueOf = Integer.valueOf(0);\n AppMethodBeat.m2505o(60322);\n return valueOf;\n }\n Comparable valueOf2 = Integer.valueOf(bArr.length);\n AppMethodBeat.m2505o(60322);\n return valueOf2;\n }", "int compareTo(Object o);", "public interface ComparableListInterface\r\n{\r\n public boolean isEmpty();\r\n public int size();\r\n public void add(int index, Comparable item)\r\n throws ListIndexOutOfBoundsException,\r\n ListException;\r\n public Comparable get(int index)\r\n throws ListIndexOutOfBoundsException;\r\n public void remove(int index)\r\n throws ListIndexOutOfBoundsException;\r\n public void removeAll();\r\n}", "@Override\n\tpublic int compareTo(Object o) {\n\t\tif(o instanceof Line){\n\t\t\treturn (int) (this.length()-((Line) o).length());\n\t\t}\n\t\telse \n\t\t\treturn 0;\n\t}", "@Override\r\n\tint compareTo( IToon t );", "public boolean a(Comparable<?> comparable) {\n return false;\n }", "int compareTo(Object obj);", "@Override\n\tpublic int compareTo(Object o) \n\t{\n\t\tif( o instanceof DoubleWritable ) {\n\t\t\tint tmp = _dval.compareTo((DoubleWritable) o);\n\t\t\treturn (( tmp!=0 ) ? -1*tmp : tmp); //prevent -0\n\t\t}\n\t\t//compare double value and index (e.g., for stable sort)\n\t\telse if( o instanceof IndexSortComparable) {\n\t\t\tIndexSortComparable that = (IndexSortComparable)o;\n\t\t\tint tmp = _dval.compareTo(that._dval);\n\t\t\ttmp = (( tmp!=0 ) ? -1*tmp : tmp); //prevent -0\n\t\t\tif( tmp==0 ) //secondary sort\n\t\t\t\ttmp = _lval.compareTo(that._lval);\n\t\t\treturn tmp;\n\t\t}\t\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Unsupported comparison involving class: \"+o.getClass().getName());\n\t\t}\n\t\t\n\t}", "public int compareTo(Object o){\n int r;\n if(this.key == ((sortableWord)o).key){ \n r = 0;\n }\n else if(this.key > ((sortableWord)o).key) r = -1;\n else //if(this.peak < ((sortableWordt)o1).peak) \n r = 1;\n return r;\n }", "public int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}", "public abstract void compare();", "@Override\n public int compareTo(NodoTablas<K, V> arg0) {\n return 0;\n }", "@Override\n public int compareTo(Object aThat) {\n if (this == aThat) {\n return 0;\n }\n\n final TagEntry that = (TagEntry) aThat;\n\n if (this.revision != NOREV) {\n return ((Integer) this.revision).compareTo(that.revision);\n }\n assert this.date != null : \"date == null\";\n return this.date.compareTo(that.date);\n }", "@Override\n\t\tpublic int compareTo(cc o) {\n\t\t\treturn -1*(this.getSize() - o.getSize());\n\t\t}", "@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}", "@Override\r\n \tpublic int compareTo(BaseAmount<Q> o) {\n \t\treturn 0;\r\n \t}", "@Override\n\tpublic int compareTo(Pregled o) {\n\t\treturn getDatum().compareTo(o.getDatum());\n\t}", "@Override\r\n\tpublic int compare(K o1, K o2) {\n\t\t\r\n\t\treturn ((Comparable<K>) o1).compareTo(o2) ;\r\n\t}", "@Override\r\n\tpublic int compareTo(Truck o) {\n\t\treturn 0;\r\n\t}", "public int compareTo(Object o) {\n if (o == null) {\n throw new IllegalArgumentException();\n }\n \n int oTagNumber = ((TIFFField)o).getTagNumber();\n if (tagNumber < oTagNumber) {\n return -1;\n } else if (tagNumber > oTagNumber) {\n return 1;\n } else {\n return 0;\n }\n }", "@SuppressWarnings({ \"rawtypes\"})\n\t\t@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tMyKey o1 = (MyKey)a;\n\t\t\tMyKey o2 = (MyKey)b;\n\t\t\treturn o1.getK().compareTo(o2.getK());\n\t\t}", "public interface Comparator extends ComparisonConstants {\n public int compare(Object a, Object b);\n}", "public int compareTo(Person that) { return -1; }", "@Override\n\tpublic int compare(Inventariable<T> o1, Inventariable<T> o2) {\n\t\treturn o1.getCodigo()-o2.getCodigo();\n\t}", "@Override\n\tpublic int compareTo(DocumentWritable o) {\n\t\treturn 0;\n\t}", "@Override\r\n public int compareTo(Object obj) {\r\n if (!(obj instanceof Data)) {\r\n return 1; //??? return arbitary value saying that not equal\r\n }\r\n Data other = (Data) obj;\r\n if (this.distanz > other.distanz) {\r\n return 1;\r\n }\r\n if (this.distanz < other.distanz) {\r\n return -1;\r\n }\r\n return 0;\r\n }", "@Override\n\tpublic int compareTo(Object o) {\n\t\tDatum od=(Datum)o;\n\t\tdouble dif=size-od.size;\n\t\tif(dif != 0)\n\t\t\treturn (int)Math.signum(dif);\n\t\treturn id-od.id;\n\t}", "public interface SortingAlgorithm<E extends Comparable<E>> {\n\n /**\n * Ordina una lista di elementi in accordo all'ordinamento totale naturale\n * definito nella classe degli elementi.\n * \n * @param l\n * la lista da ordinare (dovrebbe essere una ArrayList)\n * @return un oggetto contentente la lista ordinata e il numero di\n * operazioni di comparazione effettuate dall'algoritmo.\n */\n public SortingAlgorithmResult<E> sort(List<E> l);\n\n /**\n * Restituisce il nome dell'algoritmo di ordinamento.\n * \n * @return il nome dell'algoritmo\n */\n public String getName();\n\n}", "@Override\r\n\tpublic void comparo(Persona p1, Persona p2) {\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate int compare(AnyType lhs, AnyType rhs) {\n\t\tif (cmp == null)\n\t\t\treturn ((Comparable<? super AnyType>) lhs).compareTo(rhs); // safe to ignore warning\n\t\t// We won't test your code on non-Comparable types if we didn't supply a Comparator\n\n\t\treturn cmp.compare(lhs, rhs);\n\t}", "@Override\r\n\tpublic int compareTo(cricketSystem arg) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int compareTo(Laptop01_01 o) {\n\t\treturn 0;\r\n\t}", "@Override\n public int compareTo(AComponent comp) {\n int comparedPriority = comp.getPriority();\n return priority - comparedPriority;\n }", "@Override\r\n\tpublic void deleteSort() {\n\t\t\r\n\t}", "public interface CompareInterface<R> extends Serializable, Comparator<R> {\n int compare(R r1, R r2);\n}", "public Object insert(Comparable o);", "public interface Sort<E extends Comparable<E>> {\n void sort(E[] e);\n\n default void show(E[] e) {\n StringBuffer res = new StringBuffer(\"[\");\n for (int i = 0; i < e.length; i++) {\n res.append(e[i] + \",\");\n }\n\n res = res.deleteCharAt(res.length() - 1);\n res.append(\"]\");\n System.out.println(res.toString());\n }\n\n default boolean isSorted(E[] e) {\n for (int i = 0; i < e.length - 1; i++) {\n if (e[i].compareTo(e[i + 1]) > 0)\n throw new IllegalArgumentException(\"排序出错, 请检查程序\");\n }\n\n System.out.println(\"排序正常...\");\n return true;\n }\n}", "@Override\n public int compareTo(Object o) {\n if (o == null) return 1;\n return toString().compareTo(o.toString());\n }", "@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\treturn 0;\n\t\t}", "public interface SortedVector<E> {\n\n int disordered(ElemComparable comp);\n\n void sort(int lo, int hi);\n\n int find(E e, ElemComparable comp);\n\n void deduplicate();\n\n int search(E e, int lo, int hi, ElemComparable comp, Searchable searchMethod);\n\n int uniquify(ElemComparable comp);\n\n public interface Searchable<E> {\n int search(Vector<E> list, E e, int lo, int hi, ElemComparable<E> comp);\n }\n\n public interface Sortable<E> {\n void sort(Vector<E> list, int lo, int hi, ElemComparable<E> comp);\n }\n}", "@Override\r\n /**\r\n * Implementation of the Comparable interface\r\n */\r\n public int compareTo(HugeUInt o) {\n if (getSize() < o.getSize()) return -1;\r\n if (getSize() > o.getSize()) return 1;\r\n //At this point we know that both instances have equal sizes, we have to compare each digit\r\n int max = getSize();\r\n for (int i = max - 1; i >= 0; i--) {\r\n if (getDigit(i) < o.getDigit(i)) return -1;\r\n if (getDigit(i) > o.getDigit(i)) return 1;\r\n }\r\n //The instances are equal\r\n return 0;\r\n }", "public int compare(WritableComparable a, WritableComparable b) {\n\t\treturn -super.compare(a, b);\n\t}", "@Override\r\n\tpublic int compareTo(Examination o) {\n\t\treturn 0;\r\n\t}", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "public final /* bridge */ /* synthetic */ Comparable mo20960b(Comparable comparable) {\n return (Integer) comparable;\n }", "public int compareTo(Entity arg0) {\n return 0;\n }", "@Override\n\tpublic int compareTo(VOViolationCode arg0) {\n\t\treturn 0;\n\t}", "public boolean compareTo(T t);", "@Override\n public int compareTo(Empleados o)\n {\n return 0;\n }", "@Test\r\n public void testReflexiveForEqual() throws Exception {\n\r\n EmployeeImpl emp1 = new EmployeeImpl(\"7993389\", \"gagandeep.singh@rbs.com\");\r\n EmployeeImpl emp2 = new EmployeeImpl(\"7993389\", \"ramandeep.singh@rbs.com\");\r\n\r\n Assert.assertTrue(\"Comparable implementation is incorrect\", emp1.compareTo(emp2) == 0);\r\n Assert.assertTrue(\"Comparable implementation is incorrect\", emp1.compareTo(emp2) == emp2.compareTo(emp1));\r\n }", "@Override\n\tpublic int compareTo(TetrominoSpielstein o) {\n\t\treturn 0;\n\t}", "@Override\r\n\t public int compareTo(Geltokia o) {\r\n if (disTerm < o.disTerm) {\r\n return -1;\r\n }\r\n if (disTerm > o.disTerm) {\r\n return 1;\r\n }\r\n return 0;\r\n }", "@Override\r\n\tpublic int compare(Object o1, Object o2) \r\n\t{\n\t\tProblems s1=(Problems)o1; \r\n\t\tProblems s2=(Problems)o2; \r\n\t\treturn s1.name.compareTo(s2.name); \r\n\t}", "@Override\n\tpublic int compareTo(Key o) {\n\t\tint temp = 0;\n\t\t\t\t\n\t\tif (this.value > o.value) \t\ttemp = 1;\n\t\telse if (this.value < o.value) temp = -1;\n\t\telse \t\t\t\t\t\t\ttemp = 0;\n\t\t\n\t\treturn temp;\n\t}" ]
[ "0.70176053", "0.69927716", "0.6686991", "0.66731054", "0.66731054", "0.66731054", "0.66722757", "0.66676897", "0.6651235", "0.6651235", "0.6651235", "0.6651235", "0.6651235", "0.6651235", "0.6651235", "0.6651235", "0.66110545", "0.6581494", "0.6576694", "0.64516944", "0.64363277", "0.6416503", "0.6394372", "0.63824683", "0.6370285", "0.63594335", "0.63594335", "0.63594335", "0.63594335", "0.6350982", "0.62818223", "0.6207302", "0.6183013", "0.6155251", "0.6075323", "0.60554063", "0.6037257", "0.60074764", "0.5992829", "0.599182", "0.59776455", "0.59642905", "0.5953641", "0.5946127", "0.59440476", "0.59323066", "0.5924453", "0.5891233", "0.58785796", "0.5844954", "0.58428156", "0.5838652", "0.58362925", "0.57887554", "0.57657826", "0.57587165", "0.57464623", "0.5745143", "0.5741604", "0.57410806", "0.57282364", "0.5716885", "0.57163584", "0.57124037", "0.5704326", "0.56967163", "0.56958854", "0.5694382", "0.56804734", "0.56646955", "0.5647911", "0.5641185", "0.56303525", "0.56155515", "0.55963737", "0.55816966", "0.557836", "0.5569656", "0.55642754", "0.5561767", "0.55606014", "0.55588675", "0.5557425", "0.5547699", "0.5528071", "0.55232376", "0.5523058", "0.5517967", "0.54885983", "0.5488337", "0.54878837", "0.5485227", "0.5482701", "0.5482261", "0.54755694", "0.5473438", "0.5473009", "0.544863", "0.5448072", "0.54401034" ]
0.6793453
2
Compare this object with rhs.
int compareTo(Comparable rhs);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object rhs) {\n AS rhsAS = (AS) rhs;\n return this.asn == rhsAS.asn;\n }", "@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }", "public int compareTo( Comparable rhs )\n {\n return value < ((MyInteger)rhs).value ? -1 :\n value == ((MyInteger)rhs).value ? 0 : 1;\n }", "@Override\n\tpublic final boolean equals(Object compareTo) {\n\n\t\tif (compareTo == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!compareTo.getClass().equals(this.getClass())) {\n\t\t\treturn false;\n\t\t}\n\t\tbyte[] compareArray = ((SerializedObject) compareTo).mStoredObjectArray;\n\t\tif (compareArray.length != mStoredObjectArray.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < compareArray.length; i++) {\n\t\t\tif (compareArray[i] != mStoredObjectArray[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public int compareTo(Object other){\r\n int[][] thisState = this.getState();\r\n int[][] thatState = ((Node)other).getState();\r\n int length = this.getState().length;\r\n for (int i = 0; i<length; i++){\r\n for (int j = 0; j<length; j++){\r\n if (thisState[i][j] != thatState[i][j])\r\n return 1;\r\n }\r\n }\r\n return 0;\r\n }", "public boolean equals( Object rhs )\n {\n return (rhs instanceof MyInteger) && value == ((MyInteger)rhs).value;\n }", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public int compare(Transaction lhs, Transaction rhs) {\n\r\n\t\t\t\treturn 0;\r\n\t\t\t}", "public abstract void compare();", "final public boolean equals (Object other)\n {\n\treturn compareTo (other) == 0;\n }", "public boolean equals(Object rhs)\r\n {\r\n \tif (rhs == null) return false;\r\n if (this == rhs) return true;\r\n if (!(rhs instanceof PurchaseSubCategory)) return false;\r\n PurchaseSubCategory that = (PurchaseSubCategory) rhs;\r\n if (this.getId() != null) return this.getId().equals(that.getId());\r\n return that.getId() == null;\r\n }", "@JRubyMethod(name = \"==\", required = 1)\n public static IRubyObject op_equal(ThreadContext ctx, IRubyObject self, IRubyObject oth) {\n RubyString str1, str2;\n RubyModule instance = (RubyModule)self.getRuntime().getModule(\"Digest\").getConstantAt(\"Instance\");\n if (oth.getMetaClass().getRealClass().hasModuleInHierarchy(instance)) {\n str1 = digest(ctx, self, null).convertToString();\n str2 = digest(ctx, oth, null).convertToString();\n } else {\n str1 = to_s(ctx, self).convertToString();\n str2 = oth.convertToString();\n }\n boolean ret = str1.length().eql(str2.length()) && (str1.eql(str2));\n return ret ? self.getRuntime().getTrue() : self.getRuntime().getFalse();\n }", "public abstract boolean equals(Object other);", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "public final boolean equals(Object rhs) {\r\n MConstText otherText;\r\n try {\r\n otherText = (MConstText)rhs;\r\n }\r\n catch (ClassCastException e) {\r\n return false;\r\n }\r\n return equals(otherText);\r\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "public boolean equals(Object rhs)\n {\n if (rhs == null)\n return false;\n if (! (rhs instanceof Workspacebaseproperty))\n return false;\n Workspacebaseproperty that = (Workspacebaseproperty) rhs;\n if (this.getWsid() == null || that.getWsid() == null)\n return false;\n return (this.getWsid().equals(that.getWsid()));\n }", "public int compareTo(ResourceCollection other) {\n if (this.brick == other.getBrick() &&\n this.lumber == other.getLumber() &&\n this.wool == other.getWool() &&\n this.grain == other.getGrain() &&\n this.ore == other.getOre()) {\n return 0;\n } else if (this.brick < other.getBrick() ||\n this.lumber < other.getLumber() ||\n this.wool < other.getWool() ||\n this.grain < other.getGrain() ||\n this.ore < other.getOre()) {\n return -1;\n } else return 1;\n }", "public boolean equals( SongsCompGenre rhs ) \n\t {\n\t return genre.equals(rhs.genre);\n\t }", "@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }", "@Override public int compare(final IdentifiedObject o1, final IdentifiedObject o2) {\n Collection<Identifier> a1 = o1.getIdentifiers();\n Collection<Identifier> a2 = o2.getIdentifiers();\n if (a1 == null) a1 = Collections.emptySet();\n if (a2 == null) a2 = Collections.emptySet();\n final Iterator<Identifier> i1 = a1.iterator();\n final Iterator<Identifier> i2 = a2.iterator();\n boolean n1, n2;\n while ((n1 = i1.hasNext()) & (n2 = i2.hasNext())) { // NOSONAR: Really '&', not '&&'\n final int c = IdentifiedObjects.doCompare(i1.next().getCode(), i2.next().getCode());\n if (c != 0) {\n return c;\n }\n }\n if (n1) return +1;\n if (n2) return -1;\n return 0;\n }", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "public int compare(PuzzleBoard lhs, PuzzleBoard rhs) {\r\n if(lhs.dist() == rhs.dist())\r\n {\r\n return lhs.compareStates(rhs);\r\n }\r\n else if(lhs.priority()<rhs.priority())\r\n return -1;\r\n else\r\n return 1;\r\n\r\n }", "@Override\n boolean equals(Object other);", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}", "public int compareTo( Part rhs )\r\n\t{\r\n\t\tif(!make.equals(rhs.make)) {\r\n\t\t\treturn make.compareTo(rhs.make);\r\n\t\t}\r\n\t\tif(year < rhs.year)\r\n\t\t\treturn 1;\r\n\t\tif(year > rhs.year)\r\n\t\t\treturn -1;\r\n\t\tif(!rest.equals(rhs.rest)) {\r\n\t\t\treturn rest.compareTo(rhs.rest);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic boolean\n\tequals( Object other ) \n\t{\n\t\tVector3 v;\n\n\t\tif( ! ( other instanceof Vector3 ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tv = (Vector3) other;\n\t\n\t\treturn( data[0] == v.data[0]\n\t\t\t&& data[1] == v.data[1]\n\t\t\t&& data[2] == v.data[2] );\n\t}", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override\n\tpublic abstract boolean equals(Object other);", "public int compare(Submission lhs, Submission rhs) {\n\t\tint firstCriteria = lhs.getStatus().compareTo(rhs.getStatus());\n\t\tif (firstCriteria != 0)\n\t\t\treturn firstCriteria;\n\t\treturn lhs.getProposedDate().compareTo(rhs.getProposedDate());\n\t}", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "boolean compare(Object targetOne, Object targetTwo);", "@Override\n\tpublic int compareTo(VectorComponent other) {\n\t\t// sorts descending, inconsistent with equals\n\t\treturn this.id == other.id ? 0 : this.id < other.id ? 1 : -1;\n\t}", "public int compareTo(Item other) {\n if (other.isNull()) {\n return 1;\n }\n return this.serialize().compareTo(other.serialize());\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\r\n\tpublic boolean equals(Object other) {\r\n\t\treturn (this.iD - other.hashCode()) == 0;\r\n\t}", "@Override\n public int compareTo(@Nonnull Letter other) {\n return ComparisonChain.start().compare(this.getContent(), other.getContent()).result();\n }", "@Override\n public int compareTo(Complex other) {\n double betrag = this.betrag();\n double otherBetrag = other.betrag();\n return Double.compare(betrag, otherBetrag);\n }", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "@Override\n\t\t public int compare(PathObject lhs, PathObject rhs) {\n\t\t return Double.compare(lhs.getClassProbability(), rhs.getClassProbability()); // Use double compare to safely handle NaN and Infinity\n\t\t }", "@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }", "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n return false;\r\n }\r\n\t}", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "public int compareTo(Car other){\r\n\t\treturn (int)(other.price-this.price); \r\n\t}", "@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }", "public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }", "public int compare(MonomialBase lhs, MonomialBase rhs)\n {\n return lhs.getDegree() < rhs.getDegree() ? -1 : \n (lhs.getDegree() > rhs.getDegree() ? 1 : \n mBaseOrder.compare(lhs.getDehomogenization(), rhs.getDehomogenization()));\n }", "@Override\n public int compareTo(Kaizen another) {\n return another.dateModified.compareTo(this.dateModified);\n }", "@Override\n public int compareTo(@NotNull SourceFile that) {\n if (this.absolutePath == null || that.absolutePath == null) {\n return ComparisonChain.start().compare(this.path, that.path).result();\n } else {\n return ComparisonChain.start().compare(this.absolutePath, that.absolutePath).result();\n }\n }", "public boolean equals(Object other)\r\n {\r\n \r\n return compareTo( (Trader)other ) == 0;\r\n }", "@Override\r\n\tpublic int compareTo(BagDetails o) {\n\t\treturn this.srNo.compareTo(o.srNo);\r\n\t}", "public int compareTo(Object otherSuitObject) {\r\n\t\tSuit otherSuit = (Suit) otherSuitObject;\r\n\t\treturn VALUES.indexOf(this) - VALUES.indexOf(otherSuit);\r\n\t}", "@Override\r\n\tpublic int compareTo(Room other) {\n\t\treturn this.capacity - other.capacity;\r\n\t}", "@Override\n public int compareTo(Node<T> other) {\n if (this == other) {\n return 0;\n }\n\n return this.data.compareTo(other.data);\n }", "protected abstract int doCompare(Object o1, Object o2);", "@Override\n public boolean equals(Object other) \n {\n Student s = (Student)other; \n return this.name.equals(s.getName()) && this.id.equals(s.getId()); \n }", "public int compareTo( Part rhs )\r\n\t{\r\n\r\n\t\tif(make.compareTo(rhs.getMake()) == 1)\t\t\t\r\n\t\t\treturn 1;\r\n\t\telse if(make.compareTo(rhs.getMake()) == -1)\r\n\t\t\treturn -1;\r\n\t\telse if(make.compareTo(rhs.getMake()) == 0){\r\n\t\t\t\r\n\t\t\tif(mode.compareTo(rhs.getMode()) == 1)\r\n\t\t\t\treturn 1;\r\n\t\t\telse if(mode.compareTo(rhs.getMode()) == -1)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(mode.compareTo(rhs.getMode()) == 0){\r\n\t\t\t\t\r\n\t\t\t\tif(year < rhs.getYear())\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if(year > rhs.getYear())\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\tthrow new IllegalStateException(\"You Suck\");\r\n\r\n\r\n\t\t\r\n\t}", "@Override\n public int compare(PostItem lhs, PostItem rhs) {\n int o1 = lhs.getOrder();\n int o2 = rhs.getOrder();\n return (o1>o2? -1 : (o1==o2 ? 0 : 1));\n }", "public int compareTo (Object other)\r\n {\r\n\tif (this == null && other == null) {\r\n\t return 0;\r\n\t} else if (this == null) {\r\n\t return -1;\r\n\t} else if (other == null) {\r\n\t return 1;\r\n\t} else {\r\n\t Player b = (Player) other;\r\n\t return score - b.score;\r\n\t}\r\n\r\n }", "@Override\n public boolean equals(Object obj) {\n //Cast other side.\n Angle other = (Angle) obj;\n\n //Compare values.\n if (this.degrees() == other.degrees()) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public int compareTo(SparseEncoding that) {\n return this.getSrc().compareTo(that.getSrc());\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof SortCandidateCommand)) {\n return false;\n }\n\n // state check\n SortCandidateCommand s = (SortCandidateCommand) other;\n return prefixToSort.equals(s.prefixToSort);\n }", "@Override\n\tpublic int compareTo(Object another) {\n\t\treturn this.code - ((Semester) another).getCode();\n\t}", "@Override\n public int compareTo(Score other) {\n return (int) (100 * (this.getAsDouble() - other.getAsDouble()));\n }", "@Override\n public int compareTo(final Car o) {\n return Integer.compare(this.productionYear,o.getProductionYear());\n }", "@Override\r\n\tpublic int compareTo(Item another) {\n\t\treturn this.toString().compareTo(another.toString());\r\n\t}", "@Override\n\t\t\tpublic int compare(Object o1, Object o2) {\n\t\t\t\tint result = ((Student)o2).getAge() - ((Student)o1).getAge();\n\t\t\t\tif (result == 0 ) result = 1;\n\t\t\t\treturn result;\n\t\t\t}", "@Override\n public boolean equals(Object o1) {\n return super.equals(o1);\n }", "@Override\n public int compare(Contact lhs, Contact rhs) {\n return lhs.getName().compareTo(rhs.getName());\n\n }", "@Override\r\n public int compareTo(Object obj) {\r\n if (!(obj instanceof Data)) {\r\n return 1; //??? return arbitary value saying that not equal\r\n }\r\n Data other = (Data) obj;\r\n if (this.distanz > other.distanz) {\r\n return 1;\r\n }\r\n if (this.distanz < other.distanz) {\r\n return -1;\r\n }\r\n return 0;\r\n }", "public int compareTo(Object o)\n\t{\n\t\tif(!(o instanceof TransactionSerialEntity))\n\t\t\treturn 1; //Khong bang\n\n\t\tTransactionSerialEntity other = (TransactionSerialEntity)o;\n\n\t\tif(this.getVector() == null && other.getVector() == null)\n\t\t\treturn 0; //Neu ca 2 doi tuong la rong thi bang\n\t\tif(this.getVector() == null || other.getVector() == null)\n\t\t\treturn 1; //Neu 1 trong 2 cai rong thi khong bang\n\t\tif(this.getVector().size() != other.getVector().size())\n\t\t\treturn 1; //Neu size khac nhau thi khong bang\n\t\tfor(int i = 0; i < this.getVector().size(); i++)\n\t\t{\n\t\t\tObject objA = this.getVector().get(i);\n\t\t\tObject objB = other.getVector().get(i);\n\n\t\t\tif (objA == null && objB == null)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tif (objA == null || objB == null)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(!this.getVector().elementAt(i).equals(other.getVector().elementAt(i)))\n\t\t\t\treturn 1; //Moi gia tri trong vector khac nhau thi khong bang\n\t\t}\n\t\treturn 0; //Bang\n\t}", "@Override\n public int compare(String lhs, String rhs) {\n return lhs.compareTo(rhs);\n }", "@Override\n\tpublic int compareTo(Object o) {\n\t\tif(o instanceof Student){\n\t\t\tStudent tmp = (Student)o;\n\t\t\treturn tmp.total = this.total;\n\t\t}else{\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\tMatrixElement other = (MatrixElement)o;\n\t\tLong col1 = this.getRowOrColumn().get();\n\t\tLong col2 = other.getRowOrColumn().get();\n\t\t\n\t\tif(col1.compareTo(col2) == 0){\n\t\t\treturn other.getMatrix().toString().compareTo(this.getMatrix().toString());\n\t\t}\n\t\treturn col1.compareTo(col2);\n\t}", "public int compareTo(Object other) { \r\n\t\treturn Integer.compare(confidence, ((Candidate) other).getConfidence());\r\n\t}", "@Override\n\tpublic int compareTo(Pregled o) {\n\t\treturn getDatum().compareTo(o.getDatum());\n\t}", "@Override\n\t\tpublic int compare(ScoreSum lhs, ScoreSum rhs) {\n\t\t\tScoreSum temp1 = lhs;\n\t\t\tScoreSum temp2 = rhs;\n\t\t\tint num = temp1.getScore().compareTo(temp2.getScore());\n\t\t\tif (num == 0)\n\t\t\t\treturn temp1.getAthleteName().compareTo(temp2.getAthleteName());\n\t\t\treturn num;\n\t\t}", "@Override\r\n\tpublic int compare(EmployeeVo o1, EmployeeVo o2) {\n\t\tif (o1.incomeTax > o2.incomeTax)\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1;\r\n\t\t// return 0;\r\n\t}", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "@Override\n\t\tpublic int compareTo(cc o) {\n\t\t\treturn -1*(this.getSize() - o.getSize());\n\t\t}", "public int compareTo( Similarity other )\n {\n int diff=this.distance - other.distance;\n if(diff!=0) return diff;\n diff=getID(this.pixels.p) - getID(other.pixels.p);\n if(diff!=0) return diff;\n return getID(this.pixels.q) - getID(other.pixels.q);\n }", "@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}", "@Override\n\t\tpublic int compare(PathfindingNode object1, PathfindingNode object2) \n\t\t{\n\t\t\treturn _totalCosts.get(object1) - _totalCosts.get(object2);\n\t\t}", "public compare(){\r\n }", "@Override\n public int compareTo(final ModelFile o) {\n final ModelFile otherModelFile = ((ModelFile) o);\n return this.file.getFullPath().toString().compareTo(otherModelFile.file.getFullPath().toString());\n }", "@Override\n public int compareTo(Pair o) {\n return this.v-o.v;\n }", "@Override\n public int compare(PublisherInfo lhs, PublisherInfo rhs) {\n if (lhs.lastName != rhs.lastName) {\n return lhs.lastName.compareToIgnoreCase(rhs.lastName);\n\n } else {\n if (lhs.firstName != rhs.firstName) {\n return lhs.firstName.compareToIgnoreCase(rhs.firstName);\n } else {\n return lhs.middleName.compareToIgnoreCase(rhs.middleName);\n }\n }\n\n }", "private static boolean equiv(VObject src, VObject dst)\n {\n return ((src.getId() != null && src.getId().equals(dst.getId()))\n || (src.getSid() != null && src.getSid().equals(dst.getSid())) \n || (src.getName() != null && src.getName().equals(dst.getName())));\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexIntRevision.class.isAssignableFrom(obj.getClass())) {\n TkRefexIntRevision another = (TkRefexIntRevision) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare intValue\n if (this.intValue != another.intValue) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }", "@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }", "public int compareTo(final java.lang.Object p1) {\r\n return( singleton() - ((Coordinate)p1).singleton() );\r\n }", "public int compareTo(Object other){\n return this.content.compareTo(((StringContent)other).content);\n }", "@Override\r\n public int compare(Object o1, Object o2){\r\n return ((Record)o1).getField2().compareTo(((Record)o2).getField2());\r\n }", "public int compare(Object obj1, Object obj2) {\n\t\treturn obj1.toString().compareTo(obj2.toString());\r\n\t}", "@Override\r\n \tpublic boolean equals(final Object obj) {\r\n \t\t// Insert code to compare the receiver and obj here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: obj might be an instance of any class\r\n \t\treturn super.equals(obj);\r\n \t}", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "@Override\n\t//o1 > o2 如果返回正数则 升序。\n\tpublic int compare(Subject o1, Subject o2) {\n\t\tint ret = 1;\n\t\tif(o1.getRatingNum() > o2.getRatingNum()){\n\t\t\t//键入中文的负号,竟然是一个运行时错误。\n\t\t\tret = -1;\n\t\t}else if(o1.getRatingNum() == o2.getRatingNum()){\n\t\t\tret = 0;\n\t\t}\n\t\treturn ret;\n\t\t//下一句有double类型的舍入误差。\n\t\t//return (int) (o1.getRatingNum() - o2.getRatingNum());\n\t}", "@Override\n public int compareTo(Author o) {\n return this.getId() - o.getId();\n }" ]
[ "0.62532127", "0.62232196", "0.6054656", "0.6053805", "0.6030011", "0.6026486", "0.60044765", "0.5963065", "0.59562385", "0.59552866", "0.5901685", "0.5856883", "0.58513606", "0.58293146", "0.5827964", "0.5822474", "0.5804423", "0.57854426", "0.5777596", "0.5773632", "0.5770291", "0.57672536", "0.5766675", "0.57623774", "0.5761952", "0.5759928", "0.57542914", "0.5754073", "0.5747162", "0.5734404", "0.5734404", "0.5731122", "0.57311034", "0.57228947", "0.57217205", "0.57134", "0.5710164", "0.56983787", "0.5696435", "0.5687514", "0.5680343", "0.5677895", "0.5677895", "0.56772494", "0.5672801", "0.5671215", "0.5666799", "0.56629807", "0.5655577", "0.5653104", "0.5653048", "0.5651565", "0.56456065", "0.56433177", "0.564056", "0.5636544", "0.56324416", "0.56271577", "0.562632", "0.5619081", "0.5611454", "0.5606855", "0.5605514", "0.56032753", "0.5600218", "0.5590303", "0.55882907", "0.55882525", "0.55870956", "0.5586048", "0.55727106", "0.5566228", "0.5563314", "0.5562964", "0.55530745", "0.5546869", "0.5546483", "0.5537957", "0.55354357", "0.5535401", "0.55306196", "0.5530142", "0.55300033", "0.5525929", "0.5522025", "0.55144733", "0.55114865", "0.55102336", "0.5505795", "0.5505716", "0.5505148", "0.5502071", "0.5501578", "0.5492651", "0.54882336", "0.54875076", "0.5486197", "0.5480674", "0.5480436", "0.5477267", "0.5474448" ]
0.0
-1
stored codes in file
public NewItems() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void saveSimpleCodesToFile() {\n\t\tPrintWriter writer;\r\n\t\ttry {\r\n\t\t\t//writer = new PrintWriter(pathStr + \"/../pt.iscte.pidesco.codegenerator/Settings/Code.cg\", \"UTF-8\");\r\n\t\t\twriter = new PrintWriter(\"Code.cg\", \"UTF-8\");\r\n\t\t\tfor (SimpleCode sc : SimpleCodeMap.values()) {\r\n\t\t\t\twriter.print(sc.getCodeName() + \"-CGSeparator-\" + sc.resultCodeToWrite());\r\n\t\t\t\twriter.print(\"-CGCodeSeparator-\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void loadSimpleCodesFromFile() {\n\t\tReader reader;\r\n\t\ttry {\r\n\t\t\t//reader = new FileReader(pathStr + \"/../pt.iscte.pidesco.codegenerator/Settings/Code.cg\");\r\n\t\t\treader = new FileReader(\"Code.cg\");\r\n\t\t\tint data = reader.read();\r\n\t\t\tString output = \"\";\r\n\t\t\twhile (data != -1) {\r\n\t\t\t\tchar dataChar = (char) data;\r\n\t\t\t\toutput += dataChar;\r\n\t\t\t\tdata = reader.read();\r\n\t\t\t}\r\n\t\t\tString[] Codes = output.split(\"-CGCodeSeparator-\");\r\n\t\t\tfor (String code : Codes) {\r\n\t\t\t\tString[] Code = code.split(\"-CGSeparator-\");\r\n\t\t\t\tif (Code.length > 1)\r\n\t\t\t\t\tSimpleCodeMap.put(Code[0], new SimpleCode(Code[0], Code[1]));\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\trefreshList();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }", "public void loadStoredCodes(String fName) {\n //Clear stored codes before loading codes\n if (storedCodes.size() > 0) {\n storedCodes.clear();\n }\n try {\n File f = new File(fName);\n if (!f.exists()) {\n return;\n }\n FileReader fr = new FileReader(f);\n BufferedReader bf = new BufferedReader(fr);\n String code, name, priceStr;\n while ((code = bf.readLine()) != null\n && (name = bf.readLine()) != null\n && (priceStr = bf.readLine()) != null) {\n storedCodes.add(code);\n }\n bf.close();\n fr.close();\n } catch (Exception e) {\n System.out.println(e);\n }\n }", "public void saveCode(String code) {\n //System.out.println(\"Saving code\");\n FileChooser fileChooser = new FileChooser();\n fileChooser.setInitialDirectory(new File(lastOpenedLocation));\n fileChooser.setTitle(\"Save\");\n fileChooser.getExtensionFilters().addAll(\n new FileChooser.ExtensionFilter(\"Arduino files\", \"*.ino\", \"*.c\", \"*.cpp\")\n );\n //System.out.println(\"Show file chooser\");\n File file = fileChooser.showSaveDialog(ownerWindow);\n File selectedFile = null;\n //System.out.println(\"File has been selected\");\n if (file != null) {\n if (!file.getName().matches(\"*.xml\")) {\n // filename is OK as-is\n selectedFile = file;\n } else {\n selectedFile = new File(file.toString() + \".xml\"); // append .xml if \"foo.jpg.xml\" is OK\n }\n //System.out.println(selectedFile);\n lastOpenedLocation = selectedFile.getParent();\n //System.out.println(\"saved open location\");\n try {\n //System.out.println(\"trying to writ to file\");\n BufferedWriter bWriter = new BufferedWriter(new FileWriter(file));\n //System.out.println(\"start writing\");\n bWriter.write(code);\n bWriter.flush();\n bWriter.close();\n //System.out.println(\"writing done\");\n } catch (IOException ex) {\n //System.out.println(\"error while writing file!\");\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void storeCode(String code) {\n SharedPreferences prefs = getSharedPreferences(\"slidecopy\", MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"code\", code);\n editor.apply();\n }", "private void encodeMessage() {\n encodedMessage = \"\";\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n //walks the input message and builds the encode message\n for(int i = 0; i < inputLine.length(); i++) {\n encodedMessage = encodedMessage + codeTable[inputLine.charAt(i)];\n }\n encodedMessage = encodedMessage + codeTable[10];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //writes to the output file\n try(BufferedWriter outputBuffer = Files.newBufferedWriter(outputPath)) {\n outputBuffer.write(encodedMessage, 0, encodedMessage.length());\n outputBuffer.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void writeCodeLine(String rCode){\n\t\tCodeCount++;{\n\t\ttry {\n\t\t\tcodes.write(CodeCount+\" \"+rCode+'\\n');;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"FileWriter Error on \"+CodeCount);\n\t\t}\n\t\treturn;\n\t\t}\n\t}", "public static void main(String[] args) {\n String filePath=args[0];\n Parser parser = new Parser(filePath);\n Code code = new Code();\n SymbolTable symbol = new SymbolTable();\n initSymbol(filePath, parser, symbol);\n String fileOutputPath=filePath.replace(\".asm\",\".hack\");\n Parser parser1 = new Parser(filePath);\n\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileOutputPath ,true));\n PrintWriter emptyFile = new PrintWriter(fileOutputPath);\n emptyFile.print(\"\");\n emptyFile.close();\n\n //count the num of var in the program\n int numVariables = 16;\n while (parser1.hasMoreCommands()) {\n parser1.advance();\n String type = parser1.commandType();\n StringBuilder binCommand=new StringBuilder();\n switch (type) {\n case \"A_COMMAND\":\n //get the symbol\n String commandSymbol= parser1.symbol();\n Integer address=0;\n if(isNumeric(commandSymbol)){\n address=Integer.parseInt(commandSymbol);\n }\n //check if the symbol don't exist in the symbol Table and add it\n else if (!symbol.contain(commandSymbol)) {\n symbol.addEntry(commandSymbol, numVariables);\n address=symbol.getAddress(commandSymbol);\n numVariables++;\n }\n //get the symbol value from the symbol table\n else if(symbol.contain((commandSymbol))){\n address=symbol.getAddress(commandSymbol);\n }\n\n binCommand.append(Integer.toBinaryString(address));\n int j=binCommand.length();\n for (int i = 0; i < 16 - j; i++) {\n binCommand.insert(0, \"0\");\n }\n writer.append(binCommand.toString());\n writer.append('\\n');\n binCommand.setLength(0);\n break;\n case \"C_COMMAND\":\n //write the c command\n binCommand.append(\"111\");\n binCommand.append(code.comp(parser1.comp()));\n binCommand.append(code.dest(parser1.dest()));\n binCommand.append(code.jump(parser1.jump()));\n writer.append(binCommand.toString());\n writer.append('\\n');\n binCommand.setLength(0);\n break;\n }\n }\n\n writer.close();\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public void fileHexCodeIO(){\n deviceName = MySharedPreferences.readString(mContext, MySharedPreferences.DEVICE_NAME, \"Samsung\");\n\n //open file for reading\n try {\n br = new BufferedReader(new InputStreamReader(mContext.getAssets().open(\"devices/\"+deviceName+ ButtonNames.MUTE)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n MuteHexCode = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private List<String> listCodesPizza() {\n\t\tString[] paths = file.list();\n\t\tList<String> stringList = new ArrayList<String>(Arrays.asList(paths));\n\t\treturn stringList;\n\t}", "private void loadInstructions(byte... codes) {\r\n\t\tint instructionLocation = instructionBase;\r\n\t\tfor (int i = -128; i < 128; i++) {\r\n\t\t\tfor (byte code : codes) {\r\n\t\t\t\tcpuBuss.write(instructionLocation++, code);\r\n\t\t\t} // for codes\r\n\t\t\tcpuBuss.write(instructionLocation++, (byte) i);\r\n\t\t} // for\r\n\t\twrs.setProgramCounter(instructionBase);\r\n\t}", "public void setCode(byte[] code);", "protected void insertCode(SketchCode newCode) {\n ensureExistence();\n\n // add file to the code/codeCount list, resort the list\n //if (codeCount == code.length) {\n code = (SketchCode[]) PApplet.append(code, newCode);\n codeCount++;\n //}\n //code[codeCount++] = newCode;\n }", "public String[] makeCodes(){\n \tHuffmanTempTree tree = makeTree();\n\t\treturn tree.inOrderTreeWalkPath(tree.root, \"\", codes);\n \t}", "void setCode(String code);", "public byte[] code();", "public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "Code[] getCodes();", "public static void main(String[] args) {\n\t\t\r\n\t\tFile file=new File(\"filename.txt\");\r\n\t\t//FileOutputStream fout=null;\r\n\t\ttry(FileOutputStream fout=new FileOutputStream(file);\r\n\t\t\t\tBufferedOutputStream bout=new BufferedOutputStream(fout);\r\n\t\t\t\tDataOutputStream dout=new DataOutputStream(bout)) {\r\n\t\t\tif(!file.exists()) \r\n\t\t\t{\r\n\t\t\t\tString value=\"This goes into the file\";\r\n\t\t\t\t//Byte[] valueToBeStored=\r\n\t\t\t\t\r\n\t\t\t\tdout.write(97);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\t}", "private void saveActivationCode() {\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void init() throws IOException{\n\t\tString path = \"/Users/wenzheli/Documents/workspace/benew/ta4j/ta4j/resource/code_secode_name.csv\";\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tbr = new BufferedReader(new FileReader(path));\n\t\tbr.readLine(); // skip the header line\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] strs = line.split(\",\");\n\t\t\tsecodeToCode.put(strs[1], format(strs[0]));\n\t\t}\n\t}", "java.lang.String getCode();", "java.lang.String getCode();", "Code getCode();", "void setCodes(Code[] codes);", "public byte[] generateCode(VBox editorBox) {\n ArrayList<Byte> bytes = generateByteList(editorBox);\n bytes.add((byte) 2);\n bytes.add((byte) 'e');\n byte[] byteArray = new byte[bytes.size()];\n\n for (int i = 0; i < bytes.size(); i++) {\n byteArray[i] = bytes.get(i);\n }\n\n return byteArray;\n// int count =0;\n// for(Byte b:bytes){\n// if(count==0){\n// System.out.println();\n// count = Byte.toUnsignedInt(b);\n// }\n// System.out.print(Byte.toUnsignedInt(b)+\" \");\n// count--;\n// }\n// try {\n// FileOutputStream fos = new FileOutputStream(new File(\"C:\\\\Users\\\\Udith Arosha\\\\Desktop\\\\output.txt\"));\n// byte[] outBytes = new byte[bytes.size()];\n// fos.write(outBytes);\n// fos.flush();\n// fos.close();\n// } catch (FileNotFoundException ex) {\n// Logger.getLogger(CodeGenerator.class.getName()).log(Level.SEVERE, null, ex);\n// } catch (IOException ex) {\n// Logger.getLogger(CodeGenerator.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }", "public static void StoreAssemblyFile(File asmFile) {\n\t\t_asmFile = asmFile;\n\t\tConvertToString();\n\t}", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "public static void main(String[] args) throws IOException {\n char[][] key = new char[8][8];\n\n String[] lines = new String[8];\n\n File fileCardan = new File(\"cardan.txt\");\n\n Scanner fileScanner = new Scanner(fileCardan);\n\n for (int i = 0; i < 8; i++) {\n lines[i] = fileScanner.nextLine();\n }\n\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n key[i][j] = lines[i].charAt(j);\n }\n\n }\n\n // reading text from input.txt file and getting count of 64 char blocks\n String text = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\n int blocksCount = text.length() / 64 + 1;\n\n FileWriter fw = new FileWriter(\"encode.txt\");\n\n // encoding all 64 char blocks\n for (int i = 0; i < blocksCount; i++) {\n\n char[][] res;\n if(64+i*64 > text.length())\n res = encode(key, text.substring(i*64));\n else\n res = encode(key, text.substring(i*64,64+i*64));\n fileWrite(res,fw);\n\n }\n\n fw.close();\n\n text = new String(Files.readAllBytes(Paths.get(\"encode.txt\")));\n\n fw = new FileWriter(\"decode.txt\");\n\n for (int i = 0; i < blocksCount; i++) {\n\n fw.write(decode(text.substring(i*64,i*64+64),key));\n\n }\n\n fw.close();\n\n\n\n }", "@Override\n public String allCodes() {\n return allCode;\n }", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public static String parseCode(String fileName,String mscCode) {\n\t\tString tempstring = BootstrapUtils.getBootstrapManager().getApplicationHome();\n\t\tFile tempDir = new File(tempstring+\"/AddteqMscgen\");\n\t\tFile tempcode=null;\n\t\tWriter writer;\n\t\tif (!tempDir.exists()){\n\t\t\ttempDir.mkdirs();\n\t\t}\n\t\ttry {\n\t\t\tString mscCodeNoWhiteSpace=mscCode.replaceAll(\"[^\\\\nA-Za-z0-9;{}=:.*#-\\\\<\\\\>,\\\\|\\\"\\'\\\\[\\\\] @%$&?!_()]\", \"\");\n\t\t\ttempcode= new File(tempDir, fileName);\n\t\t\tFileOutputStream tempCodeOutputStream = new FileOutputStream(tempcode);\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(tempCodeOutputStream));\n\t\t\twriter.write(mscCodeNoWhiteSpace);\n\t\t\twriter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t//file not found\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t//io\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempcode.getAbsolutePath();\t\n\t}", "public void mo210a(File file) {\n }", "public void saveTranslationCode(int scriptNumber)\r\n {\r\n\t try\r\n\t {\r\n\t\t\t//String filePath = getClass().getResource(\"../script/translated/\" + String.format(\"%03d\", scriptNumber) + \".as\").getFile();\r\n\t\t //FileWriter fw = new FileWriter(filePath);\r\n\t\t\tFileWriter fw = new FileWriter(\"src/org/sikiscripteditor/script/translated/\" + String.format(\"%03d\", scriptNumber) + \".as\");\r\n\t\t BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\t bw.write(translatedCode);\r\n\r\n\t\t bw.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t\t System.out.println(\"Nya: \" + e.getMessage());\r\n\t }\r\n }", "public void checkCode(Set<String> codeOnlyOne, Writer w, String e) {\n boolean exist = codeOnlyOne.contains(e);\n if (!exist) {\n try {\n w.write(String.format(\"insert into authority (code) values ('%s' );\", e));\n w.write(\"\\r\\n\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void setCode(String code)\n {\n this.code = code;\n }", "private void createDecodedFile(String decodedValues, String encodedFileName) throws Exception {\r\n\r\n\r\n\t\tString decodedFileName = encodedFileName.substring(0, encodedFileName.lastIndexOf(\".\")) + \"_decoded.txt\";\r\n\t\t//FileWriter and BufferedWriter to write and it overwrites into the file.\r\n\t\tFileWriter fileWriter = new FileWriter(decodedFileName, false);\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tbufferedWriter.write(decodedValues);\r\n\t\t//Flush and Close the bufferedWriter\r\n\t\tbufferedWriter.flush();\r\n\t\tbufferedWriter.close();\t\r\n\t}", "public void printEncodedTable(File encodedFile){\n clearFile(encodedFile);\n try{\n BufferedWriter output = new BufferedWriter(new FileWriter(encodedFile,true));\n for(Map.Entry<Character,String> entry : encodedTable.entrySet()){\n Character c = entry.getKey();\n if(c >= 32 && c < 127)\n output.write(entry.getKey()+\": \"+entry.getValue());\n else\n output.write(\" [0x\" + Integer.toOctalString(c) + \"]\"+\": \"+entry.getValue());\n output.write(\"\\n\");\n }\n output.close();\n }catch(IOException e){\n System.out.println(\"IOException\");\n }\n }", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void writeToFile(ArrayList<Subject> subjectCodes, File f) throws IOException {\r\n \r\n //creating a printwriter\r\n PrintWriter pw = new PrintWriter(new FileWriter(f));\r\n \r\n for(Subject s: subjectCodes) {\r\n \t//printing the name and the subject code\r\n pw.printf(\"%s %s\\r\\n\", s.getSubCode(), s.getSubName());\t\r\n }\r\n \r\n //closing the file\r\n pw.close();\r\n }", "private void createExecutableFile() throws IOException {\r\n //if (report.getErrorList() == null)\r\n //{\r\n System.out.println(\"Currently generating the executable file.....\");\r\n executableFile = new File(sourceName + \".lst\");\r\n // if creating the lst file is successful, then you can start to write in the lst file\r\n executableFile.delete();\r\n if (executableFile.createNewFile()) {\r\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(sourceName + \".asm\"), \"utf-8\")); //create an object to write into the lst file\r\n\r\n String [] hex = generate.split(\" \");\r\n\r\n for (int index = 0; index < hex.length; index++) {\r\n String hex1 = hex[index].trim();\r\n System.out.println(hex1);\r\n\r\n int i = Integer.parseInt(hex1, 16);\r\n String bin = Integer.toBinaryString(i);\r\n System.out.println(bin);\r\n\r\n writer.write(bin); // once the instruction is converted to binary it is written into the exe file\r\n }\r\n\r\n writer.close();\r\n\r\n }\r\n }", "public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public static void main(String[] args) {\n int[] freqNums = scanFile(args[0]);\n HuffmanNode[] nodeArr = createNodes(freqNums);\n nodeArr = freqSort(nodeArr);\n HuffmanNode top = createTree(nodeArr);\n String empty = \"\";\n String[] encodings = new String[94];\n encodings = getCodes(top, empty, false, encodings, true);\n printEncoding(encodings, freqNums);\n writeFile(args[0], args[1], encodings);\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void encodeData() {\n frequencyTable = new FrequencyTableBuilder(inputPath).buildFrequencyTable();\n huffmanTree = new Tree(new HuffmanTreeBuilder(new FrequencyTableBuilder(inputPath).buildFrequencyTable()).buildTree());\n codeTable = new CodeTableBuilder(huffmanTree).buildCodeTable();\n encodeMessage();\n print();\n }", "public void setDataCode(String dataCode);", "@Override\n\tpublic boolean saveBarCode(int kodPoint, String readedCod) {\n\t\treturn false;\n\t}", "private String changeToHSCode(String key) throws IOException {\n\t\t\r\n\t\tHashMap<String, String> index=FileHelper.readindex(Constants.indexputpath);\r\n\t\tString hscode = null;\r\n\t\tfor(Entry<String,String> entry:index.entrySet()){\r\n\t\t\tif(key.equals(entry.getValue())){\r\n\t\t\t\thscode=entry.getKey();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn hscode;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public A86Writer(String filename) {\n\t\tinputFile = filename;\n\t\toutputFile = filename.substring(0, filename.length()-2) + \"asm\";\n\t}", "void setCode(LineLoader in) {\n code=in;\n }", "public static void main(String[] args) {\n\n /** Reading a message from the keyboard **/\n // @SuppressWarnings(\"resource\")\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Please enter a message to be encoded: \");\n // String inputString = scanner.nextLine();\n //\n // System.out.println(\"Please enter the code length: \");\n // String codeLen = scanner.nextLine();\n // int num = Integer.parseInt(codeLen);\n // Encode encodeThis = new Encode(inputString, num);\n // encodeThis.createFrequencyTable();\n // encodeThis.createPriorityQueue();\n // while (encodeThis.stillEncoding()) {\n // encodeThis.build();\n // }\n // String codedMessage = encodeThis.getEncodedMessage();\n // /** Printing message to the screen **/\n // System.out.println(codedMessage);\n\n /** Reading message from a file **/\n ArrayList<String> info = new ArrayList<String>();\n try {\n File file = new File(\"/Users/ugoslight/Desktop/message.txt\");\n Scanner reader = new Scanner(file);\n\n while (reader.hasNextLine()) {\n String data = reader.nextLine();\n info.add(data);\n }\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found.\");\n e.printStackTrace();\n }\n\n /** Encoding message from file **/\n Encode encodeThis = new Encode(info.get(0), Integer.parseInt(info.get(1)));\n encodeThis.createFrequencyTable();\n encodeThis.createPriorityQueue();\n while (encodeThis.stillEncoding()) {\n encodeThis.build();\n }\n String codedMessage = encodeThis.getEncodedMessage();\n /** Create new file **/\n try {\n File myObj = new File(\"/Users/ugoslight/Desktop/filename.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n /** Write to file **/\n try {\n FileWriter myWriter = new FileWriter(\"/Users/ugoslight/Desktop/filename.txt\");\n myWriter.write(codedMessage);\n myWriter.close();\n System.out.println(\"Successfully wrote to the file.\");\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n\n\n }", "public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public static void generateCode()\n {\n \n }", "public void setCode(Code code) {\n this.Code = code;\n }", "public static void buildCode(String code, String fileName) {\r\n\t\tString className = extractClassName(fileName);\r\n\t\tStringBuilder sb = new StringBuilder( );\r\n\r\n\t\tsb.append(\"public final class \").append(className).append(\" {\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\r\n\t\tfor (Entry<String, Double> e : constants.entrySet( )) {\r\n\t\t\tsb.append(\"\\tprivate static final double \"); //$NON-NLS-1$\r\n\t\t\tsb.append(e.getKey( ));\r\n\t\t\tsb.append(\" = \"); //$NON-NLS-1$\r\n\t\t\tsb.append(e.getValue( ));\r\n\t\t\tsb.append(\";\"); //$NON-NLS-1$\r\n\t\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\t\t}\r\n\r\n\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\r\n\t\tfor (Entry<String, Double> e : variables.entrySet( )) {\r\n\t\t\tsb.append(\"\\tprivate double \"); //$NON-NLS-1$\r\n\t\t\tsb.append(e.getKey( ));\r\n\t\t\tsb.append(\" = \"); //$NON-NLS-1$\r\n\t\t\tsb.append(e.getValue( ));\r\n\t\t\tsb.append(\";\"); //$NON-NLS-1$\r\n\t\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\t\t}\r\n\r\n\t\tsb.append(code);\r\n\t\tsb.append(Constants.LINE_SEPARATOR);\r\n\t\tsb.append(\"}\"); //$NON-NLS-1$\r\n\r\n\t\t// System.out.println(sb);\r\n\r\n\t\tFile java = new File(Constants.MAZE_CODE_DIR, fileName);\r\n\r\n\t\ttry {\r\n\t\t\tFileUtils.writeStringToFile(java, sb.toString( ), null);\r\n\t\t\tATEManager.compile(java);\r\n\t\t\tmazeJavaClasses.add(extractClassName(fileName));\r\n\t\t\tinformListeners( );\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tlogClass.error(\"Error: \" + e.getMessage( ) //$NON-NLS-1$\r\n\t\t\t\t\t+ Constants.LINE_SEPARATOR, e);\r\n\t\t}\r\n\t}", "private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}", "private boolean isCodeFile(File file) {\n return file.isFile() && file.getName().endsWith(CODE_FILE_EXTENSION);\n }", "public String getCode();", "public String getCode();", "public static void main(String[] args) throws Exception {\n\t\tString path=\"D:\\\\大二\\\\java\\\\\";//檔案位置\n\t\tFile file = new File(path+\"input.txt\");\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\n\t\tString st;\n\t\tArrayList<String> read_s = new ArrayList<String>();\n\t\twhile ((st = br.readLine()) != null) {\n\n\t\t\tst = st.replaceAll(\"10\", \"t\");\n\t\t\tSystem.out.println(st);\n\t\t\tread_s.add(st);\n\t\t}\n\n\t\tbr.close();\n\t\t// ====================== read file end==================\n\t\tString towrite1=\"\";\n\t\tString towrite2=\"\";\n\t\t// towrite1 2 是最終寫入txt的String\n\t\t\n\t\tfor (int i = 0; i < read_s.size(); i++) {\n\t\t\tDecoder d = new Decoder(read_s.get(i));\n\t\t\t//將檔案中的資料轉成 before now 兩個 Arraylist 存在Decoder中\n\t\t\t//before 表已出現過的牌 After表手牌\n\t\t\tCount c = new Count();\n\t\t\tfor (int ii = 0; ii < d.before.size(); ii++) {\n\t\t\t\tc.sub(d.before.get(ii));//去除已出現過的牌\n\t\t\t}\n\t\t\t\n\t\t\tfor (int ii = 0; ii < d.now.size(); ii++) {\n\t\t\t\tc.addcard(d.now.get(ii));//將牌加入手牌\n\t\t\t}\n\t\t\t\n\t\t\tAnswer ans = c.re_ValueAndPossibility();//將預測結果輸出成Answer data type\n\t\t\tans.set_round(i);//設定第幾輪\n\t\t\t\n\t\t\ttowrite1=towrite1+ans.output1();//將Answer datatype 轉成String(for Q1)\n\t\t\ttowrite2=towrite2+ans.output2();//將Answer datatype 轉成String(for Q2)\n\t\t\t// ans.show();\n\t\t\t// c.show();\n\t\t\tc.clear();//清理Count 給下一輪繼續用\n\t\t}\n\t\t//========================write file starts==========================\n\t\tSystem.out.print(towrite1);\n\t\tSystem.out.print(towrite2);\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(path+\"output1.txt\"));\n\t writer.write(towrite1);\n\t writer.close();\n\t writer = new BufferedWriter(new FileWriter(path+\"output2.txt\"));\n\t writer.write(towrite2);\n\t writer.close();\n\t //==========================write file end====================\n\t}", "public String getCode(){\n\t\treturn code;\n\t}", "private static void saveRaw(Context c, ScanManager scanManager, String filename) {\n File file = new File(c.getExternalFilesDir(null), \"raw\" + filename);\n for (int i = 0; i < scanManager.getNumberOfScans(); i++) {\n String output = scanManager.getLabel();\n for (String key : scanManager.getAnchorNodes().keySet()) {\n output += \" \" + key + \":\" + scanManager.getAnchorNodes().get(key).getRssis().get(i);\n }\n output += \" X-Axis\" + \":\" + scanManager.getMagneticFieldValues().get(i)[0];\n output += \" Y-Axis\" + \":\" + scanManager.getMagneticFieldValues().get(i)[1];\n output += \" Z-Axis\" + \":\" + scanManager.getMagneticFieldValues().get(i)[2];\n writeLineToFile(output + \"\\n\", file);\n }\n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "public String save() {\n return code;\n }", "public static void main(String[] args) throws IOException {\n \r\nFile f=new File(\"d:\\\\addition.txt\");\r\nString s=\" addition\"+\"\\n\"+( 2+ 1);\r\n FileOutputStream fos=new FileOutputStream(f,true);\r\n byte[] b=s.getBytes();\r\n fos.write(13);\r\n fos.write(b);\r\n fos.flush();\r\n\t}", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public void setText(String text){\n String _text = dcode.enCode(new String[] { encodeType, title, passWd, text });\n if(statusKey == ALRIGHT){\n setFileText(/*ccode == null ? */_text/* : ccode.enCrype(_text)*/);\n } else{\n System.err.println(\"You can't writes this file.\");\n System.err.println(\"This file contains unknown encode or is encrypted.\");\n }\n }", "public void writeToFile() {\n try {\n // stworz plik\n File file = new File(\"../Alice.ids\");\n // stworz bufor zapisu do pliku\n FileWriter fileWriter = new FileWriter(file);\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n fileWriter.write(Integer.toString(identificationNumbers[i][j]));\n\t\t\t fileWriter.write(\"\\n\");\n }\n\t\t\tfileWriter.flush();\n\t\t\tfileWriter.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n \n fillArrayList();\n getNextToken();\n parseProgram();\n\n //TODO output into file ID.java\n //This seems to work\n// File f = new File(programID+\".java\");\n// try {\n// PrintWriter write = new PrintWriter(f);\n// write.print(sb.toString());\n// write.flush();\n// write.close();\n// } catch (FileNotFoundException ex) {\n// Logger.getLogger(setTranslator.class.getName()).log(Level.SEVERE, null, ex);\n// }\n System.out.println(sb.toString());\n \n }", "public int set_code(String b);", "protected boolean encode()\n {\n\t\tfor(int i=0;i<256;i++)\n {\n\t\t\tstr[i] = String.valueOf((char)i);\n\t\t}\n str[13] = \"\";\n\t\tstr[10] = \"\\n\";\n str[65] = \" \".concat(this.A);\n\t\tstr[67] = \" \".concat(this.C);\n str[71] = \" \".concat(this.G);\n\t\tstr[84] = \" \".concat(this.T);\n try\n\t\t{\n \treader = new FileReader(in);\n writer = new FileWriter(out);\n\n\t\t\t/*******************************************************************************\n\t\t\t *\tThis loop traverse to the dna sequence and maps each character to\n\t\t\t *\tpredefined graphical value character by character\n\t\t\t *******************************************************************************/\n\t\t\twhile(true)\n {\n\t\t\t\ttemp = reader.read();\n if(temp == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t\tif(temp>=97 && temp<=122)\n\t\t\t\t\t\ttemp=temp-32;\n\t\t\t\tif(temp==65 || temp==67 || temp==71 || temp==84)\n \tspace_flag = 1;\n\t\t\t\telse\n\t\t\t\t{\n \tif(space_flag == 1)\n {\n\t\t\t\t\t\tt_str = \" \".concat(str[temp]);\n writer.write(t_str);\n\t\t\t\t\t\tspace_flag = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n space_flag = 0;\n\t\t\t\t}\n if(temp == 59 || temp == 62)\n\t\t\t\t{\n \tt_str = \"\";\n while(temp != 10)\n\t\t\t\t\t{\n \tt_str = t_str.concat(String.valueOf((char)temp));\n temp = reader.read();\n\t\t\t\t\t}\n t_str = t_str.concat(\"(Mapping: A>\"+this.A+\" C>\"+this.C+\" G>\"+this.G+\" T>\"+this.T+\")\");\n t_str = t_str.concat(\"\\n\");\n\t\t\t\t\twriter.write(t_str);\n\t\t\t\t}\n else\n\t\t\t\t\twriter.write(str[temp]);\n\t\t\t}\n writer.close();\n\t\t\treader.close();\n\t\t}\n catch (IOException e)\n\t\t{\n e.printStackTrace (System.out);\n JOptionPane.showMessageDialog(null,\"Exception occurred :( \");\n return false;\n\t\t}\n\t\treturn true;\n\t}", "private void generateBack() {\n\t\tCharacter[] encodeChar = (Character[]) map.values().toArray(new Character[map.size()]);\n\t\tCharacter[] trueChar = (Character[]) map.keySet().toArray(new Character[map.size()]);\n\n\t\tString allencode = \"\";\n\t\tString allTrue = \"\";\n\n\t\tfor (int i = 0; i < encodeChar.length; i++) {\n\t\t\tallencode += encodeChar[i];\n\t\t\tallTrue += trueChar[i];\n\t\t}\n\n\t\tString code = \"import java.util.HashMap;\\n\" + \"import java.util.Map;\\n\" + \"import java.util.Scanner;\\n\"\n\t\t\t\t+ \"public class MyKey {\\n\"\n\t\t\t\t+ \"private static Map<Character, Character> map = new HashMap<Character, Character>();\\n\"\n\t\t\t\t+ \"private static char[] encodeChar = \\\"\" + allencode + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static char[] trueChar = \\\"\" + allTrue + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static void mapSetUp() {\\n\" + \"for (int i = 0; i < encodeChar.length; i++) {\\n\"\n\t\t\t\t+ \"map.put(encodeChar[i], trueChar[i]);\\n\" + \"}\\n\" + \"}\\n\"\n\t\t\t\t+ \"private static String decodeMessage(String message) {\\n\" + \"String decode = \\\"\\\";\\n\"\n\t\t\t\t+ \"for (int i = 0; i < message.length(); i++) {\\n\" + \"decode += map.get(message.charAt(i));\\n\" + \"}\\n\"\n\t\t\t\t+ \"return decode;\\n\" + \"}\\n\" + \"public static void main(String[] args){\\n\"\n\t\t\t\t+ \"Scanner sc = new Scanner(System.in);\\n\" + \"System.out.print(\\\"Input your encrypted message : \\\");\"\n\t\t\t\t+ \"String enMessage = sc.nextLine();\" + \"mapSetUp();\\n\"\n\t\t\t\t+ \"System.out.println(\\\"Decrypted message : \\\"+decodeMessage(enMessage));\\n\" + \"}}\";\n\t\tFile f = new File(\"MyKey.java\");\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tBufferedWriter bf = new BufferedWriter(fw);\n\t\t\tbf.write(code);\n\t\t\tbf.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error about IO.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void writer(String filename, char[] chars) {\n BinaryOut binaryOut = new BinaryOut(filename);\n\n for (char c : chars) {\n binaryOut.write(c);\n }\n\n binaryOut.close();\n }", "private void initCodeValuesInlineContent(String fileContent) {\n String lineSeparator = (String) java.security.AccessController.doPrivileged(\n new sun.security.action.GetPropertyAction(\"line.separator\"));\n\n String fileContentEnCodeStr = \"\";\n try {\n fileContentEnCodeStr = (new sun.misc.BASE64Encoder()).encode(fileContent.getBytes(\"UTF-8\"));\n } catch (java.io.UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n codeValuesBase64 = new StringBuilder();\n for(String item : fileContentEnCodeStr.split(lineSeparator))\n codeValuesBase64.append('\"').append(item).append(\"\\\",\");\n // Remove trailing commas.\n if (codeValuesBase64.length() > 0)\n codeValuesBase64.setLength(codeValuesBase64.length() - 1);\n }", "@Override\r\n protected String getFilePath(String code) {\n return null;\r\n }", "public byte getCode();", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\t\n\t\tScanner scan = new Scanner(new File(\"input.txt\"));\n\t\t\n\t\tParser parse;\n\t\tCode code = new Code();\n\t\tSymbolTable st = new SymbolTable();\n\t\t\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString inCode = scan.nextLine();\t\n\t\t\tparse = new Parser(inCode);\n\t\t}\n\t\t\n\t}", "public static void encode()\n {\n String s = BinaryStdIn.readString();\n CircularSuffixArray myCsa = new CircularSuffixArray(s);\n int first = 0;\n while (first < myCsa.length() && myCsa.index(first) != 0) {\n first++;\n }\n BinaryStdOut.write(first);\n int i = 0;\n while (i < myCsa.length()) {\n BinaryStdOut.write(s.charAt((myCsa.index(i) + s.length() - 1) % s.length()));\n i++;\n }\n BinaryStdOut.close();\n }", "public void generateCode() {\n\t\tfor (int i = 0; i < AsmGen.codes.size(); i++) generateFunctionASMCode(AsmGen.codes.get(i));\n\t\tgenerateMMIXMainBootstrap();\n\t\tfile.printf(\"\\n\");\n\t}", "void decode(){\n int bit = -1; // next bit from compressed file: 0 or 1. no more bit: -1\r\n int k = 0; // index to the Huffman tree array; k = 0 is the root of tree\r\n int n = 0; // number of symbols decoded, stop the while loop when n == filesize\r\n int numBits = 0; // number of bits in the compressed file\r\n FileOutputStream file = null;\r\n try {\r\n file = new FileOutputStream(\"uncompressed.txt\");\r\n } catch (FileNotFoundException ex) {\r\n System.err.println(\"Could not open file to write to.\");\r\n }\r\n while ((bit = inputBit()) >= 0){\r\n k = codetree[k][bit];\r\n numBits++;\r\n if (codetree[k][0] == 0){ // leaf\r\n try {\r\n file.write(codetree[k][1]);\r\n } catch (IOException ex) {\r\n System.err.println(\"Failed to write to file.\");\r\n }\r\n System.out.write(codetree[k][1]);\r\n if (n++ == filesize) break; // ignore any additional bits\r\n k = 0;\r\n }\r\n }\r\n System.out.printf(\"\\n\\n------------------------------\\n\" +\r\n \"%d bytes in uncompressed file.\\n\", filesize);\r\n System.out.printf(\"%d bytes in compressed file.\\n\", numBits / 8);\r\n System.out.printf(\"Compression ratio of %f.\", (double)numBits / (double)filesize);\r\n System.out.flush();\r\n }", "public void generateCode() {\n new CodeGenerator(data).generateCode();\n }" ]
[ "0.7019738", "0.6524029", "0.63117427", "0.61450595", "0.61324227", "0.6100999", "0.6030729", "0.5929681", "0.5916572", "0.5896477", "0.58574134", "0.5825302", "0.57679194", "0.5687661", "0.568289", "0.56760246", "0.56694376", "0.5665681", "0.5628193", "0.560408", "0.55932975", "0.55932975", "0.55932975", "0.55932975", "0.55932975", "0.5590512", "0.5559373", "0.55511224", "0.5530292", "0.5508299", "0.5481513", "0.5481513", "0.54742664", "0.54717606", "0.5470646", "0.54647875", "0.5448921", "0.5446678", "0.5445361", "0.5436155", "0.54309857", "0.542847", "0.54108095", "0.54063255", "0.5405079", "0.53898144", "0.53735507", "0.53618073", "0.53556156", "0.53545475", "0.5350628", "0.5350457", "0.5348599", "0.53384036", "0.53384036", "0.53384036", "0.53384036", "0.53384036", "0.53384036", "0.5325617", "0.53134614", "0.53113276", "0.5302595", "0.53025734", "0.53025734", "0.53025734", "0.529958", "0.5288313", "0.52873564", "0.52856374", "0.5281043", "0.5281043", "0.5279299", "0.5265277", "0.526522", "0.52612215", "0.5239987", "0.5236581", "0.5236581", "0.52258825", "0.52190787", "0.52086896", "0.52002543", "0.51939803", "0.5192666", "0.51923186", "0.5187301", "0.51865625", "0.518544", "0.5184511", "0.5179937", "0.517918", "0.5171729", "0.5171183", "0.51667863", "0.5157701", "0.5156961", "0.5147817", "0.51424617", "0.5139935", "0.513933" ]
0.0
-1
Load stored coded from a text file
public void loadStoredCodes(String fName) { //Clear stored codes before loading codes if (storedCodes.size() > 0) { storedCodes.clear(); } try { File f = new File(fName); if (!f.exists()) { return; } FileReader fr = new FileReader(f); BufferedReader bf = new BufferedReader(fr); String code, name, priceStr; while ((code = bf.readLine()) != null && (name = bf.readLine()) != null && (priceStr = bf.readLine()) != null) { storedCodes.add(code); } bf.close(); fr.close(); } catch (Exception e) { System.out.println(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void loadSimpleCodesFromFile() {\n\t\tReader reader;\r\n\t\ttry {\r\n\t\t\t//reader = new FileReader(pathStr + \"/../pt.iscte.pidesco.codegenerator/Settings/Code.cg\");\r\n\t\t\treader = new FileReader(\"Code.cg\");\r\n\t\t\tint data = reader.read();\r\n\t\t\tString output = \"\";\r\n\t\t\twhile (data != -1) {\r\n\t\t\t\tchar dataChar = (char) data;\r\n\t\t\t\toutput += dataChar;\r\n\t\t\t\tdata = reader.read();\r\n\t\t\t}\r\n\t\t\tString[] Codes = output.split(\"-CGCodeSeparator-\");\r\n\t\t\tfor (String code : Codes) {\r\n\t\t\t\tString[] Code = code.split(\"-CGSeparator-\");\r\n\t\t\t\tif (Code.length > 1)\r\n\t\t\t\t\tSimpleCodeMap.put(Code[0], new SimpleCode(Code[0], Code[1]));\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\trefreshList();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t}", "void load(File file);", "public void load(File source);", "@Override\n\tpublic void load() {\n\t\tFileHandle file = Gdx.files.internal(DogRunner.PARENT_DIR + \"charset.txt\");\n\t\tcharset = file.readString();\n\t}", "public void load (File file) throws Exception;", "public void loadFromFile(String file) throws IOException {\n loadFromFile(file,DEFAULT_CHAR_SET);\n }", "public void GetData(String nameFile) throws IOException {\n File file = new File(nameFile);\n BufferedReader finalLoad = new BufferedReader(new FileReader(file));\n int symbol = finalLoad.read();\n int indexText = 0;\n while (symbol != -1) {\n text[indexText++] = (char) symbol;\n if (indexText >= Constants.MAX_TEXT - 1) {\n PrintError(\"to mach size of file\".toCharArray(), \"\".toCharArray());\n break;\n }\n symbol = finalLoad.read();\n }\n text[indexText++] = '\\n';\n text[indexText] = '\\0';\n finalLoad.close();\n //System.exit(1);\n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "public void readFromFile() {\n\n\t}", "public void loadFromFile(final Context ctx) {\n\t\tString line, code, desc;\n\t\tDTC dtc;\n\t\ttry {\n\t\t\t// final FileInputStream fstream = new FileInputStream(pathname);\n\t\t\tfinal InputStream fstream = ctx.getResources().openRawResource(\n\t\t\t\t\tR.raw.dtc);\n\t\t\tfinal BufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tfstream));\n\t\t\twhile (in.ready()) {\n\t\t\t\tline = in.readLine();\n\t\t\t\tcode = line.substring(0, line.indexOf(','));\n\t\t\t\tdesc = line.substring(line.indexOf(',') + 1);\n\t\t\t\tdtc = new DTC(code, desc);\n\t\t\t\tput(dtc.codeAsInt(), dtc);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (final Exception e) {\n\t\t\tLog.e(TAG, \"Error reading the DTC codes from the CSV file\", e);\n\t\t}\n\t}", "public void load(String file){\n try{\n Scanner sc = new Scanner(new FileReader(file));\n ArrayList <String> saving = new ArrayList<String>();\n boolean line = sc.hasNext();\n while(line ==true ){\n String x = sc.next();\n if(!(x.contains(\"CO\")||x.contains(\"CB\"))){\n saving.add(x);\n line = sc.hasNext();\n }\n }\n sc.close();\n setValues(saving);\n }catch(IOException e){\n JOptionPane.showMessageDialog(null, \"error in reading file\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "public boolean load(String file);", "public void loadFile(File p_file) throws IOException;", "private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void LoadTxt(File Arquivo) {\n if (Arquivo.exists()) {\r\n\r\n try {\r\n\r\n FileReader FR = new FileReader(Arquivo);\r\n BufferedReader BW = new BufferedReader(new InputStreamReader(new FileInputStream(Arquivo.getAbsolutePath()), \"ISO-8859-1\"));\r\n\r\n //BufferedReader BW = new BufferedReader(FR);\r\n\r\n String dados;\r\n String[] paraArray = new String[3];\r\n String matricula;\r\n \r\n String serie = Arquivo.getName();\r\n int pos = serie.lastIndexOf(\".\");\r\n if (pos > 0) {\r\n serie = serie.substring(0, pos);\r\n }\r\n\r\n Sala novaSala = new Sala(serie); //CRIANDO SALA COM NOME DE TURMA\r\n salas2.add(novaSala); // ADICIONANDO SALA NA LISTA DE SALAS\r\n while ((dados = BW.readLine()) != null) {\r\n paraArray = dados.split(\";\");\r\n\r\n matricula = /*Integer.parseInt*/ (paraArray[0]);\r\n //senha = /*Integer.parseInt*/(paraArray[2]);\r\n Dados novoDado = new Dados(matricula, paraArray[1], paraArray[2]);\r\n\r\n novoDado.setSerie(serie); //ADICIONANDO TURMA AO DADO\r\n novaSala.getDadosalas().add(novoDado); //ADICIONANDO DADOS A LISTA DE DADOS QUE ESTA EM SALA\r\n\r\n }\r\n \r\n\r\n BW.close();\r\n FR.close();\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Erro ao carregar arquivo acima\");\r\n System.out.println(e.getMessage());\r\n\r\n }\r\n\r\n } else {\r\n System.out.println(\"Nenhum arquivo de dados encontrado\");\r\n }\r\n\r\n }", "private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}", "public void\tload(String fileName) throws IOException;", "public void load(String code) {\n\n\t\tEngine.console.write(\"load method echo\");\n\t\tif (!code.matches(\"(\\\\d){4}\")) {\n\t\t\tEngine.console.write(\"code does not match regex for map ID\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tEngine.console.write(\"code matches regex\");\n\t\t\ttry {\n\t\t\t\tFileInputStream fis = new FileInputStream(\"/boards/\" + code + \".map\");\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\tBoard loaded = (Board) ois.readObject();\n\t\t\t\tEngine.activeBoard = loaded;\n\t\t\t\tEngine.console.write(\"loaded and assigned\");\n\t\t\t\tSystem.out.println(Engine.activeBoard);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tEngine.console.write(\"File \" + code + \".map not found\", Console.ERROR);\n\t\t\t} catch (ClassNotFoundException ex) {\n\t\t\t\tEngine.console.write(\"Class not found\", Console.ERROR);\n\t\t\t}\n\t\t}\n\t}", "private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void load (IFile file) throws Exception;", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using a programmer-managed byte-array\n\t\ttry (FileInputStream in = new FileInputStream(inFileStr)) {\n\t\t\tstartTime = System.nanoTime();\n\t\t\tbyte[] byteArray = new byte[bufferSize];\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(byteArray)) != -1) {\n\t\t\t\tsnippets.add(new String(byteArray));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}", "private void load() {\n try {\n StringBuilder sb = new StringBuilder();\n InputStreamReader isr = new InputStreamReader(SpellCheckerDemo.class.getResourceAsStream(\"/org/jdesktop/swingx/demo/JuliusCaesar.txt\"));\n BufferedReader br = new BufferedReader(isr);\n String str;\n while((str = br.readLine()) != null) {\n sb.append(str);\n sb.append(\"\\n\");\n }\n str = sb.toString();\n textArea.setText(str);\n } catch (Throwable t) {\n logger.log(Level.SEVERE,\"Unable to load the text.\",t);\n }\n }", "public void readFile(String file)\n\t{\t\n\t\tfindPieces(file);\n\t}", "public void loadMemory(String inputFile){\n\t\tint pc = 0;\n\t\ttry{\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(inputFile),\"rw\");\n\t\t\tString strLine;\n\t\t\tint decimalNumber;\n\t\t\twhile ((strLine = raf.readLine())!=null){\n\t\t\t\tstrLine = strLine.substring(0, 8); //get the first 8 char(hex instruction)\n\t\t\t\tdecimalNumber = new BigInteger(strLine, 16).intValue(); //decode the hex into integer\n\t\t\t\tloadInstructionInMemory(pc, decimalNumber);\n\t\t\t\tpc += 4;\n\t\t\t}\n\t\t\traf.close();\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"Error:\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "private void loadScheme(File file)\n\t{\n\t\tString name = file.getName();\n\n\t\ttry\n\t\t{\n\t\t\tBedrockScheme particle = BedrockScheme.parse(FileUtils.readFileToString(file, Charset.defaultCharset()));\n\n\t\t\tthis.presets.put(name.substring(0, name.indexOf(\".json\")), particle);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}", "public void load(String filePath){\r\n File loadFile = new File(filePath);\r\n if (!loadFile.exists()){\r\n System.out.println(\"I failed. There are no saved games.\");\r\n return;\r\n }\r\n FileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n try {\r\n fis = new FileInputStream(filePath);\r\n in = new ObjectInputStream(fis);\r\n long versionUID = (long) in.readObject();\r\n if (versionUID != this.serialVersionUID) {\r\n throw new UnsupportedClassVersionError(\"Version mismatch for save game!\");\r\n }\r\n this.p = (Character) in.readObject();\r\n this.map = (SpecialRoom[][]) in.readObject();\r\n\r\n } catch (FileNotFoundException ex){\r\n System.out.println(\"The saved game was not found!\");\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n System.out.println(\"There was an error reading your save game :(\");\r\n ex.printStackTrace();\r\n System.out.println(\")\");\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"The version of the save game is not compatible with this game!\");\r\n ex.printStackTrace();\r\n } catch (UnsupportedClassVersionError ex) {\r\n System.out.println(ex.getMessage());\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n System.out.println(\"An unknown error occurred!\");\r\n }\r\n\r\n }", "public void textFile(String path){\n\t\tBufferedReader br;\r\n\t\ttry {\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(path),Charset.forName(\"gbk\")));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t\tLineBufferReader myReader=new LineBufferReader(br);\r\n\t}", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "public void readFile();", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\t\n\t\tScanner scan = new Scanner(new File(\"input.txt\"));\n\t\t\n\t\tParser parse;\n\t\tCode code = new Code();\n\t\tSymbolTable st = new SymbolTable();\n\t\t\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString inCode = scan.nextLine();\t\n\t\t\tparse = new Parser(inCode);\n\t\t}\n\t\t\n\t}", "protected void loadFile(String s) {\n\t\tpush();\n\t\tfile.load(s, curves);\n\t\trecalculateCurves();\n\t\tpushNew();\n\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void loadFile() {\n\t\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\t\n\t\tString filename = JOptionPane.showInputDialog(null,\"Enter the filename.\");\n\t\tfileloc += filename;\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\tif(!fl.exists()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"The specified file doesnt exist at the given location.\");\n\t\t} else {\n\t\t\tMinLFile nminl = new MinLFile(filename);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tFileReader flrd = new FileReader(fileloc);\n\t\t\t\tBufferedReader bufread = new BufferedReader(flrd);\n\t\t\t\t\n\t\t\t\tnminl.CodeArea.setText(\"\");\n\t\t\t\n\t\t\t\tString str;\n\t\t\t\twhile((str = bufread.readLine()) != null) {\n\t\t\t\t\tDocument doc = nminl.CodeArea.getDocument();\n\t\t\t\t\ttry {\n\t\t\t\t\tdoc.insertString(doc.getLength(), str, null);\n\t\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbufread.close();\n\t\t\t\tflrd.close();\n\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t\t\t\n\t\t\tJComponent panel = nminl;\n\t\t\t\n\t\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\t\tfilename);\t\t\n\t\t\ttabbedPane.setMnemonicAt(0, 0);\n\t\t}\t\n\t}", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "public void load(File tFile) throws FileNotFoundException, IOException {\n BufferedReader reader = new BufferedReader(new FileReader(tFile));\n String line;\n\n\n while ((line = reader.readLine()) != null) {\n line = line.replaceAll(\"\\\\s+\", \" \");\n String[] elements = line.split(\" \");\n\n CSID desc = new CSID();\n // normalised lines are easier to compare as it is well defined, which point will be the 1st\n desc.axis1 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[0]),\n Double.parseDouble(elements[1]),\n Double.parseDouble(elements[2]),\n Double.parseDouble(elements[3])));\n desc.axis2 = (ExtLine2D) ExtLine2D.normaliseLine(new ExtLine2D(Double.parseDouble(elements[4]),\n Double.parseDouble(elements[5]),\n Double.parseDouble(elements[6]),\n Double.parseDouble(elements[7])));\n desc.isCS = elements[8].equals(\"Y\");\n\n this.csDescriptors.add(desc);\n }\n }", "public void loadSaveGameFromFile(File file) {\r\n\t\t//TODO\r\n\t}", "public void LoadHexFile(String filename) throws RuntimeException\n {\n int memPtr = 0;\n Yytoken current_token;\n boolean moreLines = true;\n\n int startingAddress;\n String recordType;\n int valueForMemory;\n\n File theFile = new File(filename);\n if (!theFile.exists())\n throw new RuntimeException(Constants.Error(Constants.FILE_NOT_FOUND) + \" \" + filename);\n try\n {\n //Create token stream from input hex-format file\n FileInputStream is = new FileInputStream(theFile);\n Yylex yy = new Yylex(is); //instantiate lexer object\n current_token = yy.yylex(); //advance first token\n while (moreLines)\n {\n if (memPtr >= PROGRAM_MEMORY_SIZE)\n throw new RuntimeException(Constants.Error(Constants.OUT_OF_MEMORY));\n\n if(current_token.m_index == 0)\n {\n //end of file\n moreLines = false;\n }\n else if(current_token.m_index == 1)\n {\n //get starting address\n startingAddress = Integer.parseInt(current_token.m_text);\n current_token = yy.yylex(); //advance lexer\n //get record type information\n if(current_token.m_index != 2)\n {\n //file semantics incorrect (contract breached by assembler)\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n recordType = current_token.m_text;\n current_token = yy.yylex(); //advance lexer\n\n //depending upon the record type, select record location\n if(recordType.equalsIgnoreCase(\"data record\"))\n {\n //data record: most of the action happens here\n //set memory pointer to startingAddress\n memPtr = startingAddress;\n\n // Load in the current instruction\n valueForMemory = Integer.parseInt(current_token.m_text,16);\n // Swap the nibbles\n valueForMemory = ((valueForMemory & 0xff) << 8) + ((valueForMemory & 0xff00) >> 8);\n this.setProgramMemory(memPtr++,valueForMemory);\n\n current_token = yy.yylex();\n\n //get record and then load record into memory\n while(current_token.m_index == 3)\n {\n //ASSERTION: data records are two bytes long\n //load record into memory\n valueForMemory = Integer.parseInt(current_token.m_text,16);\n // Swap the nibbles\n valueForMemory = ((valueForMemory & 0xff) << 8) + ((valueForMemory & 0xff00) >> 8);\n this.setProgramMemory(memPtr++,valueForMemory);\n current_token = yy.yylex(); //advance lexer\n }\n\n }\n else if(recordType.equalsIgnoreCase(\"end of file record\"))\n {\n //acknowledged end of file approaching\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"extendedSAR\"))\n {\n //extended segment address record\n //limited use in AVR\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"startSAR\"))\n {\n //start of segment address record\n //limited use in AVR\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"extendedLAR\"))\n {\n //extended linear address record\n //use unknown as yet...\n current_token = yy.yylex(); //advance lexer\n }\n else if(recordType.equalsIgnoreCase(\"startLAR\"))\n {\n //start of linear address record\n //use unknown as yet...\n current_token = yy.yylex(); //advance lexer\n }\n }\n else\n {\n //file semantics incorrect (contract breached by assembler)\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n } // while more lines\n is.close();\n } // try block\n catch (IOException e)\n {\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n //Something VERY BAD happened in the lexer:\n //failed to recognise data in file.\n throw new RuntimeException(Constants.Error(Constants.INVALID_HEXFILE));\n }\n return;\n }", "void load();", "void load();", "public void fileReader2(String fin) throws IOException {\r\n Decoder decoder = new Decoder();\r\n\r\n Map<String,String> dicionario = new HashMap<String,String>();\r\n Map<String,Integer> colecaoMetais = new HashMap<String,Integer>();\r\n BufferedReader br;\r\n String alien_Sound_1,alien_Sound_2,alien_Sound_3,alien_Sound_4;\r\n\r\n try { \r\n br = new BufferedReader(new FileReader(fin));\r\n \r\n int numLinhas = 0;\r\n String line = null;\r\n while ((line = br.readLine()) != null) {\r\n\r\n /*\r\n Read up to 7 lines of Notations\r\n and saves it on a HashMap.\r\n */\r\n if(((line.substring(5,6)).equals(\"is\")) && numLinhas<7){ \r\n String AlienLang = line.substring(0,4);\r\n String RomanNumeral = line.substring(8);\r\n dicionario.put(AlienLang,RomanNumeral);\r\n System.out.println(AlienLang+\" \"+RomanNumeral);\r\n }\r\n \r\n \r\n /*\r\n Read the info given: unidades, creditos and the type of the metal.\r\n And it saves the metal and its value in a HashMap.\r\n */\r\n else if(line.charAt(line.length()-1) != '?' && (line.substring(0,6).equals(\"quanto \")==false) || line.substring(0,6).equals(\"quantos\")==false){\r\n int unidadesInt = decoder.romanToInt((dicionario.get(line.substring(0,3)) + dicionario.get(line.substring(5,8))));\r\n String metal = dicionario.get(line.substring(10,13));\r\n int creditos = decoder.romanToInt(dicionario.get(line.substring(20,21))); \r\n int metalValor = creditos/unidadesInt;\r\n\r\n colecaoMetais.put(metal,metalValor);\r\n System.out.println(metal +\" \"+ metalValor);\r\n }\r\n\r\n /*\r\n Recongnizes that this a question \"quanto vale\"\r\n and calculates it with the numbers given.\r\n if the alien numbers given are not known it will print an error messege.\r\n */\r\n else if(numLinhas>7 && (line.substring(0,6).equals(\"quanto \"))){\r\n alien_Sound_1 = line.substring(12,15);\r\n alien_Sound_2 = line.substring(17,20);\r\n alien_Sound_3 = line.substring(22,25);\r\n alien_Sound_4 = line.substring(27,30);\r\n\r\n if(((dicionario.containsKey(alien_Sound_1) == false || \r\n (dicionario.containsKey(alien_Sound_2)) == false) || \r\n (dicionario.containsKey(alien_Sound_3)) == false) ||\r\n (dicionario.containsKey(alien_Sound_4)) == false){\r\n System.out.println(\"I have no idea what you are talking about\");\r\n\r\n }\r\n\r\n int finalCreditos = decoder.romanToInt(dicionario.get(alien_Sound_1)\r\n + (dicionario.get(alien_Sound_2))\r\n + (dicionario.get(alien_Sound_3)\r\n + (dicionario.get(alien_Sound_4))));\r\n\r\n System.out.println(alien_Sound_1 +\" \"+ alien_Sound_2 +\" \"+ alien_Sound_3 +\" \"+ alien_Sound_4 +\" is \"+ finalCreditos);\r\n }\r\n /*\r\n Recongnizes that this a question \"quantos créditos são\"\r\n and calculates it with the numbers and kind of metal given.\r\n if the alien numbers given or the metal are not known it will print an error messege.\r\n */\r\n if(line.charAt(line.length()-1) == '?' && (line.substring(0,6).equals(\"quantos\"))){\r\n alien_Sound_1 = line.substring(21,24);\r\n alien_Sound_2 = line.substring(26,29);\r\n alien_Sound_3 = line.substring(31,34);\r\n\r\n if(((dicionario.containsKey(alien_Sound_1) == false) || \r\n (dicionario.containsKey(alien_Sound_2) == false) || \r\n (colecaoMetais.containsKey(alien_Sound_3) == false))){\r\n System.out.println(\"I'm sorry Dave, I'm afraid I can't do that\");\r\n }\r\n\r\n int finalUnidades = decoder.romanToInt(dicionario.get(alien_Sound_1) + (dicionario.get(alien_Sound_2)));\r\n int valorMetal = colecaoMetais.get(alien_Sound_3);\r\n int finalMetalValue = finalUnidades * valorMetal;\r\n\r\n System.out.println(alien_Sound_1 +\" \"+ alien_Sound_2 +\" \"+ alien_Sound_3 +\" is \"+ finalMetalValue);\r\n }\r\n\r\n numLinhas++;\r\n \r\n }\r\n br.close();\r\n\r\n }\r\n catch(IOException e) \r\n { \r\n e.printStackTrace(); \r\n } \r\n \r\n }", "public String parse(File file);", "public abstract void load() throws IOException;", "public void load (String argFileName) throws IOException;", "public static void reading(String fileName)\n {\n\n }", "public static void readDictionary()\r\n\t{\r\n\t\t//It trys to read over the file using try-catch in case of an Exception\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"english.0\");\r\n\t\t\tScanner scan = new Scanner(file);\r\n\t\t\t//It reads over the file as long as there are words to read and we insert them into the given storage\r\n\t\t\twhile(scan.hasNext()) {\r\n\t\t\t\tdata.insert(scan.next());\r\n\t\t\t}\r\n\t\t\tscan.close(); \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t}", "public static void readInstructionsFromFile(final File file, final MipsComputer comp) {\n\t\tSystem.out.println(\"Loading instructions from file...\");\n\t\tfinal Scanner s;\n\t\ttry {\n\t\t\ts = new Scanner(file);\n\t\t\twhile(s.hasNextLine()){\n\t\t\t\tcomp.loadInstruction(convertToBitString(s.nextLine().replaceAll(\"\\\\s\", \"\")));\n\t\t\t}\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void loadFile(String fname) \n\t{\n\t\t// use Scanner used to read the file\n\t\ttry{\n\t\t\tScanner scan = new Scanner(new FileReader(fname));\n\t\t\t//read in number of row and column in the first line\n\t\t\treadRC(scan);\n\t\t\treadMaze(scan);\n\t\t\t//close the scanner\n\t\t\tscan.close();\t\t\t\t\t\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\tSystem.out.println(\"FileNotFound\"+e.getMessage());\n\t\t}\n\t}", "@Override\n void load(String data) {\n }", "@Nullable public abstract String loadVerseText(int ari);", "public MutableTextLabels loadSerialized(File file,TextBase base) throws IOException,FileNotFoundException\n\t{\n\t\ttry {\n\t\t\tObjectInputStream in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\t\t\tMutableTextLabels labels = (MutableTextLabels)in.readObject();\n\t\t\tlabels.setTextBase(base);\n\t\t\tin.close();\n\t\t\treturn labels;\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\tthrow new IllegalArgumentException(\"can't read TextLabels from \"+file+\": \"+e);\n\t\t}\n\t}", "public abstract void readFromFile(String key, String value);", "public static void load() {\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Read memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n//\t\tSystem.out.println(\"index\"+Integer.parseInt(mar.substring(0, mar.length() - 2), 2));\r\n\t\tcontent.setStr(getBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)]);\r\n\t\t\r\n\t\twriteMBR(content);\r\n\t\tTraceINF.write(\"Read finished.\");\r\n\t}", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "protected void load() {\n codeFolder = new File(folder, \"code\");\n dataFolder = new File(folder, \"data\");\n\n // get list of files in the sketch folder\n String list[] = folder.list();\n\n // reset these because load() may be called after an\n // external editor event. (fix for 0099)\n codeCount = 0;\n\n code = new SketchCode[list.length];\n\n String[] extensions = getExtensions();\n\n for (String filename : list) {\n // Ignoring the dot prefix files is especially important to avoid files\n // with the ._ prefix on Mac OS X. (You'll see this with Mac files on\n // non-HFS drives, i.e. a thumb drive formatted FAT32.)\n if (filename.startsWith(\".\")) continue;\n\n // Don't let some wacko name a directory blah.pde or bling.java.\n if (new File(folder, filename).isDirectory()) continue;\n\n // figure out the name without any extension\n String base = filename;\n // now strip off the .pde and .java extensions\n for (String extension : extensions) {\n if (base.toLowerCase().endsWith(\".\" + extension)) {\n base = base.substring(0, base.length() - (extension.length() + 1));\n\n // Don't allow people to use files with invalid names, since on load,\n // it would be otherwise possible to sneak in nasty filenames. [0116]\n if (Sketch.isSanitaryName(base)) {\n code[codeCount++] =\n new SketchCode(new File(folder, filename), extension);\n }\n }\n }\n }\n // Remove any code that wasn't proper\n code = (SketchCode[]) PApplet.subset(code, 0, codeCount);\n\n // move the main class to the first tab\n // start at 1, if it's at zero, don't bother\n for (int i = 1; i < codeCount; i++) {\n //if (code[i].file.getName().equals(mainFilename)) {\n if (code[i].getFile().equals(primaryFile)) {\n SketchCode temp = code[0];\n code[0] = code[i];\n code[i] = temp;\n break;\n }\n }\n\n // sort the entries at the top\n sortCode();\n\n // set the main file to be the current tab\n if (editor != null) {\n setCurrentCode(0);\n }\n }", "public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }", "public void doIt(File f) throws Exception\n {\n LuaParser parser=new LuaParser();\n Map<String,Object> data=parser.read(f);\n useData(data);\n }", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "private void loadJava(byte[] encodedData, int offset, int len, String file){\n try{\n PngReader reader = new PngReader();\n pixels = reader.read(new ByteArrayInputStream(encodedData, offset, len));\n width = reader.width;\n height = reader.height;\n handle = -1;\n pixels.position(0).limit(pixels.capacity());\n }catch(Exception e){\n throw new ArcRuntimeException(\"Failed to load PNG data\" + (file == null ? \"\" : \" (\" + file + \")\"), e);\n }\n }", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "public void LoadBoard(String strFilePath){\n\t\t_TEST stack = new _TEST();\t\t\t\t\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"strFilePath:String\", \"\");\t/* TEST */\n\t\tParseFile(strFilePath);\n\t\tstack.PrintTail(ID,\"strFilePath:String\", \"\"); \t\t/* TEST */\n\n\t}", "@Override\n\tpublic Object load(String file) {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}", "static public ArrayList<ChineseCharacter> readFromFile()\r\n\t {\n \t \r\n\t\t InputStream stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"files/charactersSet1.txt\");\r\n\t\t\t\t \r\n\t\t\t\r\n\t System.out.println(\"==========> \"+stream != null);\r\n\t // stream = LoadCharactersFromFile.class.getClassLoader().getResourceAsStream(\"SomeTextFile.txt\");\r\n\t // System.out.println(stream != null);\r\n\t \t// getResourceAsStream(\"file.txt\")\r\n\t \t \r\n\t // Resource resource = new ClassPathResource(\"com/example/Foo.class\");\r\n\t \r\n\t String filePath = stream.toString();\r\n\t\t \r\n\t System.out.println(\"filePath: \"+filePath);\r\n\t BufferedReader br = new BufferedReader(new InputStreamReader(stream));\r\n\t String line = \"\";\r\n\t String cvsSplitBy = \",\";\r\n\r\n\t \r\n\t \r\n\t ArrayList<ChineseCharacter> chineseCharacterArraylist = new ArrayList<ChineseCharacter>() ;\r\n\t int charactercount =0;\r\n\t try {\r\n\r\n\t // br = new BufferedReader(new FileReader(filePath));\r\n\t int count = 1;\r\n\t int listLength = 0;\r\n\t \r\n\t // ChineseCharacter character;\r\n\t String listtitle = \"\";\r\n\t ArrayList<String> pinyinlistArray = new ArrayList<String>();\r\n\t \r\n\t ArrayList<Character> hanzilistArray = new ArrayList<Character>() ;\r\n\t int linecount = 0;\r\n\t \r\n\t while ((line = br.readLine()) != null) \r\n\t {\r\n\t \t linecount++;\r\n\t\t\t \r\n\t \t \r\n\t\t\t //listtitle: characters: pinyin: \r\n\t\t\t // use comma as separator\r\n\t\t\t \r\n\t\t\t if(count ==1)\r\n\t\t\t {\r\n\t\t\t \t \r\n\t\t\t \t String[] listtitleLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(listtitleLine[0].equals(\"listtitle:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t \r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t if(linecount==1)\r\n\t\t\t\t {\r\n\t\t\t\t \t listtitle = listtitleLine[1];\r\n\t\t\t\t \t \r\n\t\t\t\t\t System.out.println(\"linecount==1, Linetype: \" + listtitleLine[0] + \" value: \" + listtitle);\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t }//if(count ==1)\r\n\t\t\t \r\n\t\t\t if(count ==2)\r\n\t\t\t {\r\n\t\t\t \t String[] charactersLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(charactersLine[0].equals(\"characters:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t listLength = charactersLine.length;\r\n\t\t\t\t \r\n\t\t\t\t \t for(int i =0; i<listLength-1; i++)\r\n\t\t\t \t\t\t {\r\n\t\t\t\t \t\t charactersLine[i+1] = charactersLine[i+1].replace(\" \", \"\");\r\n\t\t\t\t \t\t// charactersLine[i+1] = charactersLine[i+1].replace(\",\", \"\");//remove all comma\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t hanzilistArray.add(charactersLine[i+1].charAt(0));\r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t\t \r\n\t\t\t \t\t\t }\r\n\t\t\t\t \t System.out.print(\"\\n\"); \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t }//if(count ==2)\r\n\t\t\t \r\n\t\t\t if(count ==3)\r\n\t\t\t {\r\n\t\t\t \t String[] pinyinLine = line.split(cvsSplitBy);\r\n\t\t\t\t if(pinyinLine[0].equals(\"pinyin:\"))\r\n\t\t\t\t {\t\r\n\t\t\t\t \t //check pinyin and characters have same no. of elements\r\n\t\t\t\t \t if (listLength == pinyinLine.length)\r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t for(int i =0; i<listLength-1; i++)\r\n\t\t\t\t\t \t\t\t {\r\n\t\t\t\t\t\t\t \t \r\n\t\t\t\t\t\t\t \t pinyinlistArray.add(pinyinLine[i+1]);\r\n\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t ChineseCharacter character = new ChineseCharacter(listtitle,hanzilistArray.get(i),pinyinlistArray.get(i)); \r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t chineseCharacterArraylist.add(charactercount, character);;\r\n\t\t\t\t\t \t\t\t\t// chineseCharacters[charactercount] = character;\r\n\t\t\t\t\t \t\t\t\t \r\n\t\t\t\t\t \t\t\t\t charactercount++; \r\n\t\t\t\t\t \t\t\t }\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t \r\n\t\t\t\t \t } \r\n\t\t\t\t \t else \r\n\t\t\t\t \t {\r\n\t\t\t\t \t\t System.out.println(\"listLength != pinyinLine.length!!..unable to add list: \"+ listtitle);\r\n\t\t\t\t \t }\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t hanzilistArray.clear();\r\n\t \t\t\t\t pinyinlistArray.clear(); \r\n\t\t\t }//if(count ==3)\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if(count == 3) { count = 1;}\r\n\t\t\t else{ count++;}\r\n\t\t\t \r\n\t\t\t \r\n\t }//while\r\n\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t }\r\n\t catch (FileNotFoundException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t } finally \r\n\t {\r\n\t if (br != null) \r\n\t {\r\n\t try \r\n\t {\r\n\t br.close();\r\n\t } catch (IOException e) \r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t }\r\n\t }\r\n\t\t \r\n\t \r\n\t return chineseCharacterArraylist;\r\n\t }", "public void load(String path) throws IOException, ClassNotFoundException {\n FileInputStream inputFile = new FileInputStream(path);\n ObjectInputStream objectInput = new ObjectInputStream(inputFile);\n\n map = (String[]) objectInput.readObject();\n\n objectInput.close();\n inputFile.close();\n }", "private void load(Path fileName) throws IOException {\n try(BufferedReader reader = Files.newBufferedReader(fileName)) {\n String line = \"\";\n\n // Matches lines with the format:\n // key=value\n // where the key is any sequence of lowercase letters. (a to z)\n // where value may be any letters from a to z (case insensitive) 0 to 9 or the letters '-' and '.'.\n Pattern validLine = Pattern.compile(\"^(?<key>[a-z]+)=(?<value>[a-zA-Z0-9-.]+)$\");\n\n // Read the file line by line\n while((line = reader.readLine()) != null) {\n if(line.startsWith(\";\")) { // Ignore lines that start with ;\n continue;\n }\n\n // Remove any whitespace\n line = line.trim();\n\n // Continue if our line is empty\n if(\"\".equals(line)) {\n continue;\n }\n\n Matcher matcher = validLine.matcher(line);\n\n if(!matcher.matches() || matcher.groupCount() != 2) {\n System.err.println(\"Unable to parse line: \" + line);\n continue;\n }\n\n String key = matcher.group(\"key\");\n String value = matcher.group(\"value\");\n\n map.put(key, value);\n }\n }\n }", "private void loadFrAfinnLibrary() throws FileNotFoundException, IOException{\n \n BufferedReader reader = new BufferedReader(new FileReader(\"src/language_libraries/AFINN-fr-165.txt\"));\n String line;\n \n while ((line = reader.readLine()) != null) \n {\n String[] parts = line.split(\"\t\", 2); //split each line into 2 parts separated by whitespace\n \n if(parts.length == 2){\n \n String key = parts[0].replaceAll(\"[\\\\s+|\\\\p{P}\\\\p{S}]\" ,\"\"); // part 1 is the words. replace any symbols or punctuation marks \"\"\n int value = Integer.parseInt(parts[1]); // part 2 is the word score\n afinnFrenchLibrary.put(key,value);//store in hashmap\n }\n }\n reader.close();\n }", "public static void RT() {////cada clase que tiene informacion en un archivo txt tiene este metodo para leer el respectivo archivoy guardarlo en su hashmap\n\t\treadTxt(\"peliculas.txt\", pelisList);\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tInputStream f = getClass().getResourceAsStream(\"/LoadTXT.txt\");\n\t\t\tboolean isFirst = true;\n\t\t\tBufferedReader reader = null;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new InputStreamReader(f));\n\t\t\t\tString Ins = null;\n\t\t\t\tint line = 1;\n\t\t\t\t//Read the file line by line and split the line into two parts by symbol \",\"\n\t\t\t\twhile ((Ins = reader.readLine()) != null) {\n\t\t\t\t\tString[] str = Ins.split(\",\");\n\t\t\t\t\tint index = Integer.parseInt(str[0]);\t\t\t\t\t\n\t\t\t\t\tShort con = Integer.valueOf(str[1],2).shortValue();\n\t\t\t\t\tif(isFirst){\n\t\t\t\t\t\tcpu.setPc((short) index);\n\t\t\t\t\t\tisFirst=false;\n\t\t\t\t\t}\n\t\t\t\t\tcpu.setMem(con, index);\t\t\t\t\t\n\t\t\t\t\tline++;\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"The PC value is: \");\n\t\t\tSystem.out.println(cpu.getPc());\n\t\t\t//Call the function to show the data on the screen\n\t\t\tShowData();\n\t\t}", "private void parseLrc(String filepathname) throws LrcFileNotFoundException,\n LrcFileUnsupportedEncodingException,\n LrcFileIOException,\n LrcFileInvalidFormatException {\n String file = new String(filepathname);\n\n // dealing with different text file encodings.\n // (1) try reading BOM from text file\n FileInputStream lrcFileStream = null;\n try {\n lrcFileStream = new FileInputStream(new File(file));\n\n } catch (FileNotFoundException e) {\n // if failed to load at the same folder then try /sdcard/Music/Lyrics\n // change the path to specified folder\n Scanner s = new Scanner(file);\n String fileName = s.findInLine(Pattern.compile(\"(?!.*/).*\"));\n String anotherFile = new StringBuilder(mContext.getResources().getString(R.string.lrc_file_path)).append(fileName).toString();\n\n try {\n lrcFileStream = new FileInputStream(new File(anotherFile));\n file = anotherFile;\n\n } catch (FileNotFoundException ee) {\n throw new LrcFileNotFoundException(\n mContext.getResources().getString(R.string.lrc_file_not_found));\n }\n }\n\n BufferedInputStream bin = null;\n String code = null;\n try {\n bin = new BufferedInputStream(lrcFileStream);\n int p = (bin.read() << 8) + bin.read(); // first 2 bytes\n int q = bin.read(); // 3rd byte\n\n // first check to see if it's Unicode Transition Format (UTF-8, UTF-16)\n switch (p) {\n // first check UTF-8 with BOM\n case 0xefbb:\n if (q == 0xbf) {\n code = \"UTF-8\"; // on windows, UTF-8 text files have a BOM: \"EF BB BF\";\n } else {\n code = \"UNKNOWN\"; // however, on linux, there's no BOM for UTF-8\n }\n break;\n\n // UTF-16 with BOM\n case 0xfffe: // little endian\n case 0xfeff: // big endian\n code = \"UTF-16\"; // the Scanner can recognize big endian or little endian\n break;\n\n default:\n code = \"UNKNOWN\";\n break;\n }\n\n } catch (IOException e) {\n MusicLogUtils.d(TAG, \"parseLrc : I/O error when reading .lrc file\");\n throw new LrcFileIOException(\n mContext.getResources().getString(R.string.lrc_file_io_error));\n }\n\n // (2) if no BOM detected, we don't know if it's Unicode or ISO-8859-1 compatible encoding\n // try firstly to detect UTF-8 without BOM\n // by going through all the text file to see if there's one \"character unit\" that does not \n // match the UTF-8 encoding rule.\n if (\"UNKNOWN\".equals(code)) {\n try {\n lrcFileStream = new FileInputStream(new File(file));\n\n } catch (FileNotFoundException e) {\n throw new LrcFileNotFoundException(\n mContext.getResources().getString(R.string.lrc_file_not_found));\n }\n\n try {\n bin = new BufferedInputStream(lrcFileStream);\n byte[] value = new byte[3];\n int result = 1;\n\n boolean isUTF8 = true;\n int byte1 = 0;\n int byte2 = 0;\n int byte3 = 0;\n while (result > 0) {\n result = bin.read(value, 0, 1);\n if (result <= 0) {\n break;\n }\n\n byte1 = value[0] & 0xff;\n if ((byte1 <= 0x7f) && (byte1 >= 0x01)) {\n // matches 1 byte encoding\n continue;\n } else {\n // need read one more byte\n result = bin.read(value, 1, 1);\n if (result <= 0) {\n break;\n }\n\n byte2 = value[1] & 0xff;\n if ((byte1 <= 0xdf) && (byte1 >= 0xc0)\n && (byte2 <= 0xbf) && (byte2 >= 0x80)) {\n // matches 2 bytes encoding\n continue;\n } else {\n // need read one more byte\n result = bin.read(value, 2, 1);\n if (result <= 0) {\n break;\n }\n \n byte3 = value[2] & 0xff;\n if ((byte1 <= 0xef) && (byte1 >= 0xe0) && (byte2 <= 0xbf)\n && (byte2 >= 0x80) && (byte3 <= 0xbf) && (byte3 >= 0x80)) {\n continue;\n } else {\n // don't match any of this it should not be UTF-8\n isUTF8 = false;\n break;\n }\n }\n }\n\n }\n \n\n if (isUTF8) {\n code = \"UTF-8\"; // if detected as UTF-8 then change the \"UNKNOWN\" result\n }\n\n } catch (IOException e) {\n MusicLogUtils.d(TAG, \"parseLrc : I/O error when reading .lrc file\");\n throw new LrcFileIOException(\n mContext.getResources().getString(R.string.lrc_file_io_error));\n }\n }\n\n // if cannot be detected as Unicode series\n // then try with ISO-8859-1 compatible encoding according to device's default locale setting\n // create a scanner object according to the file name\n Scanner s = null;\n try {\n if (\"UNKNOWN\".equals(code)) {\n s = new Scanner(new File(file), LyricsLocale.defLocale2CharSet());\n } else {\n s = new Scanner(new File(file), code); // UTF-8 or UTF-16\n }\n\n } catch (FileNotFoundException e) {\n throw new LrcFileNotFoundException(\n mContext.getResources().getString(R.string.lrc_file_not_found));\n } catch (IllegalArgumentException e) { // when the defLocale2CharSet returns null\n MusicLogUtils.d(TAG, \"parseLrc : unsupported textual encoding\");\n throw new LrcFileUnsupportedEncodingException(\n mContext.getResources().getString(R.string.lrc_file_invalid_encoding));\n }\n\n // (3) scanner success, clean up\n mLyricContent.clear();\n\n // parse and add all possible lyrics sentences & information\n // the unrecognized lines in the file are omitted.\n while (s.hasNextLine()) {\n String next = s.nextLine(); // get a valid line\n if (next.length() < 1) {\n continue; // the empty line is omitted\n }\n\n // try to parse this line as a lyric sentence\n Integer[] integerArray = analyzeLrc(next);\n int len = integerArray.length;\n\n if (0 == len) { // no timeTag, thus it is a line of information or unrecognized line\n Scanner scn = new Scanner(next);\n\n // should match the .lrc file's \"infoTag\" format\n String info = scn.findInLine(\"\\\\[(al|ar|by|re|ti|ve):.*\\\\]\");\n if (null != info) { // if matches one of the info tags\n String tag = info.substring(1, 3);\n LyricSentence tmp = new LyricSentence(info.substring(4, info.length() - 1));\n if (tag.equals(\"al\") || tag.equals(\"AL\")) {\n mAlbumName = tmp;\n } else if (tag.equals(\"ar\") || tag.equals(\"AR\")) {\n mArtistName = tmp;\n } else if (tag.equals(\"by\") || tag.equals(\"BY\")) {\n mLyricAuthor = tmp;\n } else if (tag.equals(\"re\") || tag.equals(\"RE\")) {\n mLyricBuilder = tmp;\n } else if (tag.equals(\"ti\") || tag.equals(\"TI\")) {\n mTrackTitle = tmp;\n } else if (tag.equals(\"ve\") | tag.equals(\"VE\")) {\n mLyricBuilderVer = tmp;\n }\n } else { // it's possible to be \"offset\"\n String offset = scn.findInLine(\"\\\\[offset:[\\\\+|-]{1}\\\\d+\\\\]\");\n if (null != offset) { // if matches offset tag\n mAdjustMilliSec\n = Integer.parseInt(offset.substring(9, offset.length() - 1))\n * ( (offset.charAt(8) == '+') ? 1 : -1 );\n }\n }\n } else { // has time tags, then it's a line of lyrics sentence\n for (int k = 0; k < len; k++) {\n int time = integerArray[k].intValue();\n LyricSentence lrcSentence\n = new LyricSentence(resolveLrc(next), time + mAdjustMilliSec);\n mLyricContent.add(lrcSentence);\n }\n }\n }\n\n // sort the lyrics sentences as the sequence of time tags\n Collections.sort(mLyricContent);\n \n if (mLyricContent.isEmpty()) {\n throw new LrcFileInvalidFormatException(\n mContext.getResources().getString(R.string.lrc_file_invalid_format));\n }\n }", "public void load() ;", "public MutableTextLabels loadOps(TextBase base,File file) throws IOException,FileNotFoundException\n\t{\n\t\tMutableTextLabels labels = new BasicTextLabels(base);\n\t\timportOps(labels,base,file);\n\t\treturn labels;\n\t}", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "public void loadStr(String str, String filename) throws Exceptions.OsoException {\n ffiPolar.loadStr(str, filename);\n checkInlineQueries();\n }", "void citire(FileReader f);", "public static void loadProgramData() {\n\r\n try {\r\n File f = new File(\"DetailsOfVaccination.txt.txt\"); //Accessing the file\r\n Scanner read = new Scanner(f);\r\n while (read.hasNextLine()) { //Print data in the file line by line\r\n String data = read.nextLine();\r\n System.out.println(data);\r\n }\r\n read.close();\r\n }\r\n catch (FileNotFoundException e) { //Runs if there was an error\r\n System.out.println(\"An error occurred while reading data from the file.\");\r\n e.printStackTrace();\r\n }\r\n }", "private SgfReader load(File file)\n {\n \tFileInputStream in;\n \ttry {\n \t in = new FileInputStream(file);\n \t}\n \tcatch(FileNotFoundException e) {\n \t showError(\"File not found!\");\n \t return null;\n \t}\n \n \tSgfReader sgf;\n \ttry {\n \t sgf = new SgfReader(in);\n \t}\n \tcatch (SgfReader.SgfError e) {\n \t showError(\"Error reading SGF file:\\n \\\"\" + e.getMessage() + \"\\\"\");\n \t return null;\n \t}\n \t\n \treturn sgf;\n }", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "private void loadFromFile(ArrayList<Question> questionsList) {\n String tempString = \"\"; // Holds the \"identifier\" of the line\n String question = \"\"; // text containing actual question\n ArrayList<Integer> scoreList = new ArrayList<>(); // contains scores of questions\n ArrayList<String> answers = new ArrayList<>(); // contains answers of questions\n ArrayList<String> nextQuestions = new ArrayList<>(); // contains next question of current question\n int specialCase = 0; // special case of question\n boolean backExists = false; // boolean indicating if back button does(n't) exist\n Question tempQuestion; // temporary question which is later added to the list\n\n // Attempt to open a the question_data file and read its contents\n try {\n InputStream in = getClass().getResourceAsStream(\"question_data\");\n Scanner sc = new Scanner(in);\n\n while (sc.hasNextLine()) {\n tempString = sc.nextLine();\n if (tempString.equals(\"\")) {\n continue;\n }\n\n switch (tempString.charAt(0)) {\n case '#':\n // Anything beginning with '#' is ignored.\n break;\n case 'Q':\n // 'Q' indicated the text of the question\n question = tempString.substring(3);\n break;\n case 'A':\n // 'A' indicates an answer\n answers.add(tempString.substring(3));\n break;\n case 'B':\n // 'B' indicates if a back button exists or not\n backExists = Boolean.parseBoolean(tempString.substring(3));\n break;\n case 'N':\n // 'N' indicates the next question of every answer\n nextQuestions.add(tempString.substring(3));\n break;\n case 'S':\n // 'S' indicates the score of every answer, can be set to -1 if no score is needed\n scoreList.add(Integer.parseInt(tempString.substring(3)));\n break;\n case 'C':\n // Special case. Every special case (number other than 0) has to be accounted for...\n specialCase = Integer.parseInt(tempString.substring(3));\n break;\n case 'T':\n // 'T' stands for terminate and create. A 'T' should be placed at the end of a\n // question and all of its answers. This indicated the creation of the question.\n\n // Create new question, set its answer, reset all lists, etc.\n tempQuestion = new Question(question, backExists);\n tempQuestion.setSpecialCase(specialCase);\n for (int i = 0; i < answers.size(); i++) {\n tempQuestion\n .addAnswer(answers.get(i), nextQuestions.get(i), scoreList.get(i));\n tempQuestion.setBackAvailable(backExists);\n }\n questionsList.add(tempQuestion);\n answers.clear();\n scoreList.clear();\n nextQuestions.clear();\n specialCase = 0;\n break;\n default:\n break;\n }\n\n }\n } catch (Exception e){\n System.out.println(System.getProperty(\"user.dir\"));\n System.out.println(\"An error occurred while parsing the file, make sure the file exists.\"\n + \"and/or has the correct filename (question_data)\");\n\n }\n }", "private void loadFromFile(String fileName) {\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }", "void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void readFromFile(String path) throws ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(path);\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagList = (HashMap<String, Integer>) input.readObject();\n\t\t\tinput.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Cannot read from input.\");\n\t\t}\n\t}", "public void load(File file) throws IOException {\n FileReader reader = new FileReader(file); //new File Reader\r\n char str[] = new char[10000]; //create a character string array of 10000 values\r\n reader.read(str);//read the file\r\n boolean temp[][] = new boolean[100][100]; //create a temporary new colony\r\n for (int r = 0; r < 100; r++) { //iterate through to fill with values\r\n for (int c = 0; c < 100; c++) {\r\n if (str[r*100 + c] == '1') { //if the char is equal to one, cell is alive\r\n temp[r][c] = true;\r\n } else {\r\n temp[r][c] = false; //else, the cell is dead\r\n }\r\n }\r\n }\r\n grid = temp;\r\n }", "private void loadDataFromFile(File file) {\n\t\tString fileName = file.getName();\n\t\tQuickParser test = new QuickParser();\n\n\t\tif(fileName.trim().toUpperCase().startsWith(\"INV\")) {\n\t\t\tfileType = FileType.INVENTORY;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInventoryData.clear();\n\t\t\tmasterInventoryData = test.Parse(file, fileType);\n\t\t\tpresentationInventoryData.clear();\n\t\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End if statement\n\t\telse if(fileName.toUpperCase().startsWith(\"INI\")) {\n\t\t\tfileType = FileType.INITIAL;\n\t\t\ttableView.getColumns().clear();\n\t\t\ttableView.getColumns().addAll(rfid,campus,building,room,lastScannedOn,lastScannedBy,purchaseOrder,serviceTag,comments);\n\t\t\tmasterInitialData.clear();\n\t\t\tmasterInitialData = test.Parse(file, fileType);\n\t\t\tpresentationInitialData.clear();\n\t\t\tpresentationInitialData.addAll(masterInitialData);\n\t\t\tswitch (fileType) {\n\t\t\tcase INVENTORY:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INVENTORY;\n\t\t\t\tbreak;\n\t\t\tcase INITIAL:\n\t\t\t\tcurrentTabScreen = CurrentTabScreen.INITIAL;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t} // End switch statement \n\t\t} // End else if statement \n\t\telse {\n\t\t\tfileType = FileType.UNASSIGNED;\n\t\t} // End else statement\n\t\tchangeToScanTable();\n\t}", "default void load(String file) {\n load(new File(file));\n }", "private String readAndReplaceString(String fileName, String packageName, String className) {\n String baseFilePath = \"com.bgn.baseframe.base\";\n\n String time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(new Date());\n String path = (codeType == 0 ? \"kotlin/\" : \"java/\");\n return readFile(path + fileName + \".txt\")\n .replace(\"&time&\", time)\n .replace(\"&package&\", packageName)\n .replace(\"&mvp&\", baseFilePath)\n .replace(\"&className&\", className);\n }", "private String decodeFile(String encodedFileName, int bit) throws Exception{\r\n\r\n\t\tdouble maxSize = Math.pow(2, bit);\r\n\r\n\t\t//InputStream and Reader to read the encoded file\r\n\t\tInputStream fileEncoded = new FileInputStream(encodedFileName);\r\n\t\tReader reader = new InputStreamReader(fileEncoded,\"UTF-16BE\");\r\n\t\tReader br = new BufferedReader(reader);\r\n\t\tint tableSize = 255;\r\n\r\n\t\tList<Integer> encodedList = new ArrayList<Integer>();\r\n\t\tdouble fileData = 0;\r\n\t\twhile((fileData = br.read())!=-1){\r\n\t\t\tencodedList.add((int)fileData);\r\n\t\t}\r\n\t\tbr.close();\r\n\r\n\t\t//Map to store the Character in a HashMap and then compare it to check the key or Value\r\n\t\tMap<Integer, String> charTable = new HashMap<Integer,String>();\r\n\t\tfor(int i =0; i<=255;i++){\r\n\t\t\tcharTable.put( i, \"\" + (char)i);\r\n\t\t}\r\n\t\t//Implementing the LZW algorithm\r\n\t\tString encodeValue = encodedList.get(0).toString();\r\n\t\tStringBuffer decodedStringBuffer = new StringBuffer();\r\n\r\n\t\tfor (int key:encodedList) {\r\n\r\n\t\t\tString value = \"\";\r\n\t\t\tif (charTable.containsKey(key))\r\n\t\t\t{\t//Storing the string from the HashMap to value\r\n\t\t\t\tvalue = charTable.get(key);\r\n\t\t\t}\r\n\t\t\telse if (key == tableSize)\r\n\t\t\t{//Append if key==tablesize to value\r\n\t\t\t\tvalue = encodeValue + encodeValue.charAt(0);\r\n\t\t\t}\r\n\t\t\tdecodedStringBuffer.append(value);\r\n\r\n\t\t\tif(tableSize < maxSize )\r\n\t\t\t{\t//If not present then checking tablesize with maxsize and adding into the HashMap\r\n\t\t\t\tcharTable.put(tableSize++, encodeValue + value.charAt(0));\r\n\t\t\t}\r\n\t\t\tencodeValue = value;\r\n\t\t}\r\n\t\t//Return the decodedStringBuffer which contains the decoded values\r\n\t\treturn decodedStringBuffer.toString();\r\n\t}", "public void load(String filename) throws IOException\n {\n DataInputStream input;\n\n try\n {\n input = new DataInputStream(new BufferedInputStream(new FileInputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open input file \" + filename + \":\" + e.getMessage());\n }\n load(input);\n input.close();\n }", "private boolean readSym(String filePath) throws FileNotFoundException {\n Scanner fileScan;\n int numSymbols = 0;\n try {\n fileScan = new Scanner(new FileReader(filePath + \".sym\"));\n while (fileScan.hasNextLine()) {\n fileScan.nextLine();\n numSymbols++;\n }\n fileScan.close();\n symbols = new String[numSymbols];\n addresses = new int[numSymbols];\n fileScan = new Scanner(new FileReader(filePath + \".sym\"));\n for (int i = 0; i < symbols.length; i++) {\n symbols[i] = fileScan.next();\n addresses[i] = fileScan.nextInt();\n }\n fileScan.close();\n } catch (IOException ex) {\n print(filePath + \".sym not found\");\n return true;\n }\n return false;\n }", "public void load(String filename) {\n\t\tsetup();\n\t\tparseOBJ(getBufferedReader(filename));\n\t}", "private Set<String> loadSpecialCharacters() throws FileNotFoundException {\n return new BufferedReader(new FileReader(SPECIAL_CHARACTERS_FILE))\n .lines()\n .collect(Collectors.toSet());\n }", "static String readFile(String path, Charset encoding) throws IOException {\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn encoding.decode(ByteBuffer.wrap(encoded)).toString();\n\t}" ]
[ "0.68780947", "0.6540179", "0.6474355", "0.6446985", "0.63975924", "0.639446", "0.6271115", "0.6234707", "0.61794335", "0.6175213", "0.61676806", "0.6136068", "0.6127627", "0.60770506", "0.6038633", "0.6029717", "0.6021233", "0.6012651", "0.5998471", "0.5951056", "0.594067", "0.5929174", "0.5909917", "0.58984303", "0.58970946", "0.5891899", "0.58686745", "0.5823051", "0.58198357", "0.57863873", "0.577533", "0.5766437", "0.5748856", "0.5744009", "0.5734705", "0.57291216", "0.57215595", "0.5716738", "0.5696747", "0.5685541", "0.56825835", "0.5676398", "0.56756264", "0.5651459", "0.5647865", "0.5644246", "0.5644246", "0.561923", "0.5614141", "0.56079584", "0.5596405", "0.55899066", "0.5587695", "0.5575565", "0.5571901", "0.55683243", "0.55634606", "0.55632657", "0.55614424", "0.55532354", "0.5550961", "0.55479646", "0.5531993", "0.5528901", "0.5525967", "0.552229", "0.5521913", "0.55208904", "0.551055", "0.5508427", "0.5500658", "0.54755855", "0.54687476", "0.5463095", "0.5458659", "0.5456785", "0.5456632", "0.5454971", "0.5445602", "0.5440789", "0.5438615", "0.5437306", "0.5429947", "0.54296887", "0.54261154", "0.5417698", "0.541476", "0.5407587", "0.5407534", "0.5401733", "0.5401312", "0.53968716", "0.53932494", "0.5385058", "0.5384568", "0.53750765", "0.5369107", "0.53644294", "0.53580946", "0.5353561" ]
0.6389132
6
remove an items from new item list
public void removeItem() { if (this.size() == 0) { System.out.println("Empty List."); return; } this.print(); String code; System.out.println("Enter the code of removed item: "); code = sc.nextLine().toUpperCase(); int pos = find(code); if (pos < 0) { System.out.println("This code does not exist."); } else { this.remove(pos); System.out.println("The item " + code + " has been removed."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllItems ();", "protected abstract void removeItem();", "public void removeInvalidAddRemoveItemRequests()\n \t{\n \t\t/* ignore attempts to remove and add the same tag */\n \t\tif (this.getItems() != null)\n \t\t{\n \t\t\tfinal List<T> removeChildren = new ArrayList<T>();\n \n \t\t\t/* on the first loop, remove any items that are marked for both add a remove in the same item, or are not marked for any processing at all */\n \t\t\tfor (final T child1 : this.getItems())\n \t\t\t{\n \t\t\t\tfinal boolean add1 = child1.getAddItem();\n \t\t\t\tfinal boolean remove1 = child1.getRemoveItem();\n \n \t\t\t\tif ((add1 && remove1) || (!add1 && !remove1))\n \t\t\t\t{\n \t\t\t\t\tif (!removeChildren.contains(child1))\n \t\t\t\t\t\tremoveChildren.add(child1);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tfor (final T removeChild : removeChildren)\n \t\t\t\tthis.getItems().remove(removeChild);\n \n \t\t\tignoreDuplicatedAddRemoveItemRequests();\n \n \t\t}\n \t}", "public void removeAllItem() {\n orderList.clear();\n }", "protected void ignoreDuplicatedAddRemoveItemRequests()\n \t{\n \t\tif (this.getItems() != null)\n \t\t{\n \t\t\tfinal List<T> removeChildren = new ArrayList<T>();\n \t\t\n \t\t\t/* on the second loop, remove any items that are marked for both add and remove is separate items */\n \t\t\tfor (int i = 0; i < this.getItems().size(); ++i)\n \t\t\t{\n \t\t\t\tfinal T child1 = this.getItems().get(i);\n \t\t\t\t\n \t\t\t\t/* at this point we know that either add1 or remove1 will be true, but not both */\n \t\t\t\tfinal boolean add1 = child1.getAddItem();\n \t\t\t\tfinal boolean remove1 = child1.getRemoveItem();\n \t\t\t\t\n \t\t\t\t/* Loop a second time, looking for duplicates */\n \t\t\t\tfor (int j = i + 1; j < this.getItems().size(); ++j)\n \t\t\t\t{\n \t\t\t\t\tfinal T child2 = this.getItems().get(j);\n \t\t\t\t\t\n \t\t\t\t\tif (child1.getId().equals(child2.getId()))\n \t\t\t\t\t{\n \t\t\t\t\t\tfinal boolean add2 = child2.getAddItem();\n \t\t\t\t\t\tfinal boolean remove2 = child2.getRemoveItem();\n \t\t\t\t\t\t\n \t\t\t\t\t\t/* check for double add, double remove, add and remove, remove and add */\n \t\t\t\t\t\tif ((add1 && add2) || (remove1 && remove2) || (add1 && remove2) || (remove1 && add2))\t\t\t\t\t\t\n \t\t\t\t\t\t\tif (!removeChildren.contains(child1))\n \t\t\t\t\t\t\t\tremoveChildren.add(child1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n\t\t\t\n\t\t\tfor (final T removeChild : removeChildren)\n\t\t\t\tthis.getItems().remove(removeChild);\n \t\t}\n \t}", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "private void removeList()\r\n {\n if (tableCheckBinding != null)\r\n {\r\n tableCheckBinding.dispose();\r\n tableCheckBinding = null;\r\n }\r\n\r\n // m_TableViewer.setInput(null);\r\n WritableList newList = new WritableList(SWTObservables.getRealm(Display.getDefault()));\r\n for (int i = 0; i < 10; ++i)\r\n {\r\n newList.add(this.generateNewDataModelItem());\r\n }\r\n m_TableViewer.setInput(newList);\r\n }", "public void remove(TradeItem newItem) {\n items.remove(newItem);\n }", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "public void unRegAll(){\n \t\t\n \t\tfor(ShopItem shopItem : itemList){\n \t\t\t//TODO: process more then one item at the same time.\n \t\t\t/*\n \t\t\tint position = shopItem.getShopPosition().getSlot();\n \t\t\tif(processedPositions.contains(position))\n \t\t\t\tcontinue;\n \t\t\tprocessedPositions.add(position);\n \t\t\tint amount = getItemAmount(position);\n \t\t\t*/\n \t\t\tint amount = 1;\n \t\t\tgetOwner().getClient().sendPacket(Type.U_SHOP, \"unreg\", 1, shopItem.getShopPosition().getSlot(), amount);\n \t\t\t\n \t\t\t//int[] freePosition = getOwner().getInventory().getFreeSlots(shopItem.getItem(), -1);\n \t\t\t//InventoryPosition inventoryPosition = new InventoryPosition(freePosition[1],freePosition[2],freePosition[0]);\n \t\t\t//InventoryItem inventoryItem = new InventoryItem(shopItem.getItem(),\tinventoryPosition);\n \t\t\t//getOwner().getInventory().addInventoryItem(inventoryItem);\n \t\t\tInventoryItem inventoryItem = getOwner().getInventory().storeItem(shopItem.getItem(), -1);\n \t\t\tgetOwner().getClient().sendPacket(Type.INVEN, inventoryItem, getOwner().getClient().getVersion());\n \t\t}\n \t\titemList.clear();\n \t}", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "private void removeItemFromList(String nameStr) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(nameStr.toLowerCase())) {\n ingredientList.remove(i);\n return;\n }\n }\n }", "void removeList(ShoppingList _ShoppingList);", "public void removeItems(ResultItem itemRemove) {\r\n\t\titems.remove(itemRemove);\r\n\t}", "public void clearItems(){\n items.clear();\n }", "public void removeAddedItem(OrderItem OldOrderItem) {\n int i;\n\n for (i = 0; i < itemsInOrder.size(); i++) {\n if (itemsInOrder.get(i).equals(OldOrderItem)) {\n itemsInOrder.remove(i);\n }\n }\n }", "public void setArrayListOfItemsToBeDeletedViaNotificationModal() {\n List<WebElement> itemsToBeRemoved = UnavailableItems_Modal.findElements(By.xpath(\".//*[@class='mjr-product-name']\"));\n for (WebElement item : itemsToBeRemoved) {\n listOfDeletedItemNameShoppingCart.add(UtilityHelper.elementGetText(item));\n }\n }", "boolean removAble(InputItem item);", "@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}", "public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\t ArrayList list=new ArrayList();\r\n\t\t \r\n\t\t list.add(\"hii\");\r\n\t\t list.add(\"hello\");\r\n\t\t list.add(\"welcome\");\r\n\t\t list.add(\"to\");\r\n\t\t \r\n\t\t ArrayList list1=new ArrayList();\r\n\t\t Iterator it=list.iterator();\r\n\t\t System.out.print(\"Original List :\");\r\n\t\t while(it.hasNext())\r\n\t\t {\r\n\t\t System.out.println(it.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t\t list.clear();\r\n\t\t Iterator itt=list.iterator();\r\n\t\t System.out.print(\"Removed List :\");\r\n\t\t while(itt.hasNext())\r\n\t\t {\r\n\t\t System.out.println(itt.next());\r\n\t\t \r\n\r\n\t\t}\r\n\t}", "public UserItem getUserItemByIdsForRemove(UserItem ui);", "private void removeItem() {\n viewList();\n System.out.println(\"Enter the priority of the item to remove: \\n\\tH -> high \\n\\tM -> medium \\n\\tL -> low\");\n char c = scanner.next().toUpperCase().charAt(0);\n System.out.println(\"Enter the number of the item you want to remove: \");\n System.out.println(\"Note: If you enter a higher number, items from the next categories will be deleted\");\n int removeIndex = scanner.nextInt();\n\n int h = toDoList.lastIndexOfCategory(Categories.HIGHPRIORITY);\n int m = toDoList.lastIndexOfCategory(Categories.MIDPRIORITY);\n\n if (c == 'H' && (toDoList.getItemAtIndex(1).getCategory() != Categories.HIGHPRIORITY || h + 1 > removeIndex)) {\n removeIndex = -1;\n } else if (c == 'M') {\n removeIndex = removeIndex + h + 1;\n } else if (c == 'L') {\n removeIndex = removeIndex + h + m + 1;\n }\n if (c == 'M' && h != 0 && toDoList.lastIndexOfCategory(Categories.MIDPRIORITY) == 0) {\n removeIndex = -1;\n } else if (c == 'L' && (h != 0 || m != 0) && toDoList.lastIndexOfCategory(Categories.LOWPRIORITY) == 0) {\n removeIndex = -1;\n }\n\n toDoList.remove(removeIndex);\n System.out.println(\"Updated to-do list:\");\n viewList();\n }", "public ArrayList<ArrayList<String>> removeItem(ArrayList<ArrayList<String>> outer) {\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Which specific data would you like to delete? Please type the position of the field and position of the data\");\r\n\t\tint posf = s.nextInt();\r\n\t\tint pos = s.nextInt();\r\n\t\tArrayList<ArrayList<String>> list3 = new ArrayList<ArrayList<String>>(outer);\r\n\t\tlist3.get(posf-1).remove(pos);\r\n\t\treturn list3;\r\n\t}", "public void removeItem(int id);", "@FXML\n public void removeListItem(ActionEvent event) throws IOException {\n int removeItemIndex = unseenPacketList.getSelectionModel().getSelectedIndex();\n if (removeItemIndex < 0) {\n \tJOptionPane.showMessageDialog(null, \"Cannot remove from already empty list.\");\n } else {\n \tUpdateHandler.getAllPacketsList().remove(removeItemIndex);\n unseenPacketList.getItems().remove(removeItemIndex);\n UpdateHandler.getUnseenPacketListIndex().remove(removeItemIndex);\n }\n \n }", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "void removeUses(Equipment oldUses);", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }", "public void excluirItem(Cerveja cerveja){\r\n\t\tint indice = IntStream.range(0, itens.size())\r\n\t\t\t\t.filter(i -> itens.get(i).getCerveja().equals(cerveja)) \r\n\t\t .findAny().getAsInt(); // getAsInt forca o retornar o valor do indice\r\n\t\t\r\n\t\t// remove o item da lista, pelo indice do item passado como parametro\r\n\t\titens.remove(indice);\r\n\t}", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}", "public void removeItemListerners() {\r\n\t\titemListeners.clear();\r\n\t}", "private void clearItemElementsForItem(Item item) {\n ItemElement selfElement = item.getSelfElement();\n item.getFullItemElementList().clear();\n item.getFullItemElementList().add(selfElement);\n //Make sure display list is updated to reflect changes. \n item.resetItemElementDisplayList();\n }", "@SuppressWarnings(\"unchecked\")\n \tprivate void getUnMatched(ArrayList<NameAndListener> oldIn, ArrayList<ContentName> newIn, \n \t\t\tArrayList<NameAndListener> oldOut, ArrayList<ContentName>newOut) {\n \t\tnewOut.addAll(newIn);\n \t\tfor (NameAndListener ial : oldIn) {\n \t\t\tboolean matched = false;\n \t\t\tfor (ContentName name : newIn) {\n \t\t\t\tif (ial.name.equals(name)) {\n \t\t\t\t\tnewOut.remove(name);\n \t\t\t\t\tmatched = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (!matched)\n \t\t\t\toldOut.add(ial);\n \t\t}\n \t\t\n \t\t// Make sure no name can be expressed a prefix of another name in the list\n \t\tArrayList<ContentName> tmpOut = (ArrayList<ContentName>)newOut.clone();\n \t\tfor (ContentName cn : tmpOut) {\n \t\t\tfor (ContentName tcn : tmpOut) {\n \t\t\t\tif (tcn.equals(cn))\n \t\t\t\t\tcontinue;\n \t\t\t\tif (tcn.isPrefixOf(cn))\n \t\t\t\t\tnewOut.remove(cn);\n \t\t\t\tif (cn.isPrefixOf(tcn))\n \t\t\t\t\tnewOut.remove(tcn);\n \t\t\t}\n \t\t}\n \t}", "public void clearItems() {\n grabbedItems.clear();\n }", "public void removeEmptyItems(){\n\t\tfor(int i=0; i<currentOrder.getItems().size();i++){\n\t\t\tif(currentOrder.getItems().get(i).getQuantity()<=0){\n\t\t\t\tcurrentOrder.getItems().remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public void itemRemoved(E item);", "public static void main(String[] args) {\n String[] animals = {\"Cat\", \"Dog\", \"Dog\", \"Bird\", \"Fish\", \"Cat\"};\n\n ArrayList<String> animalsList = new ArrayList<>(Arrays.asList(animals));\n System.out.println(animalsList);\n\n /*\n Remove Cat elements and print your ArrayList again\n\n EXPECTED RESULT:\n [Dog, Bird, Fish]\n */\n\n System.out.println(\"\\n---Removing-Cat-1st way creating a new list---\\n\");\n ArrayList<String> animalsWithoutCats = new ArrayList<>(); // empty at this line\n\n for(String element: animalsList){\n if(!element.equalsIgnoreCase(\"cat\")) animalsWithoutCats.add(element);\n }\n\n System.out.println(\"List after removing cats = \" + animalsWithoutCats);\n\n\n System.out.println(\"\\n---Removing-Dog-2nd way using iterator---\\n\");\n\n Iterator<String> myIterator = animalsList.iterator();\n\n while(myIterator.hasNext()){\n if(myIterator.next().equalsIgnoreCase(\"dog\")) myIterator.remove();\n }\n\n System.out.println(\"List after removing dogs = \" + animalsList);\n }", "public void remove() {\n if (count == 0) {\n return;\n }\n \n Random rand = new Random();\n int index = rand.nextInt(count);\n for (int i = index; i < count - 1; i++) {\n list[i] = list[i+1];\n }\n count--; \n }", "public Item removeLast();", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "@Override\n public void remove(News item) {\n }", "private DefaultListModel<String> removeItem(JList<String> list, DefaultListModel<String> listModel) {\r\n\t\tint[] selectedItems = list.getSelectedIndices();\r\n\t\tfor(int i=selectedItems.length; i>0; i--)\r\n\t\t\tlistModel.removeElementAt(selectedItems[i-1]);\r\n\t\treturn listModel;\r\n\t}", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public ItemStack removeItems(int paramInt1, int paramInt2)\r\n/* 31: */ {\r\n/* 32: 47 */ if (this.a[paramInt1] != null)\r\n/* 33: */ {\r\n/* 34: 48 */ if (this.a[paramInt1].stackSize <= paramInt2)\r\n/* 35: */ {\r\n/* 36: 49 */ ItemStack localamj = this.a[paramInt1];\r\n/* 37: 50 */ this.a[paramInt1] = null;\r\n/* 38: 51 */ return localamj;\r\n/* 39: */ }\r\n/* 40: 53 */ ItemStack localamj = this.a[paramInt1].split(paramInt2);\r\n/* 41: 54 */ if (this.a[paramInt1].stackSize == 0) {\r\n/* 42: 55 */ this.a[paramInt1] = null;\r\n/* 43: */ }\r\n/* 44: 57 */ return localamj;\r\n/* 45: */ }\r\n/* 46: 60 */ return null;\r\n/* 47: */ }", "public void clearRandomItems();", "public void remove(String t,int y){\n\t//for loop to compare all movie titles and years of release in the list\n\tfor(int x=0; x < list.size();x++){\n\t\t//if title and year of release already exist in inventory\n\tif (list.get(x).getTitle().equals(t) && list.get(x).getYearReleased() == y){\n\t\t//quantity of that movie is gotten\n\t\tint oldQuantity = list.get(x).getQuantity();\n\t\t//new quantity of movie is created by subtracting the old one by one\n\t\tint newQuantity = oldQuantity-1;\n\t\t//if either the new or old quantity is one, the object movie is completely removed\n\t\tif(oldQuantity == 0 || newQuantity==0){\n\t\tlist.remove(x);\t\n\t\t}\n\t\t//else the new quantity is set\n\t\telse{\n\t\tlist.get(x).setQuantity(newQuantity);\n\n\t\t}\n\t}\n\t}\n}", "public void remove(ItemData data) {\n int position = list.indexOf(data);\n list.remove(position);\n notifyItemRemoved(position);\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public void removeItem(Item item) {\n this.reservationItems = this.reservationItems.stream()\n .filter(ri -> ri.isForItem(item))\n .collect(Collectors.toSet());\n }", "public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }", "void notifyListItemRemoved(int position);", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "public void dropItems() {\n\t\tlocation.getChunk().load();\n\t\tArrays.stream(inventory.getContents())\n\t\t\t.filter(ItemStackUtils::isValid)\n\t\t\t.forEach((item) -> location.getWorld().dropItemNaturally(location, item));\n\t\tinventory.clear();\n\t}", "public void removeItem(int n)\n {\n items.remove(n);\n }", "public void removeItem(Item item) {\r\n for (Iterator<Item> it = inventoryItems.iterator(); it.hasNext(); ) {\r\n Item i = it.next();\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() - 1);\r\n }\r\n if (i.getCount() <= 0) {\r\n it.remove();\r\n }\r\n }\r\n }", "public static void removeOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Removing ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to remove the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\n\t\t\tdo {\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (listOfOrderedItems.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"There is no ordered items!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (i = 0; i < listOfOrderedItems.size(); i++) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print(\"Select an ordered item to remove from order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\tcheck = orderedItemManager.removeOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Ordered item removed from order successfully!\");\n\t\t\t\t\t\tlistOfOrderedItems.remove(orderedItem);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to remove ordered item from order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of removing items************\");\n\t}", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "void removeOrderItem(OrderItem target);", "public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) {\r\n btn.setOnAction((e) -> {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Warning\");\r\n alert.setContentText(\"Are you sure ?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem());\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n obList.remove(tm);\r\n tblRecipe.refresh();\r\n }\r\n });\r\n }", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "public void clearItems(){\n\t\tinnerItemShippingStatusList.clear();\n\t}", "public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }", "public void itemRemoved(boolean wasSelected);", "public void eliminarTodosLosElementos(){\n\t\tlistModel.removeAllElements();\n\t}", "public void removeItem(Item e) {\n\t\tif (items.contains(e))\n\t\t\titems.remove(e);\n\t}", "void removeDebts(int i);", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "protected void removeItem(Item item, boolean moving) {\n/* 2393 */ if (this.vitems != null)\n/* */ {\n/* 2395 */ if (!this.vitems.isEmpty()) {\n/* */ \n/* 2397 */ if (item.getTemplateId() == 726)\n/* 2398 */ Zones.removeDuelRing(item); \n/* 2399 */ Item pileItem = this.vitems.getPileItem(item.getFloorLevel());\n/* 2400 */ if (pileItem != null && item.getWurmId() == pileItem.getWurmId()) {\n/* */ \n/* 2402 */ this.vitems.removePileItem(item.getFloorLevel());\n/* 2403 */ if (this.vitems.isEmpty())\n/* */ {\n/* */ \n/* 2406 */ this.vitems.destroy(this);\n/* 2407 */ this.vitems = null;\n/* */ }\n/* */ \n/* 2410 */ } else if (this.vitems.removeItem(item)) {\n/* */ \n/* */ \n/* 2413 */ this.vitems.destroy(this);\n/* */ \n/* 2415 */ this.vitems = null;\n/* 2416 */ if (pileItem != null)\n/* */ {\n/* 2418 */ destroyPileItem(pileItem.getFloorLevel());\n/* */ }\n/* */ }\n/* 2421 */ else if (pileItem != null && this.vitems.checkIfRemovePileItem(pileItem.getFloorLevel())) {\n/* */ \n/* 2423 */ if (!moving) {\n/* 2424 */ destroyPileItem(pileItem.getFloorLevel());\n/* */ }\n/* 2426 */ } else if (!item.isDecoration() && pileItem != null) {\n/* */ \n/* 2428 */ checkIfRenamePileItem(pileItem);\n/* */ } \n/* 2430 */ if (item.isDomainItem())\n/* 2431 */ Zones.removeAltar(item, moving); \n/* 2432 */ if (item.getTemplateId() == 1175 || item.getTemplateId() == 1239)\n/* 2433 */ Zones.removeHive(item, moving); \n/* 2434 */ if (item.getTemplateId() == 939 || item.isEnchantedTurret())\n/* 2435 */ Zones.removeTurret(item, moving); \n/* 2436 */ if (item.isEpicTargetItem())\n/* 2437 */ EpicTargetItems.removeRitualTargetItem(item); \n/* 2438 */ if (item.isKingdomMarker())\n/* */ {\n/* 2440 */ if (item.getTemplateId() != 328)\n/* 2441 */ Kingdoms.destroyTower(item); \n/* */ }\n/* 2443 */ if (item.getTemplateId() == 521) {\n/* */ \n/* 2445 */ this.zone.creatureSpawn = null;\n/* 2446 */ Zone.spawnPoints--;\n/* */ } \n/* 2448 */ if (this.village != null && item.getTemplateId() == 757)\n/* */ {\n/* 2450 */ this.village.removeBarrel(item);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 2455 */ Item pileItem = this.vitems.getPileItem(item.getFloorLevel());\n/* */ \n/* 2457 */ if (pileItem != null && item.getWurmId() == pileItem.getWurmId()) {\n/* */ \n/* 2459 */ this.vitems.removePileItem(item.getFloorLevel());\n/* */ }\n/* 2461 */ else if (pileItem != null && this.vitems.checkIfRemovePileItem(item.getFloorLevel())) {\n/* */ \n/* 2463 */ destroyPileItem(item.getFloorLevel());\n/* */ } \n/* */ } \n/* */ }\n/* 2467 */ if (item.isFence()) {\n/* */ \n/* 2469 */ int offz = 0;\n/* */ \n/* */ try {\n/* 2472 */ offz = (int)((item.getPosZ() - Zones.calculateHeight(item.getPosX(), item.getPosY(), item\n/* 2473 */ .isOnSurface())) / 10.0F);\n/* */ }\n/* 2475 */ catch (NoSuchZoneException nsz) {\n/* */ \n/* 2477 */ logger.log(Level.WARNING, \"Dropping fence item outside zones.\");\n/* */ } \n/* 2479 */ float rot = Creature.normalizeAngle(item.getRotation());\n/* 2480 */ if (rot >= 45.0F && rot < 135.0F) {\n/* */ \n/* 2482 */ VolaTile next = Zones.getOrCreateTile(this.tilex + 1, this.tiley, (item\n/* 2483 */ .isOnSurface() || this.isTransition));\n/* 2484 */ next.removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex + 1, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, next\n/* 2485 */ .getZone().getId(), Math.max(0, next.getLayer())));\n/* */ }\n/* 2487 */ else if (rot >= 135.0F && rot < 225.0F) {\n/* */ \n/* 2489 */ VolaTile next = Zones.getOrCreateTile(this.tilex, this.tiley + 1, (item\n/* 2490 */ .isOnSurface() || this.isTransition));\n/* 2491 */ next.removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley + 1, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, next\n/* 2492 */ .getZone().getId(), Math.max(0, next.getLayer())));\n/* */ }\n/* 2494 */ else if (rot >= 225.0F && rot < 315.0F) {\n/* */ \n/* 2496 */ removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, \n/* 2497 */ getZone().getId(), Math.max(0, getLayer())));\n/* */ }\n/* */ else {\n/* */ \n/* 2501 */ removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, \n/* 2502 */ getZone().getId(), Math.max(0, getLayer())));\n/* */ } \n/* */ } \n/* */ \n/* 2506 */ sendRemoveItem(item, moving);\n/* 2507 */ if (!moving) {\n/* 2508 */ item.setZoneId(-10, this.surfaced);\n/* */ }\n/* */ }", "public void testNormalRemoveItem()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkRemove(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void removeRoomItem(Item seekItem )\n {\n // Gets the iterator of the currentRoom's item arraylist.\n for(Iterator<Item> it = currentRoom.getInventory().getItems().iterator();it.hasNext();){\n\n Item item = it.next();\n\n // if seekItem is found in the currentRoom's item arraylist.\n if(item.getName().equals(seekItem.getName())){\n\n it.remove(); // removes the item.\n }\n }\n }", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "public List onStartUp() {\n\t\t// TODO - implement ItemManager.onStartUp\n\n\t\tItemDAO itemDAO = new ItemDAO();\n\n\t\tList listOfItems = itemDAO.retrieveAll();\n\n\t\tfor (int i = 0; i < listOfItems.size(); i++) {\n\t\t\tItem tempItem = (Item) listOfItems.get(i);\n\n\t\t\tif (tempItem.getRemoved() == true) {\n\t\t\t\tlistOfItems.remove(i);\n\t\t\t\ti = i - 1;\n\t\t\t}\n\t\t}\n\n\t\treturn listOfItems;\n\n\t}", "public static <D extends IChangeable<I> ,I> List<I> getItemsToDelete(List<D> changesList) {\n List<I> idsToRemove = new ArrayList<>();\n if(changesList != null) {\n List<D> itemsToRemove = new ArrayList<>();\n for (D item : changesList) {\n if(item.isToDelete()){//Delete the items of the list that must to be deleted\n idsToRemove.add(item.getId());\n itemsToRemove.add(item);\n }\n }\n //And remove the request list\n changesList.removeAll(itemsToRemove);\n }\n return idsToRemove;\n }", "public void removePlayerItem(Item seekItem )\n {\n // Gets the iterator of the currentRoom's item arraylist.\n for(Iterator<Item> it = getPerson(PLAYER).getInventory().getItems().iterator();it.hasNext();){\n\n Item item = it.next();\n\n // if seekItem is found in the currentRoom's item arraylist.\n if(item.getName().equals(seekItem.getName())){\n\n it.remove(); // removes the item.\n }\n }\n }", "public void removeAt(int pos)\n {\n for (int i = pos; i < length - 1; i++)\n {\n list[i] = list[i + 1];\n }\n length--;\n }", "private void removeObsoleteFishes() {\n for (Piranha piranha : piranhas) {\n if (piranha.isOnRemoval()) {\n toRemove.add(piranha);\n }\n }\n if (!toRemove.isEmpty()) {\n for (Piranha piranha : toRemove) {\n piranhas.remove(piranha);\n }\n }\n toRemove.clear();\n }", "public static void giveItems(Player p, List<ItemStack> lis) {\r\n for(ItemStack i : lis) {\r\n HashMap<Integer, ItemStack> ret = p.getInventory().addItem(i);\r\n if(ret != null) {\r\n for(ItemStack i2 : ret.values()) {\r\n p.getLocation().getWorld().dropItemNaturally(p.getLocation(), i2);\r\n }\r\n }\r\n }\r\n }", "private ArrayList<Task> removeNoTimeTask(ArrayList<Task> toFilter) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n\n //remove all without dates (ToDos and Lasts)\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(ToDo.class)) {\n toDelete.add(i);\n }\n if (toFilter.get(i).getClass().equals(Last.class)) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "public List<AbstractProduct> getRemovedItems() {\n return this.removedItems;\n }", "public void itemDelete(int id)\n\t{\n\t\tEntityItem[] itemNew = new EntityItem[10];\n\t\t\n\t\t// Loop through the items and place them in the temporary array\n\t\tint eStart = id + 1;\n\t\tfor(int e=eStart;e<=itemCount;e+=1)\n\t\t{\n\t\t\tint n = e;\n\t\t\tif(e>id){n = e - 1;}\n\t\t\titemNew[e] = item[n];\n\t\t}\n\t\t\n\t\t// Overwrite the item array with the new data \n\t\titem = itemNew;\n\t\titemCount -= 1;\n\t}", "public void removeAllItems()\r\n {\r\n head = tail = null;\r\n nItems = 0;\r\n }", "@Test(groups = { \"Interactive\" })\n public void testRemove() {\n String defaultBlocks = \"[[1,1,1,\\\"Green\\\",[]],[1,1,2,\\\"Green\\\",[\\\"S\\\"]],[1,1,3,\\\"Red\\\",[\\\"S\\\"]],[1,1,4,\\\"Green\\\",[]]]\";\n ContextValue context = getContext(defaultBlocks);\n LogInfo.begin_track(\"testMoreActions\");\n runFormula(executor, \"(: remove)\", context, x -> real(x.allItems).size() == 2 && x.selected.size() == 2);\n runFormula(executor, \"(:for * (: remove))\", context, x -> x.selected.size() == 2 && real(x.allItems).size() == 0);\n runFormula(executor, \"(:for (color green) (: remove))\", context,\n x -> x.selected.size() == 2 && real(x.allItems).size() == 1);\n\n LogInfo.end_track();\n }", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "public void removeList(String name){\n }", "public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"person0@gmail.com\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"person1@gmail.com\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"person2@gmail.com\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}", "public void removeAllItems() {\n contents.clear();\n }", "private List<Box> removeBoxes(List<Box> boxes, List<Integer> toKillList){\n for(int toKill : toKillList){\n if(contains(boxes,toKill)){\n boxes.remove(getBox(boxes,toKill));\n }\n }\n return boxes;\n }", "static String[] removeElements(String[] input, String deleteMe)\n {\n List result = new LinkedList();\n\n for(String item : input)\n if(!deleteMe.equals(item))\n result.add(item);\n result.toArray(input);\n return input;\n }", "public void remove(Thing aThing)\r\n {\r\n boolean found = false;\r\n for (int i = 0; i < items.size() && !found; i++)\r\n {\r\n if (items.get(i) == aThing)\r\n {\r\n items.remove(i);\r\n found = true;\r\n }\r\n }\r\n\r\n if(!found) throw new IllegalArgumentException(\"Item not found: \" + aThing);\r\n }", "@Test\r\n\tpublic void testRemoveItem() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"B\");\r\n\t\tassertEquals(test, vendMachine.removeItem(\"B\"));\r\n\t}", "public DataItem removeItem()\r\n\t{\r\n\t\tDataItem temp=itemArray[numItems-1];\r\n\t\titemArray[numItems-1]=null;\r\n\t\tnumItems--;\r\n\t\treturn temp;\r\n\t}", "private static void removeExistingFromResults(List<Author> resultList, List<String> existingList) {\n\n // Check that existingList is not null\n if (existingList == null) return;\n\n // Remove items from resultList that are already in the user's friend/follow list\n for (String userId : existingList) {\n for (int i = resultList.size() - 1; i >= 0; i--) {\n Author user = resultList.get(i);\n\n if (user.firebaseId.equals(userId)) {\n resultList.remove(user);\n break;\n }\n }\n }\n }", "public void removeFromCart(final Item item) {\n for (Item f : cart) {\n if (f.getName().equals(item.getName())) {\n if (\n f.getQuantity() == item.getQuantity()) {\n cart.remove(f);\n return;\n }\n f.setQuantity(f.getQuantity() - item.getQuantity());\n return;\n }\n }\n }", "@SuppressWarnings(\"unchecked\") // stops Java complaining about the call to compare\n public boolean remove(Object item) {\n E itm = (E) item; //this here is cast statment, which allows an object of anytype to be cast as a generic element, which means multiple types of elements can be use in this program\n if (itm == null) { //if the item is null it sends but null, if the item at index is null rerun false, and if the item does not equal the item at the position it returns null\n return false;\n }\n int indexValue = findIndexOf(itm);\n if (data[indexValue] == null) return false;\n if (!data[indexValue].equals(item))\n return false;\n\n for (int i = indexValue; i < count; i++) { //iterates through the list, moving all the elements to the on in front,\n data[i] = data[i + 1];\n }\n count--; //the decrments the count to show an item has been remove, it has not been removed but instead moved to the end, from there the item is overwritten when something is added.\n return true; //the count prevents the item from being seen.\n }", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}" ]
[ "0.7087061", "0.679571", "0.65616137", "0.655108", "0.6498752", "0.64968", "0.6380932", "0.63222414", "0.630618", "0.62940043", "0.6284508", "0.62529427", "0.62441146", "0.62408334", "0.6230548", "0.6215828", "0.618589", "0.6177651", "0.61683995", "0.614512", "0.6140558", "0.61202884", "0.6109196", "0.6105969", "0.610123", "0.60941094", "0.60796624", "0.60723484", "0.605169", "0.60515964", "0.60392606", "0.60116816", "0.60092133", "0.60087454", "0.59991086", "0.59879035", "0.5987317", "0.5976523", "0.5975047", "0.5973004", "0.5971523", "0.59621125", "0.59565604", "0.5947404", "0.5932701", "0.59326196", "0.59232944", "0.5908844", "0.59088266", "0.59080243", "0.5907787", "0.58980584", "0.5888837", "0.5875672", "0.5870189", "0.58464843", "0.58387077", "0.5837798", "0.58312964", "0.58307", "0.58287066", "0.5811816", "0.58077466", "0.5805084", "0.5803216", "0.57950544", "0.57843184", "0.57725567", "0.577156", "0.5770507", "0.5766185", "0.5765348", "0.575931", "0.5757929", "0.5753262", "0.5753183", "0.5743739", "0.5742148", "0.5740368", "0.5738775", "0.5735568", "0.57349825", "0.5725925", "0.57255507", "0.5720186", "0.5719098", "0.5711417", "0.5702598", "0.56955737", "0.5689764", "0.56825626", "0.5678886", "0.56775725", "0.56737936", "0.5672728", "0.5671306", "0.5669912", "0.5662833", "0.5662329", "0.5657439" ]
0.57970935
65
throws key word will terminate the program as we are not handling the exception to overcome this we need to add a trycatch block using throws key word we won't report anything no option But in try catch block, we can report with the help of catch block where we can print the error message.
public static void main(String[] args){ ThrowsKeyword obj = new ThrowsKeyword(); obj.sum(); System.out.println("ABC"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\ttry{//try=keyword\n\t\t\tint i=9/0;//this code gives an exception so written inside try block\n\t\t}catch(Exception e) {// here instead of ArithmeticExceptionwe can also write error, throwable(super class of error.exception)\n\t\t\t//if we know that we will get which excpetion then we can write that particular exception, but if we dont know which\n\t\t\t//exception will come we can directly write exception, we need not to take care which exception will come.\n\t\t\t//here inside catch block we need to write the name of the exception\n\t\t\te.printStackTrace();//when this particluar method is used, we will gt the output \"ABC\", but alon with that we will also\n\t\t\t// get this exception line that where exactly the execption is.\n\t\t\tSystem.out.println(e.getMessage());// this method gives what exactly is the error message.ie, / by zero\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"ABC\");\n\t\t\n\n\t}", "public static void main(String [] args) throws NullPointerException, ClassNotFoundException, IOException{\n\t\t\t//window console\n\t System.out.println(\"Handling the same exception\");\n\t //In here calling the check method.\n\t checkException(100);\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tmyExceptionTest(90);\n\t\t\t//myExceptionTest(190);\n\t\t\tSystem.out.println(\"after exeption\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\tSystem.out.println(\"I will be executed always\");\n\t\t}\n\t\n\n\t}", "public static void main(String[] args) {\n int a= 9;\n int b= 0;\n//one try can followed by multiple catch blocks\n //bcz there are multiple types of exceptions\n //for each exception you can write seperate catch blocks\n \n try {\n int c= a/b;\n System.out.println(c);\n \n }\n catch(ArithmeticException et) {\n\t System.out.println(\"ArithmeticException\");\n }\n \n catch(Exception e){\n\t //its a generic exception\n\t System.out.println(\"occurs maths error\");\n\t \n }\n finally\n {\n\t System.out.println(\"delete cookies\");\n }\n \n \n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\talgoritmoConPosibilidadDeExcepcion();\n\t\t\tSystem.out.println(\"Estoy dentro del bloque que da error, justo despues de dar error\");\n\t\t} catch (ParseException | UnsupportedOperationException e) {\n\t\t\t// Proporciona el feedback al usuario de la aplicacion\n\t\t\tSystem.out.println(\"Ha ocurrido un error\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "@Override\r\n\tpublic void 태생() {\n\t\tSystem.out.println(\"새끼를 낳는다.\");\r\n\t}", "public static void main(String[] args) throws IOException, SQLException {\n\t\t\ttry{\n\t\t\t\t\tif(args[0].equals(\"1\")){\n\t\t\t\t\t\t\tthrow new IOException(\"test\");\n\t\t\t\t\t}else if(args[0].equals(\"2\")){\n\t\t\t\t\t\t\tthrow new SQLException(\"test\");\n\t\t\t\t\t}\n\t\t\t//In releases prior to Java SE 7\n\t\t\t}catch(IOException ex){\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//duplicate code\n\t\t\t\t\tthrow ex;//duplicate code\n\t\t\t}catch(SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//duplicate code\n\t\t\t\t\tthrow ex;//duplicate code\n\t\t\t}\n\t\t\t\n\t\t\ttry{\n\t\t\t\t\tif(args[0].equals(\"3\")){\n\t\t\t\t\t\t\tthrow new IOException(\"test\");\n\t\t\t\t\t}else if(args[0].equals(\"4\")){\n\t\t\t\t\t\t\tthrow new SQLException(\"test\");\n\t\t\t\t\t}\n\t\t\t//In Java SE 7 and later, eliminates the duplicated code\n\t\t\t//The catch clause specifies the types of exceptions that the block can handle, \n\t\t\t// and each exception type is separated with a vertical bar (|).\n\t\t\t//Note: The catch parameter ex is final \n\t\t\t//\t\tand therefore you cannot assign any values to it within the catch block.\n\t\t\t//Bytecode generated by compiling a catch block that handles multiple exception types \n\t\t\t// will be smaller (and thus superior) than compiling many catch blocks that handle only one exception type each.\n\t\t\t}catch(IOException | SQLException ex){\n\t\t\t\t\t//ex = new SQLException(\"\");//Compile Error: The parameter ex of a multi-catch block cannot be assigned.\n\t\t\t\t\tSystem.out.println(\"Exception:\" + ex);//eliminates the duplicated code\n\t\t\t\t\tthrow ex;\t\n\t\t\t}\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tint x=0;// we can declare outside and can access inside the try block.\r\n\t\tint y=0;\r\n\t\ttry{// dont declatre bvariables inside the try {it acts as local variable}. we can assign inside try it is ok\r\n\t\t x=10;// we cant write any statement inbetween try and catch block it will give compilation error\r\n\t\t y=x/0;// It is a logical mistake {It generates exception (i.e at run time).So,further statement will not be executed \r\n\t\tSystem.out.println(y);// it will give arthimetic exception {what ever exception is generated that will pass to jvm} jvm will handle that exception\r\n\t}\r\n //Exception e=new ArithmeticException(); the object is assigned exception(e) reference varaiable\r\n\t\tcatch(Exception e){// we can give specific exceptions {i.e Arthimetic Exception,NullPointerException}\r\n\t\t\t//System.out.println(e);//If you print 'e' it will give Exception className and Exception message{ output:java.lang.ArithmeticException}\r\n\t\t\t//System.out.println(e.getMessage());//If we want only message to be displayed we can use getMessag{output: / by zeroe()}\r\n\t\te.printStackTrace();// in which line Exception is generated{output:java.lang.ArithmeticException: / by zero\r\n\t\t//at ExceptionDemo2.main(ExceptionDemo2.java:8)}\r\n\t\t//System.out.println(e.toString());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tSystem.out.println(\"clean up operations\");//It will execute before terminating the application \r\n\t\t}\r\n\t\t{\r\n\t\tSystem.out.println(\"welcome boss\"+x);\r\n\t}//try can have more than one catch block.\r\n\t//catch block can handle multiple exceptions.In real time we handle checked Exceptions.\r\n}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.title(\"unsupported feature \");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void demoException() {\n\n try {\n print(1, \"hello\");\n String b = null;\n b.indexOf(\"a\");\n\n } catch (NullPointerException npe) {\n print(3, \"NPE\");\n } catch (Exception e) {\n print(4, \"Exception\");\n } finally {\n /** code will be executed anyway regardless of exception */\n print(2, \"finally\");\n // 做清理工作\n }\n\n try {\n print(1, \"hello\");\n int a = 2;\n a = a / 0;\n /** add a log file when an Exception occurs */\n } catch (NullPointerException npe) {\n print(3, \"NPE\");\n } catch (Exception e) {\n print(4, \"Exception\");\n } finally {\n /** code will be executed anyway regardless of exception */\n print(2, \"finally\");\n // 做清理工作\n }\n }", "public static void main(String[] args) {\n\t\t int a=10, b=0; int result;\n\t\t \n\t try{\n\t result = a/b;}\n\t catch(ArithmeticException ae){//exception name\n\t System.out.println(ae.getMessage()); \n\t System.out.println(ae);\n\t ae.printStackTrace();\n\t }\n\t System.out.println(\"The code continues\");\n\t }", "public static void main(String[] args) throws Exception {\r\n\r\n\t\tthrow new Exception(\"anand\");\r\n\t\t\r\n\t}", "public static void main(String args[])throws IOException\n {\n\n\n try\n {\n FileReader in = new FileReader(\"d:/test.txt\");//Will get error if not handled ot thrown (IOException thrown above)\n // char ch = in.read();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //Will get error if not handled ot thrown\n System.out.println(\"Please enter numerator : \");\n int numerator = Integer.parseInt(br.readLine());\n System.out.println(\"Please enter denominator\");\n int denominator = Integer.parseInt(br.readLine());\n /*BufferedReader Exception Handling*/\n // System.out.println(\"Please enter numerator : \");\n // int numerator = scanner.nextInt();\n // System.out.println(\"Please enter denominator : \");\n // int denominator = scanner.nextInt();\n\n System.out.println(\"The quotient is : \" + (numerator/denominator));\n }\n //Catch blok statements are cumpolsary\n catch(ArithmeticException ae)\n {\n System.out.println(\"Cannot divide by zero\");\n throw ae;\n // ae.printStackTrace();\n }\n /*Should be the last clause\n - will be executed even if exception occurs or not.\n - We write a CLEANUP CODE in the finally block\n - Finally block is used to free the resources\n - for example, file connections or jdbc connections (We have to close each connection)\n - in a networking program, you have to close the 'socket'\n - Finally block will be executed whether error occurs or not\n - Final block will be executed even if there is a 'return' statement in a method above the same\n */\n finally\n {\n System.out.println(\"In finally block\");\n }\n }", "public static void main(String[] args) throws Exception {\n try{\n voziTrku();\n }catch(PokvarenMotorException exPom){\n System.out.println(\"Pokvario se motor!!! skloni ga sa staze\");\n }catch(MaglaException exM){\n System.out.println(\"Magla je! Nema trke\");\n } \n \n }", "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "public static void main(String[] args)\n{\ntry\n{\nnew Ex().m1();\n}\n///Exception e is a superclass of all the Exceptions in java// \n///In compile Time This Exception has been already Caught///\ncatch(ArithmeticException e)\n{\nSystem.out.println(\"Cannot Divide by Zero\");\n}\ncatch(Exception e)\n{\nSystem.out.println(\"Cannot Divide by Zero\");\n}\n}", "@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\t\n\t\t/*\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Lutfen yasinizi giriniz\");\n\t\tint yas = scan.nextInt();\n\t\t\n\t\tif (yas>=0) {\n\t\t\tSystem.out.println(\"Girdiginiz yas: \" + yas);\n\t\t}else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t*/\n\n\t\t// Java'ya bir exception throw ettirmek için \"throw\" ve \"new\" keyword'leri kullanılır \n\t\t// Bu sekilde yazdigimizda java exception throw eder ama kodumuz da bloke olmus olur. \n\t\t// Bloke olmasını engellemek istersek kodu try - catch ile surround yapailiriz\n\t\t\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Lutfen yasinizi giriniz\");\n\t\tint yas = scan.nextInt();\n\t\t\n\t\ttry {\n\t\tif (yas>=0) {\n\t\t\tSystem.out.println(\"Girdiginiz yas: \" + yas);\n\t\t}else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t} \n\t\t} catch(IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t\t//System.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"kod bloke olmamis\");\n\t\t\n\t\n\t\tscan.close();\n\t}", "public static void main(String[] args) {\n\t String s = JOptionPane.showInputDialog(\"What to input?\");\n\t //int i = Integer.parseInt(s);\n\t \n\t \n\t\t \n\t \n\t\ttry{ \n\t\t\t int i = Integer.parseInt(s);\n\t\t\t \n\t\t}catch(Exception e){\n\tSystem.out.println(\"hi\");}\n\t\tSystem.out.println(\"It still goes here\");\n\t}", "public static void main(String[] args) {\n\t\ttry\n{\n\t\n\tint data=80/0;\n}\ncatch (ArithmeticException e)\n\t\t{\n\tSystem.out.println(e);\n\t\t}\nSystem.out.println(\"rest of the work done\");\n\t\n\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Suraj\");\n\t\t\n\t\ttry {\n\t\t\tthrow new Exception(\"Suraj Exception\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Shinde\");\n\t\t\n\t\tString Exe_Flag = \"N\";\n\t\tif(Exe_Flag.equals(\"N\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tthrow new Exception(\"Execution flag is blank exception\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\tthrow new CustomException(\"Custom Exception\");\n\t\t} catch (CustomException e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"Catch Block\"); \n\t\t\t \n System.out.println(e.getMessage()); \n\t\t}\n\t}", "public static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n try { \n Evaluation.handleCostOption(\".bsi\", 1281);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tint a=10;int b=0;\n\t\tdouble div=a/b;//run ettigimizde exeption alirz\n\t\t\n\t\t//cought exceptions-checked\n\t\tThread.sleep(2000);//problem var deal etmek icin exepcion yapmamiz gerekiyr\n\t\t//yada try and catch yapabilirz\n\t\ttry {\n\t\t\n\t\tint i=9/0;\n\t\t\n\t\t}catch( ArithmeticException ae){//Exception ae-->en buyuk parent class----\n\t\t\tSystem.out.println(\"Division by zero is not allowed\");\n//\t\t\tae.getMessage();\n//\t\t\tae.printStackTrace();\n//\t\t\tSystem.out.println(\"I am a catch blocksyso\");\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n /**\n * Exception will occur here ,after catch block control will goto finally block\n */\n try {\n int i = 10 / 0;\n } catch (Exception e) {\n System.out.println(\"Inside 1st catch block\"+e.getMessage());\n } finally {\n System.out.println(\"Inside 1st finally block: Numeric overflow in the expression\");\n }\n /**\n * In this case exception won't .After executing try block control will go to finally block.\n */\n\n try{\n int i=10/10;\n }catch (Exception e){\n System.out.println(\"Inside 2nd catch block\"+e.getMessage());\n }finally {\n System.out.println(\"Inside 2nd finally block: code has reached 2nd finally block\");\n }\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fis=new FileInputStream(\"C:\\\\Users\\\\Lenovo\\\\eclipse-workspace\\\\java2021summerTr\\\\src\\\\day39_exception\\\\File\");\n\t\t\t\n\t\t\tint k=0;\n\t\t\ttry {\n\t\t\t\twhile((k=fis.read())!=-1) { // read \n\t\t\t\t\tSystem.out.print((char)k);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (IOException e) {// dosyalarla ilgili genel yazma ve okuma sorunlarini handle eder\n\t\t\t\t // FileNotFoundException IS-A IOException\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\t// e.printStackTrace(); // tum hata aciklamalarini yazdirir ama kodumuz bloke olmaz\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n System.out.println(\"kod bloke olmadi\");\n\n\t}", "@Override\n\tpublic void demoRunTimeException() throws RuntimeException {\n\n\t}", "public static void main(String[] args) {\n\n\t\tint a = 10;\n\t\tint b = 0;\n\t\t\n\t\ttry\n\t\t{\n\t\tint div = a/b;\n\t\n\t\t}\n\t\tcatch(ArithmeticException e)\n\t\t{\n\t\t\tSystem.out.println(\"Arithmaetic Exception handled\");\n\t\t}\n\t\t\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\tSystem.out.println(\"Exception Handled\");\n\t\tSystem.out.println(\"Hello\");\n\t\t\n\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Try catch block\");\n\t\t}\n\t\t\n\t\tint myarray[] = {2,3,4,5};\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"Third Value in the array \" +myarray[6]);\n\t\t}\n\t\t\n\t\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t{\n\t\t\tSystem.out.println(\"my array exception handled\");\n\t\t}\n\t\t}", "public static void handleEmptyKeywordException() {\n System.out.println(\"\\tSorry sir, you need to include a keyword so that I can filter out the required tasks.\");\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n dynamicSelectModel0.getOptionCount();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }", "void invalid() {\n\t\tSystem.out.println(\"falsche Eingabe...\");\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tint a[] = new int[5];\n\t\t\t\ta[6]= 4;\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(ArrayIndexOutOfBoundsException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t\tint i = 10;\n\t\t\t\n\t\t\tint k = 20;\n\t\t\t\n\t\t\tint j = k / i;\n\t\t\t\n\t\t\tSystem.out.println(j);\n\t\t\t\n\t\t\tint l = i / 0;\n\t\t\t\n\t\t\tSystem.out.println(l);\n\t\t}\n\t\tcatch (ArithmeticException e) {\n\t\t\t\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfinally{\n\t\t\tSystem.out.println(\"rest of the code\");\n\t\t}\n\t\tSystem.out.println(\"executed succesfully\");\n\t}", "public static void main(String[] args) {\ntry\n{\n\tnew exceptiontest().a(); \n} \ncatch (Exception e)\n{\n\te.printStackTrace();\n}\n}", "public void inquiryError() {\n\t\t\n\t}", "public void printFailure() {\n //\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n try { \n Evaluation.handleCostOption(\" \", 0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public static void main(String[] args) {\n\t \r\n\t\t\r\n\t\tSystem.out.println(\"program start\");\r\n\t\tint i =10;\r\n\t\tint div = 0;\t\t\r\n\t\ttry {\r\n\t\t\tdiv=i/0; // exception aa rha hai -\r\n\t\t}\r\n\t\tcatch(ArithmeticException ae)\r\n\t\t{\r\n\t\t\tSystem.out.println(ae);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(div);\r\n\t\tSystem.out.println(\"after div\");\r\n\t}", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Level level0 = Level.warn;\n ErrorHandler errorHandler0 = new ErrorHandler(\"Database query did not return a result: \", level0);\n // Undeclared exception!\n try { \n DBUtil.runScript(\"z\\\"\", \"Database query did not return a result: \", (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Resource not found: z\\\"\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "public static void main(String[] args) {\n void book() {\n\tSystem.out.println(\" booking started \");\n\ttry {\n\t\tSystem.out.println(10/0);\n\t\tSystem.out.println(\" logic for booking \");\n\t\tSystem.out.println(\" booking confirmed \");\n\t}\n\tcatch(ArithmeticException ae )\n\t{\n\t\tSystem.out.println(\"booking failed\");\n\t\tthrow e;\n\t}\n}\n\t}", "private static void error( Exception e ) {\n e.printStackTrace();\n System.exit(-1);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n dynamicSelectModel0.getValue(1823);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n stringArray0[4] = \"Error in readFilej) : \";\n stringArray0[5] = \"\";\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"QZkj>P.|?`(ZTS\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n stringArray0[7] = \"\";\n stringArray0[8] = \"\";\n StringReader stringReader0 = new StringReader(\"\");\n char[] charArray0 = new char[2];\n charArray0[0] = 'u';\n charArray0[1] = ']';\n stringReader0.read(charArray0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSJshop jSJshop0 = null;\n try {\n jSJshop0 = new JSJshop(\"QZkj>P.|?`(ZTS\", \"Error in readFilej) : \");\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "public static void main(String[] args)\r\n\t{\n\t\t\r\n\t\tthrow new Test ();\r\n\t\t\r\n\t}", "public static void main(String[] args){\n try {\r\n // m.nada(0);\r\n } catch (Exception ex) {\r\n System.out.println(\"No hay error\");\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\ttrycatch excepcion= new trycatch();\r\n\t\tCoche c1=new Coche();\r\n\t\tPlaza p1= new Plaza(10);\r\n\t\t\r\n\t\t\r\n\t\tint n;\r\nSystem.out.println(\"MENU PLAZA APARCAMIENTO\");\r\nSystem.out.println(\"1. Aparcar coche\");\r\nSystem.out.println(\"2. Sacar coche\");\r\nSystem.out.println(\"3. Ver coche aparcado\");\r\nSystem.out.println(\"4. Salir aplicacion\");\r\nn=excepcion.try_int();\r\nswitch (n) {\r\ncase 1:{\r\n\r\n \r\n}\r\n}\r\n\t\r\n\t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.collection(\"^_1[g(~fh\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getOptionCount();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }", "public void mo1944a() throws cf {\r\n }", "public static void main(String[] args) {\n\t\tExc_e4 in=new Exc_e4();\r\n\t\ttry\r\n\t\t{\r\n in.registerUser(\"kalyan\",\"india\");\r\n in.registerUser(\"Ramu\",\"us\");\r\n\t\t}\r\n\t\tcatch(InvalidCountryException ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"caught\");\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Choose a number\");\n\t\tint x = scan.nextInt();\n\t\t\n\t\ttry{\n\t\t\t//System.out.println(arr[7]);\n\t\t\t//String e = \"Array Out of bound\";\n\t\t\tif(x < 10)\n\t\t\t\tthrow new Exception(\"Numbers less than 10 are not accepted\");\n\t\t\tSystem.out.println(\"The number you have chosen is \" + x);\n\t\t}\n\t\t\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Exception found:\");\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "public interface RoutineException {}", "@Test(timeout = 4000)\n public void test239() throws Throwable {\n Form form0 = new Form(\"4_R]T<#2)Q?]R7Ut\");\n // Undeclared exception!\n try { \n form0.sup();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void printErrorParse() {\n\t\tSystem.out.println(ConsoleColors.RED + \"Invalid option. Please re-enter a valid option.\" + ConsoleColors.RESET);\n\t\t\n\t}", "public static void main(String[] args) {\n Calculator calculator=new Calculator();\r\n// try{\r\n// calculator=null;\r\n calculator.divide(10,0);\r\n// }\r\n// catch (ArithmeticException e){\r\n// System.out.println(\"Caught an arithmetic exception\");\r\n// }\r\n//// catch (NullPointerException e){\r\n//// System.out.println(\"Caught an null pointer exception\");\r\n//// }\r\n//// catch (RuntimeException e){\r\n//// System.out.println(\"Caught an runtime exception\");\r\n//// }\r\n// catch (Exception e){\r\n// System.out.println(\"Caught an exception\");\r\n// }\r\n }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.noscript();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void main(String[] args) {\n\t\ttry\r\n\t\t{\r\n\t\t\tint a=10, b=0;\r\n\t\t\tint c=a/b;\r\n\t\t\tSystem.out.println(c);\r\n\t\t\tint arr[] = {10,20,30};\r\n\t\t\tSystem.out.println(arr[10]); // java.lang.ArrayIndexOutOfBoundsException will be thrown\r\n\t\t\tSystem.out.println(\"End of Code\");\r\n\t\t}\r\n\t\tcatch (ArithmeticException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tSystem.out.println(\"Please check second number cannot be zero\");\r\n\t\t}\r\n\t\tSystem.out.println(\"End of try catch block\");\r\n\r\n\t}", "public void unknownOption(final String option)\n {\n try\n {\n System.err.println(MessageFormat.format(res.getString(\"unknown_option\"), option));\n }\n catch (final MissingResourceException e)\n {\n System.err.println(e.toString());\n }\n }", "public static void main(String[] args) {\r\n try {\r\n\r\n int x = Integer.parseInt(args[0]);\r\n int y = Integer.parseInt(args[1]);\r\n int divide = x / y;\r\n System.out.println(\"divide = \" + divide);\r\n\r\n } catch (Exception e) {\r\n // System.out.println(\"Exception Occured!\");//Exception Occured!\r\n //System.out.println(\"Message = \"+e.getMessage());//Message = / by zero\r\n\r\n //object_type with message\r\n //System.out.println(\"toString = \"+e.toString());//toString = java.lang.ArithmeticException: / by zero\r\n\r\n //toString() + callstack\r\n //e.printStackTrace();//java.lang.ArithmeticException: / by zero at Except4.main(Except4.java:6)\r\n\r\n if(e instanceof ArrayIndexOutOfBoundsException)\r\n {\r\n System.out.println(\"***sufficient arguments are not provided***\");\r\n }\r\n else if(e instanceof NumberFormatException){\r\n System.out.println(\"***provide numbers***\");\r\n }\r\n else if(e instanceof ArithmeticException){\r\n System.out.println(\"***Check your values***\");\r\n }\r\n\r\n }\r\n\r\n System.out.println(\"----done--------\");\r\n }", "public static void printIndexInputNotDetectedError() {\n botSpeak(Message.INDEX_INPUT_NOT_DETECTED_ERROR);\n }", "@Override\n public void showError() {\n }", "@SuppressWarnings(\"all\")\n public static void throwManualExceptionTest() {\n int result = -1;\n //\n try {\n for (int i = 0; i < TEST_CIRCLE_NUM; i++) {\n //An exception code\n throw new RuntimeException(\"Test exception.\");\n }\n } catch (Exception e) {\n LOGGER.error(\"Divide the zero is wrong\", result);\n }\n\n }", "protected void handleException(java.lang.Throwable exception) {\n ch.softenvironment.view.BaseDialog.showError((java.awt.Component)this, getResourceString(\"CESyntax\"), exception.toString(), exception); //$NON-NLS-1$\n}", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.strike();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "@Override\n \tpublic void logProgramExit(int exitCode, String exception) {\n \t\tSystem.out.println(\"Program exited with code \" + exitCode + \" [\" + exception + \"]\");\n \t}", "public static void main(String[] args) throws MyException {\n\t\tint number1,number2;\n\t\tScanner scanner=new Scanner(System.in);\n\t\n\t\ttry\n\t\t{\n\t\t\twhile(true) {\n\t\t\tSystem.out.println(\"Enter 2 numbers\");\n\t\t\tnumber1=scanner.nextInt();\n\t\t\tnumber2=scanner.nextInt();\n\t\t\tif(number1==0||number2==0)\n\t\t\t{\n\t\t\t\tthrow new MyException(\"Numbers cannot be negative\");\n\t\t\t}\n\t\t\tif(number1<0)\n\t\t\t{\n\t\t\t\tthrow new MyException(\"First Number entered is negative\");\n\t\t\t}\n\t\t\tif(number2<0)\n\t\t\t{\n\t\t\t\tthrow new MyException(\"Second Number entered is negative\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(Math.pow(number1, number1));\n\t\t\t}\n\t\t}}\n\t\tcatch(MyException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t\n\t\t}\n\n}", "public static void main(String[] args) {\n\t\tint a,b,c;\r\n\t\ta=b=c=0;\r\n\t\r\n\t\ttry {\r\n\t\t\ta=b/c; //Arithmatic Exception \r\n\t\t\t//this Exception is Unchecked Exception\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"Cannot Divide By Zero\");\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t//whatsoever happen above for try and catch\r\n//\t\t\tThis block will finally Execute\r\n\t\t\tSystem.out.println(\"You are in the Finally block\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n try {\r\n\tthrow new Exc1();\r\n\t\r\n }catch(Exc0 e) {\r\n\t System.out.println(\"e0\");\r\n }\r\n\t}", "@Test\n\tpublic void whenBikeTypeIsNotPresentInAvoidPlusStationsThenThrowException()\n\t\t\tthrows NoValidStationFoundException, InvalidBikeTypeException {\n\t\ttry {\n\t\t\t// There are no elec bikes in this system, so this should throw the\n\t\t\t// NoValidStationFoundException exception\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"ELEC\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t// The nope bike type does not exist, so the InvalidBikeTypeException should be\n\t\t\t// thrown here because we cannot compute the bike's speed\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"NOPE\", n);\n\t\t\tfail(\"InvalidBikeTypeException should have been thrown\");\n\t\t} catch (InvalidBikeTypeException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t}", "public static void main(String[] args){\n Unchecked teste = new Unchecked();\n \n //o tray verifica se o teste.deposita() esta gerando algum erro\n //se gerar algum erro, cai para o catch, onde no catch temos que colocar\n //no parametro o tipo do erro\n //detro do bloco do catch colocamos alguma ação para indicar que ouve um erro\n //caso o codigo gere um erro diferente do que esta no argumento do catch\n //o catch não executarar o que tem dentro do seu bloco\n try{\n teste.deposita(-1);\n }catch(IllegalArgumentException e){\n //imprime o erro na tela\n System.out.println(\"Erro, você não pode depositar valor negativo \"+e);\n }\n System.out.println(teste.saldo);\n }", "public static void main(String[] args) {\n\t\tScanner S1=new Scanner(System.in); //Scanner is the class name\n\t\tSystem.out.println(\"enter the first number\");\n\t\tint a=S1.nextInt(); //method\n\t\tSystem.out.println(\"enter the second number\");\n\t\tint b=S1.nextInt();\n\t\twhile(true)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(a/b);\n\t\t\tbreak;\n\t\t\n\t\t\t}\n\t\t\tcatch(ArithmeticException AE)\n\t\t\t{\n\t\t\t\tSystem.out.println(AE); //if we dont print AE then it will not show the reason for exception\n\t\t\t\tSystem.out.println(\"denominator cannot be zero please type again\");\n\t\t\t\tb=S1.nextInt();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "public void mo1964g() throws cf {\r\n }", "@Test\n public void test25() throws Throwable {\n try {\n CostMatrix costMatrix0 = Evaluation.handleCostOption(\" // can classifier handle the data?\\n\", (-1802));\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n }\n }", "public static void main(String[] args) {\n\t\tCustomizedException obj=new CustomizedException();\r\n\t\ttry {\r\n\t\t\tint age=obj.getAge();\r\n\t\t\tif(age<0)\r\n\t\t\t\tthrow new negativeException();\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(age);\r\n\t\t}\r\n\t\tcatch(negativeException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test343() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n // Undeclared exception!\n try { \n label0.title(\"select\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "public static void catchingOnlyFromTry(){\n int x =1;\n try{\n if (true){throw new RuntimeException();}\n }\n catch (RuntimeException e){\n x*=2;\n System.out.println(x);\n if (true){throw new Error();}\n }\n catch(Error err){\n x*=3;\n System.out.println(x);\n }\n x*=5;\n System.out.println(x);\n }", "public static void main(String[] args) throws InvalidAgeExcetion {\n\t\tThrowDemo oo=new ThrowDemo();\n\t\too.accept();\n\t}", "private void sqlException(SQLException e) {\n System.err.println(\"SQLException: \" + e.getMessage());\n System.err.println(\"SQLState: \" + e.getSQLState());\n System.err.println(\"VendorError: \" + e.getErrorCode());\n e.printStackTrace();\n// System.exit(-1);\n }", "public void cmdTestError(User teller) {\n throw new RuntimeException(\"This is a test. Don''t worry.\");\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"wF,o\";\n stringArray0[2] = \"0\";\n // Undeclared exception!\n try { \n JDayChooser.main(stringArray0);\n fail(\"Expecting exception: HeadlessException\");\n \n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.awt.GraphicsEnvironment\", e);\n }\n }", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.value(\"\");\n dynamicSelectModel0.collection(\"|d47Gj]%$2|3j>C_K\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getValue(1823);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test246() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n DynamicSelectModel dynamicSelectModel0 = form0.selectModel();\n // Undeclared exception!\n try { \n form0.select(\"O=ea1_0Y\", dynamicSelectModel0, \"O=ea1_0Y\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tExamples.ex7();\n\t\t}\n\t\t/*\n\t\t * no exception was geneated, so the catch block is skipped\n\t\t */\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"exception caught in main\");\n\t\t\tSystem.out.println(\"exception is \"+e);\n\t\t}\n\t\tSystem.out.println(\"some text in main\");\n\t\ttry {\n\t\t\tExamples.ex8();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Exception for ex8 caught\");\n\t\t\tSystem.out.println(\"exception is \"+e);\n\t\t}\n\t\t\n\t\tExamples.ex9();\n\t\t/*\n\t\t * this will compile but crash our program as ex10 produces arrayIndexOutofBoundsException\n\t\t * \n\t\t */\n\t\tExamples.ex10();\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public void helpByParamsError() {\n System.err.println(\"The command syntax is wrong.\");\n System.err.println(\"You can write the command in the following way:\");\n System.err.println(\"java -jar portScanner-1.5.jar ipOrElseDomain minPortRange maxPortRange [file-to-save-open-ports.txt]\");\n System.err.println(\"java -jar PortScanner-1.5.jar 127.0.0.1 0 65535 file.txt\");\n System.err.println(\"or else\");\n System.err.println(\"java -jar PortScanner-1.5.jar ipOrElseDomain [file-to-save-open-ports.txt]\");\n System.err.println(\"java -jar PortScanner-1.5.jar cloudflare.com file.txt\");\n System.err.println(\"The file is not obligatory option.\");\n System.exit(1);\n }", "@Test(timeout = 4000)\n public void test265() throws Throwable {\n Form form0 = new Form(\"Lc7/B.MJD\");\n // Undeclared exception!\n try { \n form0.textInput(\")j6;z$@\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Form form0 = new Form(\")`EP/)LkuiRB$z_\");\n // Undeclared exception!\n try { \n form0.ins((Object) \")`EP/)LkuiRB$z_\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n Class<Driver> class0 = Driver.class;\n ErrorHandler errorHandler0 = new ErrorHandler(class0);\n // Undeclared exception!\n try { \n DBUtil.runScript(\"Cu#M95}\\bXiOX\\\"4V\", 'K', (Connection) null, false, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "public static void main(String[] args) throws IOException, InterruptedException {\n\n\n //static method can directly been called in static method\n\n //calling a method that declare to throws checked exception\n\n try {\n readMyFile();\n }catch (FileNotFoundException e){\n System.out.println(\"Handling here , Just moving on\");\n }\n\n //Thread class is coming from java.lang package\n Thread.sleep(3000);\n System.out.println(\"The End\");\n\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.hr();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "public void run() throws Exception {\n\t\t\n\t\tfinal int MENU_ITEM_LENGTH = 2;\n\t\tString input;\n\t\tString choice = \"\";\n\t\t\n\t\t// Runs the Menu page until the user exits.\n\t\tdo {\n\t\t\tprintMenu();\n\t\t\tinput = console.nextLine().toUpperCase();\n\t\t\t\n\t\t\tif (input.length() != MENU_ITEM_LENGTH) {\n\t\t\t\tSystem.out.println(\"Error - selection must be two characters!\");\n\t\t\t} \n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t//Catches the user's choice and follows up from there.\n\t\t\t\tswitch (input) {\n\t\t\t\tcase \"CC\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcreateCar();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidRegNoException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidMakeException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidModelException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidDriverNameException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidPassengerCapacityException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidServiceTypeException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidRefreshmentsException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidSSCFeeException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BC\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbook();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidDateInputException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidUserNameException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidBookingDateException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidBookingCarFullExcception e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidExceedPassengerCapacity e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidZeroUserInputException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidCharacterException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"CB\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcompleteBooking();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidRegNoOrDateException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"DA\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdispAllCar();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidSortingOrderException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidServiceTypeException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SS\":\n\t\t\t\t\tsearchSpecificCar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SA\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsearchAvailableCar();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidServiceTypeException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (InvalidDateInputException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SD\":\n\t\t\t\t\tapplication.seedData();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"LC\":\n\t\t\t\t\t//Currently, there is only 1 Standard and 1 Silver Service Car in the text file.\n\t\t\t\t\ttry {\n\t\t\t\t\t\tapplication.loadCars();\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\tSystem.out.println(\"Data could not be retrieved, please contact the adminstrator.\");\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tcatch (CorruptedFileException e) {\n//\t\t\t\t\t\tSystem.out.println(\"Data was corrupt, please contact the adminstrator.\");\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"EX\":\n\t\t\t\t\ttry {\n\t\t\t\t\t\tapplication.saveCars();\n\t\t\t\t\t\tSystem.out.println(\"Cars saved\");\n\t\t\t\t\t\tchoice = \"EX\";\n\t\t\t\t\t\tSystem.out.println(\"Exiting Program ... Goodbye!\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\tSystem.out.println(\"Data could not be saved, please contact the adminstrator.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Error, invalid option selected!\");\n\t\t\t\t\tSystem.out.println(\"Please try Again...\");\n\t\t\t\t}\n\t\t\t}\n\t\t} while (choice != \"EX\");\n\t}", "@Override\n\t\t\t\t\tpublic void accept(Throwable throwable) throws Exception {\n\t\t\t\t\t\tToast.makeText(SignActivity.this, \"出错:\" + throwable.getMessage(),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tthrowable.printStackTrace();\n\t\t\t\t\t}", "private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n discretize0.getOptions();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n Form form0 = new Form(\"w\");\n // Undeclared exception!\n try { \n form0.passwordInput(\"null\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.6651526", "0.6252002", "0.6215054", "0.6178313", "0.61747944", "0.61538637", "0.6100276", "0.6097445", "0.6076972", "0.60481673", "0.6040537", "0.6017007", "0.6007075", "0.5957823", "0.59568477", "0.59511524", "0.59345603", "0.5921008", "0.59179026", "0.59037036", "0.58924985", "0.5892492", "0.5885955", "0.5884597", "0.588235", "0.5879169", "0.5861345", "0.5811284", "0.5796269", "0.57877547", "0.5767004", "0.5754597", "0.5737099", "0.57341796", "0.5726465", "0.57211316", "0.57161963", "0.57132393", "0.5706425", "0.5705361", "0.56921", "0.56886977", "0.56865567", "0.56860095", "0.5655645", "0.56518656", "0.5648836", "0.56353635", "0.5634056", "0.5629724", "0.5628665", "0.56248206", "0.5624489", "0.5622588", "0.5620251", "0.56128085", "0.5610947", "0.5602404", "0.55980754", "0.5591512", "0.55879986", "0.5580994", "0.55776036", "0.55683225", "0.55652106", "0.5562792", "0.5558666", "0.55572677", "0.55561537", "0.55524516", "0.55502856", "0.5545292", "0.5541852", "0.55407834", "0.5540706", "0.5538509", "0.5520082", "0.5517086", "0.55132735", "0.55104446", "0.5506408", "0.55039024", "0.54957825", "0.54947627", "0.5494205", "0.54835826", "0.54830736", "0.5479772", "0.54788834", "0.5478748", "0.5471434", "0.5471385", "0.54652035", "0.5465191", "0.5461676", "0.546143", "0.5460566", "0.54572237", "0.5455185", "0.54547745", "0.5452188" ]
0.0
-1
I18nItemInContext1 The method to obtain a formatted message in a locale that is best preferred for the current user.
public String s (TContext contextData, TArg1 arg1) { MessageFormat messageFormat = this.obtainMessageFormat (contextData); return messageFormat.format (new Object [] { arg1 }, new StringBuffer (), null) .toString (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDisplayNameI18N() throws JspException {\n Object args[] = new Object[5];\n args[0] = arg0;\n args[1] = arg1;\n args[2] = arg2;\n args[3] = arg3;\n args[4] = arg4;\n\n\n if (getKey() == null) {\n\n Object o = null;\n\n if (getScope().equals(\"session\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.SESSION_SCOPE);\n\n } else if (getScope().equals(\"request\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.REQUEST_SCOPE);\n\n } else if (getScope().equals(\"page\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.PAGE_SCOPE);\n\n }\n\n if (o != null) {\n\n try {\n\n String _property = getProperty();\n String innerPropertyName, innerGetterName;\n Method _method;\n\n while (_property.indexOf(\".\") > 0) {\n\n innerPropertyName = _property.substring(0, _property.indexOf(\".\"));\n innerGetterName = \"get\" + innerPropertyName.substring(0,1).toUpperCase() + innerPropertyName.substring(1);\n\n _method = o.getClass().getMethod(innerGetterName, null);\n\n o = _method.invoke(o, null);\n\n _property = _property.substring(_property.indexOf(\".\") +1);\n }\n\n String getterName = \"get\" + _property.substring(0,1).toUpperCase() + _property.substring(1);\n\n Method method = o.getClass().getMethod(getterName, null);\n\n if (method.getReturnType() == String.class) {\n String messageKey = (String)method.invoke(o, null);\n\n setKey(messageKey);\n }\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }\n\n // Retrieve the message string we are looking for\n String message = RequestUtils.message(pageContext, this.bundle,\n this.localeKey, this.key, args);\n if (message == null) {\n message = key;\n }\n\n return message;\n }", "abstract java.lang.String getLocalizedMessage();", "String getMessage(String bundleKey, Locale locale, Object... args);", "String getMessage(String bundleKey, String bundleName, Locale locale, Object... args);", "private String getMessage(FacesContext facesContext, String msgKey, Object... args) {\n Locale locale = facesContext.getViewRoot().getLocale();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ResourceBundle bundle = ResourceBundle.getBundle(\"Messages\", locale, classLoader);\n String msgValue = bundle.getString(msgKey);\n return MessageFormat.format(msgValue, args);\n }", "@Override\n\tpublic String getMessage() {\n\t\tResourceBundle myResources = ResourceBundle.getBundle(DEFAULT_RESOURCE_PACKAGE);\n\t\tString message = myResources.getString(MESSAGE);\n\t\t\n\t\treturn message;\n\t}", "public String getMessageFired(final SessionContext ctx)\r\n\t{\r\n\t\tif( ctx == null || ctx.getLanguage() == null )\r\n\t\t{\r\n\t\t\tthrow new JaloInvalidParameterException(\"GeneratedSslOrderSteppedMultiBuyDiscountPromotion.getMessageFired requires a session language\", 0 );\r\n\t\t}\r\n\t\treturn (String)getLocalizedProperty( ctx, MESSAGEFIRED);\r\n\t}", "public StringItem getStringItem1() {\n if (stringItem1 == null) {//GEN-END:|47-getter|0|47-preInit\n // write pre-init user code here\n stringItem1 = new StringItem(\"Police appel\\u00E9e\", \"Un email a \\u00E9t\\u00E9 envoy\\u00E9 \\u00E0 au poste de police le plus proche. Appuyez sur OK lorsque les policiers sont sur place.\");//GEN-LINE:|47-getter|1|47-postInit\n // write post-init user code here\n }//GEN-BEGIN:|47-getter|2|\n return stringItem1;\n }", "@RequestMapping(method = RequestMethod.GET, path = \"/hello-world/internationalized2\")\t\n\tpublic String helloWorldInternationalized2(Locale locale) {\n\t\t\n\t\treturn messageSource.getMessage(\"good.morning.message\",null, LocaleContextHolder.getLocale());\n\t}", "public EObject displayInfo(EObject context, String title, String message) {\r\n\t\tMessageDialog.openInformation(Display.getCurrent().getActiveShell(), title, message);\r\n\t\treturn context;\r\n\t}", "Messages getApplicationCatalog(Locale locale);", "String getMessage(String bundleKey, Object... args);", "String getCurrentLocaleString();", "public String getMessage() {\n return getMessage(this.key, (Object[]) null, this.key, (Locale) null);\n }", "@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage(final Locale loc)\n\t{\n\t\treturn getPersistenceContext().getLocalizedValue(MESSAGE, loc);\n\t}", "int getLocalizedText();", "@Override\r\n\tprotected String getLocalizedMessage(String errorCode, Locale locale, Object... args) {\n\t\treturn com.platform.util.i18n.PlatformResource.getTranslatedText(errorCode, args, locale);\r\n\t}", "public String getString(String key, Object s1) {\n return MessageFormat.format(Platform.getResourceBundle(getBundle()).getString(key), new Object[]{s1});\n }", "public String getPredefinedTextMessage( String language, int preDefindeMsgId );", "public static String getMessage(String messageKey, Object... args) {\r\n\t\t\r\n\t\tif (messageSource == null)\r\n\t\t\treturn \"ApplicationContext unavailable, probably unit test going on\";\r\n\t\t\r\n\t\t// http://stackoverflow.com/questions/10792551/how-to-obtain-a-current-user-locale-from-spring-without-passing-it-as-a-paramete\r\n\t\treturn messageSource.getMessage(messageKey, args,\r\n\t\t\t\tLocaleContextHolder.getLocale());\r\n\t}", "public String getMessage(Locale locale, String key, Object... params) {\n String value;\n try {\n value = ResourceBundle.getBundle(OPP_BUNDLE_NAME, locale).getString(key);\n } catch (final Throwable e) {\n LOGGER.warn(\"missing bundle key: key=\" + key + \", locale=\" + locale, e);\n value = null;\n }\n\n if (null == value || \"\".equals(value)) {\n value = \"???\" + key + \"???\";\n return value;\n }\n String message = MessageFormat.format(value, params);\n return message;\n }", "String getLocalizedString(Locale locale);", "private String format(final String format, final Object arg1, final Object arg2)\n\t{\n\t\treturn MessageFormatter.format(format, arg1, arg2).getMessage();\n\t}", "String getMessage(String bundleKey, String bundleBaseName, Object... args);", "public java.lang.String getMessageField1() {\r\n return messageField1;\r\n }", "public final native ApplicationFormItemTexts getItemTexts(String locale) /*-{\n\t\tif(!(locale in this.i18n)){\n\t\t\tthis.i18n[locale] = {locale: locale, errorMessage : \"\", help : \"\", label : \"\", options : \"\"};\n\t\t}\n\t\treturn this.i18n[locale];\n\t}-*/;", "String getString(String bundleKey, Locale locale);", "B itemCaption(ITEM item, Localizable caption);", "public String getMessageText();", "private CharSequence getAltTextMessage(MutableInt icon) {\n CharSequence string = null;\n if (mShowingBatteryInfo) {\n // Battery status\n if (mPluggedIn) {\n // Charging or charged\n if (mUpdateMonitor.isDeviceCharged()) {\n string = getContext().getString(R.string.lockscreen_charged);\n } else {\n string = getContext().getString(R.string.lockscreen_plugged_in, mBatteryLevel);\n }\n icon.value = CHARGING_ICON;\n } else if (mBatteryLevel < KeyguardUpdateMonitor.LOW_BATTERY_THRESHOLD) {\n // Battery is low\n string = getContext().getString(R.string.lockscreen_low_battery);\n icon.value = BATTERY_LOW_ICON;\n }\n } else {\n string = getContext().getString(R.string.lockscreen_discharging; mBatteryLevel);\n }\n return string;\n }", "protected abstract String transactionContextMessage();", "private static String getMessage(String key, Object... o) {\n String msg = getLogger().getResourceBundle().getString(key);\n return MessageFormat.format(msg, o);\n }", "public static String SPgetMessageText(Context context){\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n StringBuilder sb = new StringBuilder();\n for(int i = 0 ; i<list.size(); i++){\n sb.append(list.get(i).getFunCharacter());\n }\n return sb.toString();\n }else{\n return InitialOutfit.startingText();\n }\n\n\n }", "public static String localizeContact(Context context, String toLocalize){\n String language = Locale.getDefault().getLanguage();\n if(!language.equals(lastLanguage)) {\n lastLanguage = language;\n resetArrayMaps();\n }\n if(contactsTranslations.isEmpty()) {\n String[] localizedContacts = context.getResources().getStringArray(R.array.contacts);\n String[] contacts = Values.CONTACTS_DEFAULT_NAMES;\n for (int i = 0; i < contacts.length; i++)\n contactsTranslations.put(contacts[i], localizedContacts[i]);\n }\n return contactsTranslations.get(toLocalize);\n }", "public String getMessageCouldHaveFired(final SessionContext ctx)\r\n\t{\r\n\t\tif( ctx == null || ctx.getLanguage() == null )\r\n\t\t{\r\n\t\t\tthrow new JaloInvalidParameterException(\"GeneratedSslOrderSteppedMultiBuyDiscountPromotion.getMessageCouldHaveFired requires a session language\", 0 );\r\n\t\t}\r\n\t\treturn (String)getLocalizedProperty( ctx, MESSAGECOULDHAVEFIRED);\r\n\t}", "protected String getMessage(String message) {\n try {\n return getBundle().getString(message);\n } catch (MissingResourceException e) {\n return message;\n }\n\n }", "public interface LocaleContext {\n Locale getLocale();\n}", "@Override\n\tpublic String getLocalizedMessage() {\n\t\treturn super.getLocalizedMessage();\n\t}", "public String getLocale ( ) {\n\t\treturn extract ( handle -> getLocale ( ) );\n\t}", "public StringItem getStringItem2() {\n if (stringItem2 == null) {//GEN-END:|51-getter|0|51-preInit\n // write pre-init user code here\n stringItem2 = new StringItem(\"V\\u00E9hicule non authoris\\u00E9\", \"Le v\\u00E9hicule n\\'est pas authoris\\u00E9. Donnez l\\'emplacement et le mod\\u00E8le de celui-ci pour faire prendre le relai aux services de police\");//GEN-LINE:|51-getter|1|51-postInit\n // write post-init user code here\n }//GEN-BEGIN:|51-getter|2|\n return stringItem2;\n }", "public String formatMessage(String message) {\n return String.format(\"<h1>%s</h1>\", message);\n// return MessageFormat.format(\"<h1>{0}}</h1>\", message);\n }", "public OSInAppMessage getCurrentDisplayedInAppMessage() {\n return null;\n }", "public String getLocalizedMessage(Locale locale) {\n\t\treturn SafeString.getLocaleString(errorKey.getMessageKey(), locale, getAdditionalErrorDataWithLineInfo());\n\t}", "private MessageResources getMessageResources(PageContext pageContext) {\n return ((MessageResources)\n pageContext.getRequest().getAttribute(Globals.MESSAGES_KEY));\n }", "public String getMessage(int index) {\n return text.get(index);\n }", "private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }", "public String getMessage(final String key, String defaultValue, Object[] params, boolean tryTransformParams) {\n\t\tString message = this.languagesMessagesMap.get(this.currentLanguage).get(key);\n\t\tString defaultVal = defaultValue;\n\t\tif (defaultVal == null) {\n\t\t\tdefaultVal = \"??\" + key + \"??\";\n\t\t}\n\n\t\tif (message == null) {\n\t\t\tmessage = defaultVal;\n\t\t}\n\n\t\tMessageFormat format = null;\n\t\ttry {\n\t\t\tformat = new MessageFormat(message);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Wrong message \\\"\" + message + \"\\\" for formating. Key=\\\"\" + key + \"\\\"\");\n\t\t\treturn message;\n\t\t}\n\n\t\tif (params != null) {\n\n\t\t\tif (tryTransformParams) {\n\t\t\t\tfor (int i = 0; i < params.length; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger number = Integer.parseInt(params[i].toString());\n\t\t\t\t\t\tparams[i] = number;\n\t\t\t\t\t\tif (!(format.getFormatsByArgumentIndex()[i] instanceof ChoiceFormat)) {\n\t\t\t\t\t\t\tformat.setFormatByArgumentIndex(i, new DecimalFormat(\"####\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// nothing\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmessage = format.format(params);\n\t\t}\n\n\t\tmessage = message.replaceAll(\"\\\\\\\\n\", \"\\n\");\n\n\t\treturn message;\n\t}", "private String getMessage(String msgKey, Object... values) {\n String msg;\n try {\n msg = systemMessages.getString(msgKey);\n }\n catch (MissingResourceException ex) {\n return \"Error in data service: \" + msgKey;\n }\n\n return MessageFormat.format(msg, values);\n }", "private static String getItemTranslateKey(String item, String language) {\n item = item.replace(\"minecraft:\", \"item.minecraft.\");\n String translatedItem = LocaleUtils.getLocaleString(item, language);\n if (translatedItem.equals(item)) {\n // Didn't translate; must be a block\n translatedItem = LocaleUtils.getLocaleString(item.replace(\"item.\", \"block.\"), language);\n }\n return translatedItem;\n }", "@AutoEscape\n\tpublic String getMessageInfo();", "String getDefaultText(XBCItem item);", "private String translate(Translatable str, Locale locale) {\n\t\t\n\t\tif (\"\".equals(str.getMsgid())) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString baseName = this.cfg.getString(\"formatter.locale.basename\", \"Messages\");\n\n\t\tI18n i18n = I18nFactory.getI18n(this.getClass(), baseName, locale);\n\n\t\tif (!\"\".equals(str.getMsgctx()) && str.getMsgctx() != null) {\n\t\t\treturn i18n.trc(str.getMsgid(), str.getMsgctx());\n\t\t} else {\t\t\t\n\t\t\treturn i18n.tr(str.getMsgid());\n\t\t}\n\n\t}", "protected String toDisplayString(final String name, final Locale locale) {\n try {\n return ResourceBundle.getBundle(name, locale).getString(key);\n } catch (ClassCastException | MissingResourceException ignored) {\n return key; // return the non-localized key\n }\n }", "public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", getPackageName() );\r\n\t\tif ( id == 0 )\r\n\t\t{\r\n\t\t\t// 0 is not a valid resource id\r\n\t\t\tLog.v(\"VrLocale\", name + \" is not a valid resource id!!\" );\r\n\t\t\treturn outString;\r\n\t\t} \r\n\t\tif ( id != 0 ) \r\n\t\t{\r\n\t\t\toutString = getResources().getText( id ).toString();\r\n\t\t\t//Log.v(\"VrLocale\", \"getLocalizedString resolved \" + name + \" to \" + outString);\r\n\t\t}\r\n\t\treturn outString;\r\n\t}", "java.lang.String getMessageInfoID();", "public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }", "private static CharSequence formatInfoBarMessage(final Context context, String template,\n String fileName, String dirName, final Intent dirNameIntent) {\n SpannableString formattedFileName = new SpannableString(fileName);\n formattedFileName.setSpan(new StyleSpan(Typeface.BOLD), 0, fileName.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n SpannableString formattedDirName = new SpannableString(dirName);\n if (canResolveIntent(context, dirNameIntent)) {\n formattedDirName.setSpan(new ClickableSpan() {\n @Override\n public void onClick(View view) {\n if (context instanceof Activity) {\n ((Activity) context).startActivityForResult(\n dirNameIntent,\n BrowserChromeActivity.DOWNLOADPATH_SELECTION);\n }\n }\n }, 0, dirName.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n\n return TextUtils.expandTemplate(template, formattedFileName, formattedDirName);\n }", "public final native String toLocaleString() /*-{\n return this.toLocaleString();\n }-*/;", "public SrvI18n() {\n try { //to fix Android Java\n messages = ResourceBundle.getBundle(\"MessagesBundle\");\n } catch (Exception e) {\n Locale locale = new Locale(\"en\", \"US\");\n messages = ResourceBundle.getBundle(\"MessagesBundle\", locale);\n }\n }", "String getLocalization();", "java.lang.String getContext();", "public static String getMessage(MessageEnum messageEnum) {\n return ResourceLoader.getMessage(messageEnum, DEFAULT_LOCALE);\n }", "String localizedTemplateString(String templateName);", "@VisibleForTesting\n public InAppMessage getCurrentInAppMessage() {\n return this.inAppMessage;\n }", "public interface ResourceManager {\r\n\r\n\t/**\r\n\t * Adds a resource bundle to be managed by the resource manager.\r\n\t * \r\n\t * @param bundleBaseName - the base name of the bundle to add.\r\n\t * @param locales - an array with the locales to consider for the bundle to add \r\n\t */\r\n\tvoid addBundle(String bundleBaseName, Locale... locales);\r\n\t\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key, and for the resource manager default locale\r\n\t * \r\n\t * @param bundleKey\t- the key of the requested text in the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key and for the specified locale.\r\n\t * \r\n\t * @param bundleKey\t- the key of the requested text in the resource bundle\r\n\t * @param locale\t- the locale of the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, Locale locale);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key,\r\n\t * in the resource bundle with the given base name, and for the resource manager default locale\r\n\t * \r\n\t * @param bundleKey\t\t - the key of the requested text in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text should be found\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, String bundleBaseName);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key,\r\n\t * from the resource bundle with the given base name, and for the specified locale.\r\n\t * \r\n\t * @param bundleKey\t\t - the key of the requested text in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text should be found\r\n\t * @param locale \t\t - the locale of the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, String bundleBaseName, Locale locale);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the resource manager default locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey - the key of the requested message in the resource bundle\r\n\t * @param args \t\t- an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the specified locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey - the key of the requested message in the resource bundle\r\n\t * @param args \t\t- an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, Locale locale, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the resource manager default locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested message in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the value should be found\r\n\t * @param locale\t\t - the locale of the resource bundle\r\n\t * @param args \t\t\t - an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, String bundleBaseName, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key,\r\n\t * from the resource bundle with the given base name, and for the specified locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested message in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text message should be found\r\n\t * @param locale\t\t - the locale of the resource bundle\r\n\t * @param args \t\t\t - the array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, String bundleName, Locale locale, Object... args);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key, and for the resource manager default locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey - the key of the requested localized object in the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key, and for specified locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey - the key of the requested localized object in the resource bundle\r\n\t * @param locale\t- the locale of the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, Locale locale);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key,\r\n\t * from the resource bundle with the given name, and for the resource manager default locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested localized object in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized object should be found\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, String bundleBaseName);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key,\r\n\t * from the resource bundle with the given name, and for specified locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested localized object in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized object should be found\r\n\t * @param locale\t \t - the locale of the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, String bundleBaseName, Locale locale);\r\n\t\r\n\t/**\r\n\t * Indicates if the resource manager has to return <code>null</code> if a resource is missing\r\n\t * @return <code>true</code> if the resource manager has to return <code>null</code> for missing\r\n\t * resources, <code>false</code> otherwise\r\n\t */\r\n\tboolean isNullable();\r\n\t\r\n\t/**\r\n\t * Indicates if the resource manager has to return <code>null</code> if a resource is missing\r\n\t * @param nullable - <code>true</code> if the resource manager has to return <code>null</code>\r\n\t * \t\t\t\t\t for missing resource, <code>false</code> otherwise\r\n\t */\r\n\tvoid setNullable(boolean nullable);\r\n\r\n\t/**\r\n\t * Gets a set with the locales managed by the resource manager\r\n\t * @return a set of the locales managed by the resource manager\r\n\t */\r\n\tSet<Locale> getManagedLocales();\r\n\r\n\t/**\r\n\t * Gets the locale currently used as default by the resource manager\r\n\t * @return the locale currently used as default by the resource manager\r\n\t */\r\n\tLocale getDefaultLocale();\r\n}", "java.lang.String getUserMessage();", "java.lang.String getLocale();", "private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}", "public String getLocale()\n {\n return (m_taskVector == null || m_taskVector.size() == 0) ?\n DEFAULT_LOCALE :\n taskAt(0).getSourceLanguage();\n }", "@RequestMapping(value = \"/messageresource/localize\", method = RequestMethod.GET)\n\tpublic String localizeMessageResource(Model model, Locale locale) {\n\n\t\tlogger.debug(\"localizeMessageResource()\");\n\n\t\tMessageResourceTranslationBackingBean messageResourceTranslationBackingBean = new MessageResourceTranslationBackingBeanImpl();\n\t\tmessageResourceTranslationBackingBean.setCurrentMode(MessageResource.CurrentMode.LOCALIZE);\n\t\tmodel.addAttribute(\"messageResourceTranslationFormModel\", messageResourceTranslationBackingBean);\n\t\tLong defaultLocale = Long.valueOf(Constants.REFERENCE_LOCALE__EN);\n\t\tsetTranslationDropDownContents(model, locale);\n\t\tsetDropDownContents(model, null, locale);\t\t\n\t\tmodel.addAttribute(\"defaultLocale\", defaultLocale);\n\t\t\n\t\treturn \"messages/messageresource_localize\";\n\n\t}", "public String getStringResource(LocaleResource resource){\n\t\tContext c = ConnectedApp.getContextStatic();\n\t\tswitch(resource){\t\t\n\t\tcase support_contact:\n default:\n\t\t\tint resId= c.getResources().getIdentifier(resource.toString()+\"_\"+ getCountryCode().toLowerCase(Locale.US), \"string\",\n\t\t\t\t\tc.getPackageName());\n\t\t\treturn c.getString(resId);\n\t\t}\n\t\t//return null;\n\t}", "@Override\n public String getMessage() {\n\n String thisMessage = super.getMessage();\n if (thisMessage != null && args != null && args.length > 0) {\n return MessageFormatter.arrayFormat(thisMessage, args).getMessage();\n }\n\n return thisMessage;\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String tooltip()\n\t{\n\t if (contextURI==null)\n\t return \"(no context specified)\";\n\t \n\t if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))\n\t return \"MetaContext (stores data about contexts)\";\n\t \n\t if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))\n\t \treturn \"VoID Context (stores statistics about contexts)\";\n\t \n\t if (type!=null && timestamp!=null)\n\t {\n\t GregorianCalendar c = new GregorianCalendar();\n\t c.setTimeInMillis(timestamp);\n\t \n\t String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime()); \n\t \n\t if (!StringUtil.isNullOrEmpty(date))\n\t date = ValueResolver.resolveSysDate(date);\n\t \n\t String ret = \"Created by \" + type;\n\t if (type.equals(ContextType.USER))\n\t ret += \" '\"\n\t + source.getLocalName()\n\t + \"'\";\n\t else\n\t {\n\t String displaySource = null;\n\t if(source!=null)\n\t {\n\t displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);\n\t if (StringUtil.isNullOrEmpty(displaySource))\n\t displaySource = source.stringValue(); // fallback solution: full URI\n\t }\n\t String displayGroup = null;\n\t if (group!=null)\n\t {\n\t displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);\n\t if (StringUtil.isNullOrEmpty(displayGroup))\n\t displayGroup = group.stringValue(); // fallback solution: full URI\n\t }\n\t \n\t ret += \" (\";\n\t ret += source==null ? \"\" : \"source='\" + displaySource + \"'\";\n\t ret += source!=null && group!=null ? \"/\" : \"\";\n\t ret += group==null ? \"\" : \"group='\" + displayGroup + \"'\";\n\t ret += \")\";\n\t }\n\t ret += \" on \" + date;\n\t if (label!=null)\n\t ret += \" (\" + label.toString() + \")\";\n\t if (state!=null && !state.equals(ContextState.PUBLISHED))\n\t ret += \" (\" + state + \")\"; \n\t return ret;\n\t }\n\t else\n\t return contextURI.stringValue();\n\t}", "@SuppressWarnings(\"deprecation\")\n public String getLocalizedString(String key, Object... parameters) {\n\n // On server, use deprecated I18n.\n if (FMLCommonHandler.instance().getSide() == Side.SERVER)\n return net.minecraft.util.text.translation.I18n.translateToLocalFormatted(key, parameters);\n\n // On client, use the new client-side I18n.\n String str = I18n.format(key, parameters).trim();\n\n if (replacesAmpersandWithSectionSign)\n str = str.replaceAll(\"&\", \"\\u00a7\");\n if (hideFormatErrors)\n str = str.replaceFirst(\"Format error: \", \"\");\n\n return str;\n }", "public String getContextString();", "@RequestMapping(method = RequestMethod.GET, path = \"/hello-world/internationalized\")\t\n\tpublic String helloWorldInternationalized(@RequestHeader(name=\"Accept-Language\", required=false) Locale locale) {\n\t\t\n\t\treturn messageSource.getMessage(\"good.morning.message\",null, locale);\n\t}", "String getString(String bundleKey, String bundleBaseName, Locale locale);", "public static String getMessage(String key, String defaultMsg) {\n try {\n if (messages == null) {\n initializeMessages();\n }\n return messages.getString(key);\n } catch (Throwable t) {\n\n // If there is any problem whatsoever getting the internationalized\n // message, return the default.\n return defaultMsg;\n }\n }", "default B itemCaption(ITEM item, String caption, String messageCode) {\n\t\treturn itemCaption(item, Localizable.builder().message(caption).messageCode(messageCode).build());\n\t}", "private StringBuilder processLocaleMessages(Locale locale) {\n StringBuilder sbTemp = new StringBuilder();\n String[] keys = {\"loading\", \"error_loading\", \"error_field\",\n \"search_len\", \"error_dictionary\", \"error_connection\", \"error_result\"};\n\n if (locale == null) {\n locale = new Locale(\"en\", \"EN\");\n }\n\n logger.finer(\"Processing locale messages for locale: \" + locale);\n\n sbTemp.append(\"var __refDataCCT__infoText = {\");\n for (String key : keys) {\n sbTemp.append(key + \":\\\"\" + messageBoundle.getString(locale, key)\n + \"\\\",\");\n }\n sbTemp.append(\"};\");\n\n return sbTemp;\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"com/i18n/common/application-context.xml\");\r\n\t\tSystem.out.println(\"ApplicationContext class Object type \"+applicationContext.getClass().getName());\r\n\t\tString messageFromApplivationContext = applicationContext.getMessage(\"title\",null,Locale.getDefault());\r\n\t\tSystem.out.println(\"Message From ApplicationContext \"+messageFromApplivationContext);;\r\n\t\t\r\n\t}", "protected MessageInfo buildMessageInfo(NotificationContext ctx) {\n AbstractTemplateBuilder templateBuilder = getTemplateBuilder();\n if (templateBuilder == null) {\n templateBuilder = getTemplateBuilder(ctx);\n }\n MessageInfo massage = templateBuilder.buildMessage(ctx);\n assertNotNull(massage);\n return massage;\n }", "private static String getMessage(String path) { return prefix + ChatColor.translateAlternateColorCodes('&', Essentials.getInstance().getConfig().getString(\"messages.\" + path)); }" ]
[ "0.58664024", "0.5776343", "0.57137394", "0.5630896", "0.54234755", "0.5360815", "0.53270906", "0.53260934", "0.5229385", "0.52176476", "0.5151091", "0.5147772", "0.5144787", "0.51299095", "0.5121038", "0.5087999", "0.5081582", "0.50570345", "0.5044061", "0.50385666", "0.50302494", "0.4991299", "0.49631354", "0.49574485", "0.49297008", "0.49257565", "0.49011028", "0.4897755", "0.48500258", "0.48303694", "0.48188546", "0.48090598", "0.48001832", "0.4792992", "0.47889373", "0.47704783", "0.47548777", "0.47506282", "0.47457188", "0.473895", "0.47112334", "0.47067124", "0.4705941", "0.46951094", "0.46948755", "0.46915516", "0.4690629", "0.4682066", "0.4669463", "0.46556473", "0.46282268", "0.4610954", "0.46108744", "0.46103328", "0.46052054", "0.4595795", "0.45956212", "0.45943484", "0.45846364", "0.4558153", "0.45531544", "0.45525864", "0.45508397", "0.45507824", "0.45473504", "0.45408595", "0.45380318", "0.45366272", "0.4522346", "0.45200557", "0.45192444", "0.45172462", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.4504666", "0.44989443", "0.4494803", "0.44870543", "0.4486501", "0.4483362", "0.44813225", "0.4477148", "0.44734174", "0.44686154", "0.44641438", "0.44632348" ]
0.5289707
8
Use the Builder class for convenient dialog construction
private void createNoMapsAlert(){ AlertDialog.Builder builder = new AlertDialog.Builder(noteEdit); builder.setMessage(R.string.no_maps_alert) .setPositiveButton(R.string.start_google_maps, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { //mDbHelper.updatePositionNotification(mRowId, "true"); // FIRE ZE MISSILES! } }) .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog } }); // Create the AlertDialog object and return it builder.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dialog() {\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public FiltroGirosDialog() {\n \n }", "private Dialogs () {\r\n\t}", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "protected abstract JDialog createDialog();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "public Builder(){\n }", "public static Builder builder(){ return new Builder(); }", "static Builder builder() {\n return new Builder();\n }", "protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }", "private void initDialog() {\n }", "private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }", "private Builder() {}", "private Builder() {\n\t\t}", "private Builder() {\n }", "private Builder() {\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }", "private Builder()\n {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }", "public abstract void initDialog();", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public Builder() {\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public Builder() { }", "private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }", "private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private Construct(Builder builder) {\n super(builder);\n }", "public Builder() {\n\t\t}", "public void buildAndShow(String p_Message, String p_Title, String p_PositiveButton, String p_NegativeButton){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getParameter());\r\n builder.setMessage(p_Message)\r\n .setTitle(p_Title);\r\n builder.setPositiveButton(p_PositiveButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickPositive();\r\n }\r\n });\r\n builder.setNegativeButton(p_NegativeButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickNegative();\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }", "private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder() {\n }", "public Builder() {\n }", "public DialogManager() {\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "private Builder(Context context){ this.context=context;}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.app_help_title);\n builder.setMessage(R.string.app_help_message)\n .setPositiveButton(R.string.app_help_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n return builder.create();\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }", "public ReorganizeDialog() { }", "private Win(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }", "@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "private Contacts(final Builder builder){\n this.mUsername = builder.mUsername;\n this.checked = builder.checked;\n\n }", "private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }", "@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }", "private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private ListSelectionDialogFactory() {\n }" ]
[ "0.70603955", "0.69790804", "0.6929949", "0.692271", "0.6866671", "0.67297786", "0.66794777", "0.6679368", "0.6638751", "0.6617405", "0.6549817", "0.6539394", "0.652435", "0.65164286", "0.6469162", "0.64641607", "0.6451098", "0.6425593", "0.6419002", "0.6419002", "0.63697636", "0.6362946", "0.6348533", "0.63397425", "0.63205034", "0.6315255", "0.62899107", "0.6279066", "0.6255064", "0.62463814", "0.6233295", "0.6221355", "0.6221355", "0.6221355", "0.621799", "0.6214696", "0.6212629", "0.62022954", "0.61911577", "0.61677307", "0.61590385", "0.61547756", "0.61547756", "0.61547756", "0.61547756", "0.6152405", "0.6150748", "0.6126093", "0.6126093", "0.6126093", "0.6108865", "0.6107269", "0.61021024", "0.6101541", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.61011016", "0.60972", "0.6083444", "0.60832953", "0.608137", "0.6077906", "0.60771704", "0.6075108", "0.6075108", "0.606598", "0.6060883", "0.6042717", "0.603757", "0.6034628", "0.6034444", "0.60330576", "0.60299385", "0.60270756", "0.60245895", "0.6022762", "0.6019728", "0.60144365", "0.6000957", "0.6000562", "0.59880924", "0.5983779", "0.59832495", "0.5982931", "0.59794927", "0.59721416", "0.59631276", "0.59615767", "0.5956427", "0.5951335", "0.5944818", "0.59437215", "0.5942802" ]
0.0
-1
mDbHelper.updatePositionNotification(mRowId, "true"); FIRE ZE MISSILES!
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateBannerPositionByPrimaryKey(BannerPosition record) throws SQLException;", "int updateBannerPositionByPrimaryKeySelective(BannerPosition record) throws SQLException;", "@Override\n\tpublic void onUpdate(SQLiteDatabase pDatabase) {\n\t\t\n\t}", "int updateByPrimaryKey(Position record);", "public void update(Context context) {\r\n // Read GuardTracker database helper\r\n GuardTrackerDbHelper dbHelper = new GuardTrackerDbHelper(context);\r\n // Initialize database for write\r\n final SQLiteDatabase db = dbHelper.getWritableDatabase();\r\n // Prepare values to write to database\r\n int latRaw = (int) (mLatitude * GPS_DEGREES_PRECISION);\r\n int lngRaw = (int) (mLongitude * GPS_DEGREES_PRECISION);\r\n int altRaw = (int) (mAltitude * GPS_ALTITUDE_PRECISION);\r\n int hDopRaw = (int) (mHdop * GPS_HDOP_PRECISION);\r\n int timeRaw = (int) mTime.getTime();\r\n ContentValues contentValues = new ContentValues();\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_SESSION, mTrackSessionId == 0 ? null : mTrackSessionId);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LT, latRaw);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_LG, lngRaw);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_TIME, timeRaw);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_ALTITUDE, altRaw);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_NSAT, mSat);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_HDOP, hDopRaw);\r\n contentValues.put(GuardTrackerContract.PositionTable.COLUMN_NAME_FIXED, mFixed);\r\n // Define columns WHERE clause.\r\n String whereClause = GuardTrackerContract.PositionTable._ID + \" LIKE ?\";\r\n // Define values WHERE clause.\r\n String[] whereClauseArgs = {String.valueOf(_id)};\r\n\r\n int rowsUpdated = db.update(GuardTrackerContract.PositionTable.TABLE_NAME, contentValues, whereClause, whereClauseArgs);\r\n assert rowsUpdated == 1;\r\n\r\n db.close();\r\n dbHelper.close();\r\n }", "public static long updateClimbLogData(String routeName, boolean locationIsNew, String locationName, int locationId, int ascentType, int gradeType, int gradeNumber, long date, int firstAscent, int gpsCode, double latitude, double longitude, int rowID, Context mContext) {\n\n // Gets the database in write mode\n //Create handler to connect to SQLite DB\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n // Load existing location data\n Bundle climbDataBundle = EditClimbLoadEntry(rowID, mContext);\n int existingLocationId = climbDataBundle.getInt(\"outputLocationId\");\n Bundle locationDataBundle = LocationLoadEntry(locationId, mContext);\n int locationClimbCountCurrent = locationDataBundle.getInt(\"outputClimbCount\");\n int locationIsGpsCurrent = locationDataBundle.getInt(\"outputIsGps\");\n String locationNameCurrent = locationDataBundle.getString(\"outputLocationName\");\n\n //Check if updated location is the same as old\n if (existingLocationId == locationId) {\n Log.i(\"DBRW\", \"existingLocationId == locationId = true\");\n // check if existing has no GPS and whether GPS is being saved\n if (locationIsGpsCurrent == DatabaseContract.IS_GPS_FALSE && gpsCode == DatabaseContract.IS_GPS_TRUE) {\n Log.i(\"DBRW\", \"locationIsGpsCurrent == DatabaseContract.IS_GPS_FALSE && gpsCode == DatabaseContract.IS_GPS_TRUE = true\");\n // If \"yes\", update location data\n //TODO: Ask user if they even want to store the new gps data\n ContentValues updatedLocationValues = new ContentValues();\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n updatedLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n String whereClause = DatabaseContract.LocationListEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(locationId)};\n database.update(DatabaseContract.LocationListEntry.TABLE_NAME, updatedLocationValues, whereClause, whereValue);\n\n } else if (locationIsGpsCurrent == DatabaseContract.IS_GPS_TRUE && gpsCode == DatabaseContract.IS_GPS_TRUE) {\n // if \"no\" warn user that will nto overwrite existing saved GPS data\n //TODO: give the user a choice about whether they want to overwrite the data or not\n Log.i(\"DBRW\", \"locationIsGpsCurrent == DatabaseContract.IS_GPS_TRUE && gpsCode == DatabaseContract.IS_GPS_TRUE = true\");\n Toast.makeText(mContext, \"GPS data already stored will not be overwritten.\", Toast.LENGTH_SHORT).show();\n }\n } else if (locationIsNew) {\n // if location is a new location, create a new location in the DB\n Log.i(\"DBRW\", \"locationIsNew = true\");\n ContentValues newLocationValues = new ContentValues(); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_LOCATIONNAME, locationName); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_CLIMBCOUNT, 1); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_ISGPS, gpsCode); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLATITUDE, latitude); // Updated\n newLocationValues.put(DatabaseContract.LocationListEntry.COLUMN_GPSLONGITUDE, longitude); // Updated\n locationId = (int) database.insert(DatabaseContract.LocationListEntry.TABLE_NAME, null, newLocationValues);\n } else if (!locationIsNew && existingLocationId != locationId) {\n // if location is neither new, nor the old (i.e. picked a different one from the list\n incrementLocationClimbCount(existingLocationId, -1, mContext);\n incrementLocationClimbCount(locationId, 1, mContext);\n }\n\n // Create a ContentValues object where column names are the keys,\n ContentValues values = new ContentValues();\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_DATE, date);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_NAME, routeName);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADETYPECODE, gradeType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_GRADECODE, gradeNumber);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ASCENTTYPECODE, ascentType);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_LOCATION, locationId);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_FIRSTASCENTCODE, firstAscent);\n values.put(DatabaseContract.ClimbLogEntry.COLUMN_ISCLIMB, DatabaseContract.IS_CLIMB);\n\n String whereClauseFive = DatabaseContract.ClimbLogEntry._ID + \"=?\";\n String[] whereValueFive = {String.valueOf(rowID)};\n\n long newRowId = database.update(DatabaseContract.ClimbLogEntry.TABLE_NAME, values, whereClauseFive, whereValueFive);\n database.close();\n return newRowId;\n\n }", "public void updateAdapter() {\n// \tContentValues values = new ContentValues(); \n// \tvalues.put(\"note_title\", \"Title of Note 4.4_\" + Math.random());\n// \tString whereClause = \"note_id = ?\";\n// \tString[] whereArgs = new String[] { \"4\" };\n// \t\t\n// \tthis.loader.update(DBConstants.NOTES_TABLE, values, whereClause, whereArgs);\n// dba = new DBAdapter(getActivity());\n// dba.open();\n// \tCursor notes = dba.getAllNotes();\n// \t((SimpleCursorAdapter) notesAdapter).changeCursor(notes);\n//\t\t((SimpleCursorAdapter) lvNotes.getAdapter()).notifyDataSetChanged();\n//\t\tdba.close();\n }", "@Override\n public void updateDatabase() {\n }", "@Override\n\tpublic int updateByPrimaryKey(Cell record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKey(QtActivitytype record);", "@Override\n\tpublic void updatePosition() {\n\t\t\n\t}", "public void mo29429a(DatabaseHelper databaseHelper) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Refreshing MessageCenter#\");\n sb.append(hashCode());\n Log.d(\"MessageCenter\", sb.toString());\n this.f9297f = databaseHelper;\n this.f9294c = new C3460d(databaseHelper);\n this.f9293b = new C3457c(databaseHelper);\n }", "int updateByPrimaryKey(OrderPreferential record) throws SQLException;", "int updateByPrimaryKey(NjOrderAttachment record);", "private void updateDB() {\n }", "int updateByPrimaryKey(Miss_control_log record);", "int updateByPrimaryKey(UserTips record);", "int updateByPrimaryKey(ChronicCheck record);", "int updateByPrimaryKey(GirlInfo record);", "int updateByPrimaryKey(NjOrderWork2 record);", "int updateByPrimaryKey(WechatDemo record);", "int updateByPrimaryKey(Notifiction record);", "public void migrateFromLegacyIfNeeded(android.database.sqlite.SQLiteDatabase r12) {\n /*\n r11 = this;\n android.content.Context r0 = r11.mContext\n android.content.SharedPreferences r0 = android.preference.PreferenceManager.getDefaultSharedPreferences(r0)\n java.lang.String r1 = \"legacy_data_migration\"\n r2 = 0\n boolean r3 = r0.getBoolean(r1, r2)\n if (r3 == 0) goto L_0x0015\n java.lang.String r11 = \"Data migration was complete already\"\n log(r11)\n return\n L_0x0015:\n r3 = 1\n android.content.Context r11 = r11.mContext // Catch:{ Exception -> 0x00d3 }\n android.content.ContentResolver r11 = r11.getContentResolver() // Catch:{ Exception -> 0x00d3 }\n java.lang.String r4 = \"cellbroadcast-legacy\"\n android.content.ContentProviderClient r11 = r11.acquireContentProviderClient(r4) // Catch:{ Exception -> 0x00d3 }\n if (r11 != 0) goto L_0x003a\n java.lang.String r12 = \"No legacy provider available for migration\"\n log(r12) // Catch:{ all -> 0x00c5 }\n if (r11 == 0) goto L_0x002e\n r11.close() // Catch:{ Exception -> 0x00d3 }\n L_0x002e:\n android.content.SharedPreferences$Editor r11 = r0.edit()\n android.content.SharedPreferences$Editor r11 = r11.putBoolean(r1, r3)\n r11.commit()\n return\n L_0x003a:\n r12.beginTransaction() // Catch:{ all -> 0x00c5 }\n java.lang.String r4 = \"Starting migration from legacy provider\"\n log(r4) // Catch:{ all -> 0x00c5 }\n android.net.Uri r6 = android.provider.Telephony.CellBroadcasts.AUTHORITY_LEGACY_URI // Catch:{ RemoteException -> 0x00ba }\n java.lang.String[] r7 = QUERY_COLUMNS // Catch:{ RemoteException -> 0x00ba }\n r8 = 0\n r9 = 0\n r10 = 0\n r5 = r11\n android.database.Cursor r4 = r5.query(r6, r7, r8, r9, r10) // Catch:{ RemoteException -> 0x00ba }\n android.content.ContentValues r5 = new android.content.ContentValues // Catch:{ all -> 0x00ac }\n r5.<init>() // Catch:{ all -> 0x00ac }\n L_0x0053:\n boolean r6 = r4.moveToNext() // Catch:{ all -> 0x00ac }\n if (r6 == 0) goto L_0x0096\n r5.clear() // Catch:{ all -> 0x00ac }\n java.lang.String[] r6 = QUERY_COLUMNS // Catch:{ all -> 0x00ac }\n int r7 = r6.length // Catch:{ all -> 0x00ac }\n r8 = r2\n L_0x0060:\n if (r8 >= r7) goto L_0x006a\n r9 = r6[r8] // Catch:{ all -> 0x00ac }\n copyFromCursorToContentValues(r9, r4, r5) // Catch:{ all -> 0x00ac }\n int r8 = r8 + 1\n goto L_0x0060\n L_0x006a:\n java.lang.String r6 = \"_id\"\n r5.remove(r6) // Catch:{ all -> 0x00ac }\n java.lang.String r6 = \"broadcasts\"\n r7 = 0\n long r6 = r12.insert(r6, r7, r5) // Catch:{ all -> 0x00ac }\n r8 = -1\n int r6 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r6 != 0) goto L_0x0053\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00ac }\n r6.<init>() // Catch:{ all -> 0x00ac }\n java.lang.String r7 = \"Failed to insert \"\n r6.append(r7) // Catch:{ all -> 0x00ac }\n r6.append(r5) // Catch:{ all -> 0x00ac }\n java.lang.String r7 = \"; continuing\"\n r6.append(r7) // Catch:{ all -> 0x00ac }\n java.lang.String r6 = r6.toString() // Catch:{ all -> 0x00ac }\n loge(r6) // Catch:{ all -> 0x00ac }\n goto L_0x0053\n L_0x0096:\n r12.setTransactionSuccessful() // Catch:{ all -> 0x00ac }\n java.lang.String r2 = \"Finished migration from legacy provider\"\n log(r2) // Catch:{ all -> 0x00ac }\n if (r4 == 0) goto L_0x00a3\n r4.close() // Catch:{ RemoteException -> 0x00ba }\n L_0x00a3:\n r12.endTransaction() // Catch:{ all -> 0x00c5 }\n if (r11 == 0) goto L_0x00e8\n r11.close() // Catch:{ Exception -> 0x00d3 }\n goto L_0x00e8\n L_0x00ac:\n r2 = move-exception\n if (r4 == 0) goto L_0x00b7\n r4.close() // Catch:{ all -> 0x00b3 }\n goto L_0x00b7\n L_0x00b3:\n r4 = move-exception\n r2.addSuppressed(r4) // Catch:{ RemoteException -> 0x00ba }\n L_0x00b7:\n throw r2 // Catch:{ RemoteException -> 0x00ba }\n L_0x00b8:\n r2 = move-exception\n goto L_0x00c1\n L_0x00ba:\n r2 = move-exception\n java.lang.IllegalStateException r4 = new java.lang.IllegalStateException // Catch:{ all -> 0x00b8 }\n r4.<init>(r2) // Catch:{ all -> 0x00b8 }\n throw r4 // Catch:{ all -> 0x00b8 }\n L_0x00c1:\n r12.endTransaction() // Catch:{ all -> 0x00c5 }\n throw r2 // Catch:{ all -> 0x00c5 }\n L_0x00c5:\n r12 = move-exception\n if (r11 == 0) goto L_0x00d0\n r11.close() // Catch:{ all -> 0x00cc }\n goto L_0x00d0\n L_0x00cc:\n r11 = move-exception\n r12.addSuppressed(r11) // Catch:{ Exception -> 0x00d3 }\n L_0x00d0:\n throw r12 // Catch:{ Exception -> 0x00d3 }\n L_0x00d1:\n r11 = move-exception\n goto L_0x00f4\n L_0x00d3:\n r11 = move-exception\n java.lang.StringBuilder r12 = new java.lang.StringBuilder // Catch:{ all -> 0x00d1 }\n r12.<init>() // Catch:{ all -> 0x00d1 }\n java.lang.String r2 = \"Failed migration from legacy provider: \"\n r12.append(r2) // Catch:{ all -> 0x00d1 }\n r12.append(r11) // Catch:{ all -> 0x00d1 }\n java.lang.String r11 = r12.toString() // Catch:{ all -> 0x00d1 }\n loge(r11) // Catch:{ all -> 0x00d1 }\n L_0x00e8:\n android.content.SharedPreferences$Editor r11 = r0.edit()\n android.content.SharedPreferences$Editor r11 = r11.putBoolean(r1, r3)\n r11.commit()\n return\n L_0x00f4:\n android.content.SharedPreferences$Editor r12 = r0.edit()\n android.content.SharedPreferences$Editor r12 = r12.putBoolean(r1, r3)\n r12.commit()\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.cellbroadcastreceiver.CellBroadcastDatabaseHelper.migrateFromLegacyIfNeeded(android.database.sqlite.SQLiteDatabase):void\");\n }", "int updateByPrimaryKey(SysNotice record);", "int updateByPrimaryKey(Assist_table record);", "int updateByPrimaryKey(TDwBzzxBzflb record);", "int updateByPrimaryKey(MenuInfo record);", "int updateByPrimaryKey(HelpInfo record);", "int updateByPrimaryKey(Trueorfalse record);", "int updateByPrimaryKey(R_order record);", "@Override\n\tpublic int updateByPrimaryKey(Checkingin record) {\n\t\treturn 0;\n\t}", "int updateByPrimaryKey(WxNews record);", "int updateByPrimaryKey(HotspotLog record);", "int updateBannerPositionByExample(BannerPosition record, BannerPositionExample example) throws SQLException;", "public void updateAssociates(String uid, String modified_by, String modiedCounter, String strname, String strmob_no, String selectedPhoneType, String selectedIsd_codeType, String strEmail, String selectedSpeciality, String selectedAssociateType, String straddress, String strcity, String selectedState, String strpin, String strdistrict, String dateTimeddmmyyyy, String flag, String nameTitle, String contactForPatient, String selectedIsd_code_altType, String selectedcontactForPatientType) throws ClirNetAppException {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(MODIFIED_BY, modified_by);\n values.put(PHONE_NUMBER, strmob_no);\n values.put(KEY_NAME, strname);\n values.put(PHONE_TYPE, selectedPhoneType);\n values.put(ISD_CODE, selectedIsd_codeType);\n values.put(KEY_EMAIL, strEmail);\n values.put(SPECIALTY, selectedSpeciality);\n values.put(ASSOCIATE_TYPE, selectedAssociateType);\n values.put(ASSOCIATE_ADDRESS, straddress);\n values.put(CITY_TOWN, strcity);\n values.put(ASSOCIATE_STATE, selectedState);\n values.put(PIN_CODE, strpin);\n values.put(DISTRICT, strdistrict);\n values.put(MODIFIED_ON, dateTimeddmmyyyy);\n values.put(FLAG, flag);\n values.put(MODIFIED_COUNTER, modiedCounter);\n values.put(NAME_TITLE, nameTitle);\n values.put(CONTACT_FOR_PATIENT, contactForPatient);\n values.put(\"selectedIsd_code_altType\", selectedIsd_code_altType);\n values.put(\"selectedcontactForPatientType\", selectedcontactForPatientType);\n\n // Inserting Row\n db.update(TABLE_ASSOCIATE_MASTER, values, KEY_ID + \"=\" + uid, null);\n\n } catch (Exception e) {\n throw new ClirNetAppException(\"Error inserting data\");\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }", "int updateByPrimaryKey(Notice record);", "@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}", "int updateByPrimaryKey(ClOrderInfo record);", "int updateByPrimaryKey(JmfTaskMqRef record);", "private void handleUpdateDB(ContentValues contentValues) {\n int intValue = contentValues.getAsInteger(\"key\").intValue();\n try {\n ContentResolver contentResolver = this.mContext.getContentResolver();\n if (contentResolver.update(KeyguardNotification.URI, contentValues, \"key\" + \"=\" + intValue, null) > 0) {\n contentResolver.notifyChange(KeyguardNotification.URI, null);\n } else {\n handleInsertDB(contentValues);\n }\n } catch (Exception e) {\n Log.e(\"KeyguardNotifHelper\", \"handleUpdateDB\", e);\n }\n }", "int updateByPrimaryKey(PineAlarm record);", "int updateByPrimaryKey(FunctionInfo record);", "int updateByPrimaryKey(Online record);", "int updateByPrimaryKey(YzStiveExplosion record);", "int updateByPrimaryKey(Enfermedad record);", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "int updateByPrimaryKey(AnnouncementDO record);", "int updateByPrimaryKey(EbayLmsLog record);", "public MarkerData updateDBMarker(MarkerData newObj) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n MarkerData oldObj = getMarker(newObj.getMarkerId());\n\n\t\tContentValues markerVals = new ContentValues();\n\n // Fill the markerVals with only updated entities\n if (oldObj.getName().equals(newObj.getName())) {\n markerVals.put(\"marker_name\", newObj.getName());\n }\n if (oldObj.getDescription().equals(newObj.getDescription())) {\n markerVals.put(\"marker_description\", newObj.getDescription());\n }\n if (oldObj.getLat() != newObj.getLat()) {\n markerVals.put(\"marker_lat\", newObj.getLat());\n }\n if (oldObj.getLong() != newObj.getLong()) {\n markerVals.put(\"marker_long\", newObj.getLong());\n }\n if (oldObj.getMarkerType() != newObj.getMarkerType()) {\n markerVals.put(\"marker_type\", newObj.getMarkerType().getValue());\n }\n if (oldObj.getMapId() != newObj.getMapId()) {\n markerVals.put(\"map_id\", newObj.getMapId());\n }\n if (oldObj.getColor() != newObj.getColor()) {\n markerVals.put(\"marker_color\", newObj.getColor());\n }\n\n String[] args = { \"\"+newObj.getMarkerId() };\n\t\tint rowsAffected = database.update(\"marker\", markerVals, \"marker_id=?\", args);\n\n\t\tCursor c = database\n\t\t\t\t.rawQuery(\n\t\t\t\t\t\t\"SELECT marker_id, marker_name, marker_description, marker_lat, marker_long, marker_type, marker_color, map_id\"\n\t\t\t\t\t\t\t\t+ \" FROM marker\" + \" WHERE marker_id=?\", args);\n\t\tc.moveToFirst();\n\n if (rowsAffected > 1) {\n Log.e(\"AlterEgo::Database::MarkerUpdate\", \"There are many rows with the same marker id. This is a critical error; The database is BONED.\");\n }\n\n return new MarkerData(\n c.getInt(c.getColumnIndex(\"map_id\")),\n c.getInt(c.getColumnIndex(\"marker_id\")),\n c.getString(c.getColumnIndex(\"marker_name\")),\n c.getString(c.getColumnIndex(\"marker_description\")),\n MARKERTYPE.values()[c.getInt(c.getColumnIndex(\"marker_type\"))],\n c.getDouble(c.getColumnIndex(\"marker_lat\")),\n c.getDouble(c.getColumnIndex(\"marker_long\")),\n c.getFloat(c.getColumnIndex(\"marker_color\"))\n );\n }", "int updateByPrimaryKeySelective(QtActivitytype record);", "int updateByPrimaryKey(SmsSendAndCheckPo record);", "private void m145784n() {\n nativeSetUpdateNotification(this.f119482o, this.f119477j.f119584j, this.f119477j.f119585k);\n }", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Override\r\n\tpublic void update(GameContainer gc, int detla) throws SlickException\r\n\t{\n\t\t\r\n\t}", "int updateByPrimaryKey(TbComEqpModel record);", "int updateByPrimaryKey(ItemStockDO record);", "int updateByPrimaryKey(ItemStockDO record);", "int updateByPrimaryKey(Shareholder record);", "public static long updateWorkoutLogData(long date, int workoutTypeCode, int workoutCode, double weight, int setCount, int repCount, int repDuration, int restDuration, int gradeTypeCode, int gradeCode, int moveCount, int holdType, int wallAngle, int rowID, int isComplete, Context mContext) {\n // Gets the database in write mode\n //Create handler to connect to SQLite DB\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n // Create a ContentValues object where column names are the keys,\n ContentValues values = new ContentValues();\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_DATE, date); // long\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_WORKOUTTYPECODE, workoutTypeCode); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_WORKOUTCODE, workoutCode); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_ISCLIMB, DatabaseContract.IS_WORKOUT); // int = 0\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_WEIGHT, weight); // long\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_SETCOUNT, setCount); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_REPCOUNTPERSET, repCount); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_REPDURATIONPERSET, repDuration); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_RESTDURATIONPERSET, restDuration); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_GRADETYPECODE, gradeTypeCode); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_MOVECOUNT, moveCount); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_GRADECODE, gradeCode); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_HOLDTYPE, holdType); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_WALLANGLE, wallAngle); // int\n values.put(DatabaseContract.WorkoutLogEntry.COLUMN_ISCOMPLETE, isComplete); // int\n\n String whereClauseFive = DatabaseContract.WorkoutLogEntry._ID + \"=?\";\n String[] whereValueFive = {String.valueOf(rowID)};\n\n long newRowId = database.update(DatabaseContract.WorkoutLogEntry.TABLE_NAME, values, whereClauseFive, whereValueFive);\n database.close();\n return newRowId;\n\n }", "int updateByPrimaryKey(ImMyFriend record);", "public void updateBannerClickedDataFlag(String bid, String flag) {\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_BANNER_CLICKED, values, KEY_ID + \"=\" + bid, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n //Log.d(\"updated\", \"banner flag data modified into sqlite: \" + id);\n }", "@Override\n\tpublic boolean update(Message entity) throws SQLException {\n\t\treturn false;\n\t}", "int updateByPrimaryKey(ExchangeOrder record);", "int updateByPrimaryKey(UsrMmenus record);", "int updateByPrimaryKey(TbaDeliveryinfo record);", "int updateByPrimaryKey(AfterServiceSheet record);", "int updateByPrimaryKey(ComplainNoteDO record);", "int updateByPrimaryKey(FactRoomLog record);", "int updateByPrimaryKey(MsgContent record);", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "int updateByPrimaryKeySelective(NjOrderAttachment record);", "@Override\n\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\tSQLiteDatabase db = helper.getWritableDatabase();\n\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\tvalues.put(Globle.TITLE,et_title.getText().toString());\n\t\t\t\tvalues.put(Globle.CONTENT,et_content.getText().toString());\n\t\t\t\tvalues.put(Globle.SET_ITEM,set_date);\n\t\t\t\tvalues.put(Globle.ATTACK_TIEM,date);\n\t\t\t\tString where=Globle._ID+\"=\"+_id;\n\t\t\t\tint i=DBUtil.update(db, Globle.TABLE_NAME,values, where);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(i>=1){\n\t\t\t\t\tToast.makeText(Update_Activity.this,\"修改成功 \",Toast.LENGTH_SHORT).show();\n//\t\t\t\t\t\n\t\t\t\t\tAlarmManager alarmManager=(AlarmManager) getSystemService(ALARM_SERVICE);\n\t\t\t\t\tIntent intent=new Intent(Update_Activity.this,Ring_Activity.class);\n\t\t\t\t\tintent.putExtra(\"text\",et_content.getText().toString());\n\t\t\t\t\tcount++;\n\t\t\t\t\tSystem.out.println(\"\"+count);\n\t\t\t\t\tPendingIntent p_intent=PendingIntent.getActivity(Update_Activity.this,count,intent,PendingIntent.FLAG_UPDATE_CURRENT);\n\t\t\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),p_intent);\n\t\t\t\t\tIntent intent1=new Intent(Update_Activity.this,MainActivity.class);\n\t\t\t\t\tstartActivity(intent1);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(Update_Activity.this,\"修改失败\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\tIntent intent1=new Intent(Update_Activity.this,MainActivity.class);\n\t\t\t\t\tstartActivity(intent1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}", "public void updateBannerDisplayDataFlag(String banner_id, String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_BANNER_DISPLAY, values, KEY_ID + \"=\" + banner_id, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n }", "int updateByPrimaryKey(TbFreightTemplate record);", "int updateByPrimaryKey(Orderall record);", "protected void onUpdate() {\r\n\r\n\t}", "int updateByPrimaryKey(HuoDong record);", "int updateByPrimaryKey(Tourst record);", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Override\n public void onCancelled(DatabaseError error) {\n\n }", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "int updateByPrimaryKey(ParseTableLog record);", "int updateByPrimaryKey(UmsMenu record);", "@Override\r\n\tpublic int updateByPrimaryKey(Remark record) {\n\t\treturn 0;\r\n\t}", "public boolean seenNotification(int notificationId) throws SQLException{\n try{\n ps = connection.prepareStatement(\"UPDATE notification SET seen=1 WHERE id=?\");\n ps.setInt(1,notificationId);\n rs = ps.executeQuery();\n int result = ps.executeUpdate();\n return result==1;\n }\n finally{\n Db.close(rs);\n Db.close(ps);\n// Db.close(connection);\n }\n }", "@Override\n\tpublic int updateByPrimaryKey(GasRemind record) {\n\t\treturn 0;\n\t}", "@Override\n public void sure() {\n onOrderUpdate();\n orderListAdpater.notifyDataSetChanged();\n }", "@Override\n public void sure() {\n onOrderUpdate();\n orderListAdpater.notifyDataSetChanged();\n }", "int updateByPrimaryKey(NewsInfo record);", "int updateByPrimaryKey(TCpySpouse record);", "int updateByPrimaryKey(BusnessOrder record);", "int updateByPrimaryKey(TestActivityEntity record);", "int updateByPrimaryKey(Alert record);", "private final void updateEvent(Feed feed) {\n\t ContentValues values = new ContentValues();\n\t // values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, System.currentTimeMillis());\n\n\t // This puts the desired notes text into the map.\n\t values.put(FeedingEventsContract.Feeds.column_timeStamp, feed.ts.toString());\n\t values.put(FeedingEventsContract.Feeds.column_leftDuration, Integer.toString(feed.lDuration) );\n\t values.put(FeedingEventsContract.Feeds.column_rightDuration, Integer.toString(feed.rDuration));\n\t values.put(FeedingEventsContract.Feeds.column_bottleFeed, Double.toString(feed.BFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_expressFeed, Double.toString(feed.EFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_note, feed.note);\n\t \n\t /*\n\t * Updates the provider with the new values in the map. The ListView is updated\n\t * automatically. The provider sets this up by setting the notification URI for\n\t * query Cursor objects to the incoming URI. The content resolver is thus\n\t * automatically notified when the Cursor for the URI changes, and the UI is\n\t * updated.\n\t * Note: This is being done on the UI thread. It will block the thread until the\n\t * update completes. In a sample app, going against a simple provider based on a\n\t * local database, the block will be momentary, but in a real app you should use\n\t * android.content.AsyncQueryHandler or android.os.AsyncTask.\n\t */\n\t getContentResolver().update(\n\t mUri, // The URI for the record to update.\n\t values, // The map of column names and new values to apply to them.\n\t null, // No selection criteria are used, so no where columns are necessary.\n\t null // No where columns are used, so no where arguments are necessary.\n\t );\n\n\n\t }", "private void m14054e() {\n SQLiteDatabase openOrCreateDatabase;\n SQLiteDatabase sQLiteDatabase = null;\n boolean z = true;\n try {\n openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(f18052m, null);\n } catch (Exception e) {\n openOrCreateDatabase = sQLiteDatabase;\n }\n if (openOrCreateDatabase != null) {\n try {\n long queryNumEntries = DatabaseUtils.queryNumEntries(openOrCreateDatabase, \"wof\");\n long queryNumEntries2 = DatabaseUtils.queryNumEntries(openOrCreateDatabase, \"bdcltb09\");\n boolean z2 = queryNumEntries > BNOffScreenParams.MIN_ENTER_INTERVAL;\n if (queryNumEntries2 <= BNOffScreenParams.MIN_ENTER_INTERVAL) {\n z = false;\n }\n openOrCreateDatabase.close();\n if (z2 || z) {\n new C3333a().execute(new Boolean[]{Boolean.valueOf(z2), Boolean.valueOf(z)});\n }\n } catch (Exception e2) {\n }\n }\n }", "int updateByPrimaryKey(Massage record);", "int updateByPrimaryKeySelective(SysNotice record);", "int updateByPrimaryKey(EventDetail record);", "@Test\n\tpublic void testSetPositionWithoutUpdate() {\n\t}", "int updateByPrimaryKey(NjProductTaticsRelation record);" ]
[ "0.65169084", "0.62192595", "0.6153156", "0.61242616", "0.61058307", "0.6029884", "0.5971774", "0.59693265", "0.5957733", "0.5895621", "0.5847623", "0.58197683", "0.5807404", "0.57919914", "0.57770175", "0.5770257", "0.57284504", "0.57236487", "0.5716749", "0.5712633", "0.57116973", "0.57014626", "0.5684914", "0.56811285", "0.5678344", "0.5663935", "0.56445175", "0.5641501", "0.5640063", "0.56382006", "0.5631759", "0.56303364", "0.56277764", "0.562604", "0.5613672", "0.56059265", "0.5592395", "0.55857676", "0.55721194", "0.55712223", "0.5555434", "0.5553253", "0.55465794", "0.5534092", "0.55302274", "0.55281854", "0.55221295", "0.5519135", "0.5492555", "0.54917395", "0.5491658", "0.5486297", "0.5481627", "0.5481627", "0.54780626", "0.54778594", "0.54673415", "0.54673415", "0.5456475", "0.5456171", "0.5454674", "0.5448675", "0.5447097", "0.54470056", "0.54437387", "0.5443582", "0.5440957", "0.54350334", "0.54348725", "0.54326946", "0.54321253", "0.54319715", "0.5431637", "0.5431607", "0.54292697", "0.5424822", "0.5421596", "0.5420614", "0.5420492", "0.54174155", "0.54174155", "0.54174006", "0.54156446", "0.5415562", "0.5413492", "0.5410116", "0.54089785", "0.54082036", "0.54082036", "0.5408058", "0.5408007", "0.54056585", "0.5405601", "0.5403503", "0.53994304", "0.53829366", "0.53808784", "0.5374297", "0.5373402", "0.53691393", "0.5364368" ]
0.0
-1
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "private void cancel() {\n\t\tfinish();\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public boolean cancel();", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void cancel()\n\t{\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void cancel(){\n cancelled = true;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onCancel();", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}" ]
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.7785849", "0.7781991", "0.7781991", "0.7781991", "0.7775402", "0.7774749", "0.7774749", "0.77683115", "0.77681756", "0.77668333", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7759365", "0.7731582", "0.7724297", "0.7720925", "0.7720103", "0.76955104", "0.7678485", "0.7654357", "0.7654357", "0.764555", "0.76443124", "0.7634409", "0.7633464", "0.7621916", "0.7621163", "0.7603697", "0.7603203", "0.7600248", "0.7598492", "0.7591874", "0.7591874", "0.7591339", "0.7590508", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7588744", "0.75886345", "0.7560806", "0.7550736", "0.7540379", "0.7539729", "0.7539729", "0.7534361", "0.7531358", "0.75296545", "0.7524118", "0.7523424", "0.75232726", "0.752038", "0.75199866", "0.7512266", "0.75083005", "0.7500499", "0.7497863", "0.7495073", "0.7493796", "0.7492944", "0.74797153", "0.74698204", "0.7465173", "0.74630636", "0.7460028", "0.7460028", "0.7458466", "0.7455514", "0.74514836", "0.7442903", "0.74414104", "0.7436282", "0.7436282", "0.74358857", "0.74198526" ]
0.0
-1
notify data changed (section, row) in java
@Override public UDBaseRecyclerView reload(Integer section, Integer row) { restore(); final LVRecyclerView recyclerView = getLVRecyclerView(); if (recyclerView != null) { final RecyclerView.Adapter adapter = recyclerView.getLVAdapter(); if (adapter != null) { int diffSectionCount = getDiffSectionCount(); if (section == null || diffSectionCount != 0) {//如果 section无值,或者section数量变动则更新所有 refreshState(recyclerView); adapter.notifyDataSetChanged(); } else {//如果传了section,row,则表示要更新部分数据 int diffTotalCount = getDiffTotalCount();//total count diff boolean isChanged = diffTotalCount == 0;//数据变更,数量未变更 boolean isInserted = diffTotalCount > 0;//数量增加 boolean isRemoved = diffTotalCount < 0;//数量减少 if (row == null) {//row is null, notify whole section int start = getPositionBySectionAndRow(section, 0); int currentRowCount = getRowCount(section); if (isChanged) {//更新整个section,count不变,数据变 refreshState(recyclerView); adapter.notifyItemRangeChanged(start, currentRowCount); } else if (isInserted) {//更新整个section,count增加 int newRowCount = getRawRowCount(section); int count = Math.abs(newRowCount - currentRowCount);//新增count refreshState(recyclerView); adapter.notifyItemRangeInserted(start, count); } else if (isRemoved) {//更新整个section,count减少 int newRowCount = getRawRowCount(section); int count = Math.abs(newRowCount - currentRowCount);//新增count refreshState(recyclerView); adapter.notifyItemRangeRemoved(start, count); } } else {//row not null, notify row int pos = getPositionBySectionAndRow(section, row); refreshState(recyclerView); if (isChanged) {//更新某个元素 adapter.notifyItemChanged(pos); } else if (isInserted) {//插入一个元素 adapter.notifyItemInserted(pos); } else if (isRemoved) {//减少一个元素 adapter.notifyItemRemoved(pos); } } } } } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void allRowsChanged();", "@Override\n\t\t\t\tpublic void allRowsChanged() {\n\n\t\t\t\t}", "public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}", "public void onDataChanged();", "void onDataChanged();", "public void updateDataCell();", "public void onDataChanged(){}", "public void fireTableRowsUpdated(int firstRow, int lastRow);", "public void dataUpdateEvent();", "public void notifyChangementJoueurs();", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow, int column) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow) {\n\n\t\t\t\t}", "@Override\n public void onDataChanged() {\n\n }", "public abstract void rowsUpdated(int firstRow, int endRow, int column);", "public void update() {\r\n\t\tif (firstRow > maxRows) {\r\n\t\t\tfirstRow = maxRows;\r\n\t\t\tfromRowField.setText(firstRow + \"\");\r\n\t\t}\r\n\t\tif (lastRow > maxRows) {\r\n\t\t\tlastRow = maxRows;\r\n\t\t\ttoRowField.setText(lastRow + \"\");\r\n\t\t}\r\n\t\tif (firstColumn > maxColumns) {\r\n\t\t\tfirstColumn = maxColumns;\r\n\t\t\tfromColumnField.setText(firstColumn + \"\");\r\n\t\t}\r\n\t\tif (lastColumn > maxColumns) {\r\n\t\t\tlastColumn = maxColumns;\r\n\t\t\ttoColumnField.setText(lastColumn + \"\");\r\n\t\t}\r\n\r\n\t\tIterator i = listeners.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\t((DataControlListener) i.next()).update(firstRow, lastRow, firstColumn, lastColumn, fractionDigits);\r\n\t\t}\r\n\t}", "@Override\n public void onDataChanged() {\n }", "@Override\n public void onDataChanged() {\n }", "void notifyPrisonerDataChanged();", "public void dataChanged(DataChangeEvent e) {\n\t\t\t}", "public void awaleChanged(Awale awale, short eventType, short row,\r\n\t short column);", "public void onDataChanged(IData data) {\r\n\t this.data = data;\r\n\t repaint();\r\n\t}", "public abstract void rowsUpdated(int firstRow, int endRow);", "@Override\n protected void onDataChanged() {\n }", "public void updateData() {}", "public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) {\n }", "@Test\r\n public void testRowNotification() {\r\n final ObservableList<Row> rows = FXCollections\r\n .observableArrayList(new Callback<Row, Observable[]>() {\r\n\r\n @Override\r\n public Observable[] call(Row item) {\r\n return new Observable[] { item.nameProperty() };\r\n }\r\n });\r\n\r\n rows.addListener(new ListChangeListener<Row>() {\r\n\r\n @Override\r\n public void onChanged(\r\n ListChangeListener.Change<? extends Row> change) {\r\n while (change.next()) {\r\n \r\n if (change.wasUpdated()) {\r\n// System.out.println(\"\" + change.getList().get(change.getFrom()));\r\n \r\n }\r\n }\r\n change.reset();\r\n// FXUtils.prettyPrint(change);\r\n }\r\n });\r\n\r\n Row r = new Row(\"Dummy\");\r\n\r\n rows.add(r); // -> onChanged\r\n\r\n r.setName(\"Hello\"); // -> onChanged\r\n r.setName(\"World\"); // -> NO onChanged ???\r\n r.setName(\"Hi\"); // -> NO onChanged ???\r\n\r\n }", "protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}", "@Override\n\tpublic void onDataChanged()\n\t{\n\t\tfor (DataChangedCallbacks listener : this.dataChangedListeners)\n\t\t{\n\t\t\tlistener.onDataChanged();\n\t\t}\n\t}", "public interface ITableModifiedListener {\n\t\t\n\t\t/**Called whenever the table content is modified. \n\t\t * @param content of the table.\n\t\t */\n\t\tpublic void modified(String[][] content);\n\t}", "@Override\n\tpublic void onDataChanged(long timestamp, int msg) {\n\t\tif(msg==AgentMessage.ERROR.getCode()) \n\t\t\tToolBox.showRemoteErrorMessage(connBean, error);\n\t\t\n\t\tsynchronized (mutex) {\n setEnabled(false);\n if (solid != null && timestamp > lastestTimeStamp+1500*1000000) {\n int result = JOptionPane.showConfirmDialog(StartUI.getFrame(), \"The config of this lift has changed. Reload it?\", \"Update\",\n JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.OK_OPTION) {\n solid = null;\n event = new Parser_Event( connBean.getIp(), connBean.getPort() );\n setHot();\n }\n } else {\n setHot();\n }\n setEnabled(true);\n }\n\t}", "@Override // ohos.data.resultset.AbsResultSet\r\n public void notifyChange() {\r\n super.notifyChange();\r\n }", "@Override\n public void cellChanged(String newCellValue) {\n\t \n }", "@Override\n\tpublic void tableChanged(TableModelEvent arg0) {\n\t\t\n\t}", "public void tableChanged(WTableModelEvent event)\n {\n if ((event.getType() == WTableModelEvent.CONTENTS_CHANGED)\n && (event.getColumn() == WTableModelEvent.ALL_COLUMNS)\n && (event.getFirstRow() == WTableModelEvent.ALL_ROWS))\n {\n this.repaint();\n }\n else if ((event.getType() == WTableModelEvent.CONTENTS_CHANGED)\n \t\t&& event.getFirstRow() != WTableModelEvent.ALL_ROWS\n \t\t&& !m_readWriteColumn.isEmpty())\n {\n \tint[] indices = this.getSelectedIndices();\n \tListModelTable model = this.getModel();\n \tif (event.getLastRow() > event.getFirstRow())\n \t\tmodel.updateComponent(event.getFirstRow(), event.getLastRow());\n \telse\n \t\tmodel.updateComponent(event.getFirstRow());\n \tif (indices != null && indices.length > 0)\n \t{\n \t\tthis.setSelectedIndices(indices);\n \t}\n }\n\n return;\n }", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}", "public void cellValueChanged(int row, int col, String oldValue, String newValue);", "private void fireStructureChanged() {\n\n tableModel.fireTableStructureChanged();\n paramsTable.getColumnModel().getColumn(COL_SAMPLING).setCellEditor(\n new SamplingEditor());\n }", "void updateData();", "@Override\n\tpublic void changedUpdate(DocumentEvent de) {\n\n\t}", "private synchronized void notifyUpdatedOutput(Section section, String outputName, int start, int end, String text) {\n Observer[] observers = observersTable.get(this);\n if (observers != null) {\n for (Observer observer : observers) {\n observer.updatedOutput(this, section, outputName, start, end, text);\n }\n }\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "@Override\r\n public void tableChanged(TableModelEvent e) {\n\r\n }", "@Override\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\n\t\t}", "public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }", "@Override\n protected void onContentsChanged(int slot) {\n setChanged();\n }", "public void dataWasSet();", "public void onDataChanged(IData data) {\r\n\tthis.canvas.onDataChanged(data);\r\n }", "@Override\n protected void handleCellContentChange(int row,\n int column,\n Object oldValue,\n Object newValue)\n {\n // Store the log note with the log data and write it to the log\n // notes file\n perfLog.getPerfLogData().get(row).setNotes(newValue.toString());\n perfLog.writeLogNotes(row);\n }", "public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }", "public void tableViewChanged(ObjectViewModelEvent pEvent);", "@Override\r\n public void changedUpdate(DocumentEvent e)\r\n {\n }", "public void onDataChanged(IData data) {\r\n setData(data);\r\n }", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void handleLabTestUpdate() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n tableModel.fireTableDataChanged();\r\n }\r\n });\r\n }", "@Override\n public int getRowChange() {\n return rowChange;\n }", "@Override\n public void refreshDataEntries() {\n }", "public void notifyDataSetChanged() {\n generateDataList();\n mSectionedExpandableGridAdapter.notifyDataSetChanged();\n }", "public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}", "@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t}", "void notifyAllAboutChange();", "protected void onDataChanged(V item) {\n\n }", "synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}", "interface SectionNotifier {\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemInserted}.\n *\n * @param position position of the item in the section\n */\n void notifyItemInserted(final int position);\n\n /**\n * Helper method that calculates the relative position of all items of this section in the\n * adapter and calls {@link Adapter#notifyItemRangeInserted}.\n */\n void notifyAllItemsInserted();\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeInserted}.\n *\n * @param positionStart position of the first item that was inserted in the section\n * @param itemCount number of items inserted in the section\n */\n void notifyItemRangeInserted(final int positionStart, final int itemCount);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRemoved}.\n *\n * @param position position of the item in the section\n */\n void notifyItemRemoved(final int position);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeRemoved}.\n *\n * @param positionStart previous position of the first item that was removed from the section\n * @param itemCount number of items removed from the section\n */\n void notifyItemRangeRemoved(final int positionStart, final int itemCount);\n\n /**\n * Helper method that calculates the relative header position in the adapter and calls\n * {@link Adapter#notifyItemChanged}.\n */\n void notifyHeaderChanged();\n\n /**\n * Helper method that calculates the relative header position in the adapter and calls\n * {@link Adapter#notifyItemChanged}.\n *\n * @param payload optional parameter, use null to identify a \"full\" update\n */\n void notifyHeaderChanged(@Nullable final Object payload);\n\n /**\n * Helper method that calculates the relative footer position in the adapter and calls\n * {@link Adapter#notifyItemChanged}.\n */\n void notifyFooterChanged();\n\n /**\n * Helper method that calculates the relative footer position in the adapter and calls\n * {@link Adapter#notifyItemChanged}.\n *\n * @param payload optional parameter, use null to identify a \"full\" update\n */\n void notifyFooterChanged(@Nullable final Object payload);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemChanged}.\n *\n * @param position position of the item in the section\n */\n void notifyItemChanged(final int position);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemChanged}.\n *\n * @param position position of the item in the section\n * @param payload optional parameter, use null to identify a \"full\" update\n */\n void notifyItemChanged(final int position, @Nullable final Object payload);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeChanged}.\n */\n void notifyAllItemsChanged();\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeChanged}.\n *\n * @param payload optional parameter, use null to identify a \"full\" update\n */\n void notifyAllItemsChanged(@Nullable final Object payload);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeChanged}.\n *\n * @param positionStart position of the first item that was changed in the section\n * @param itemCount number of items changed in the section\n */\n void notifyItemRangeChanged(final int positionStart, final int itemCount);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemRangeChanged}.\n *\n * @param positionStart position of the first item that was inserted in the section\n * @param itemCount number of items inserted in the section\n * @param payload optional parameter, use null to identify a \"full\" update\n */\n void notifyItemRangeChanged(final int positionStart, final int itemCount, @Nullable final Object payload);\n\n /**\n * Helper method that receives position in relation to the section, calculates the relative\n * position in the adapter and calls {@link Adapter#notifyItemMoved}.\n *\n * @param fromPosition previous position of the item in the section\n * @param toPosition new position of the item in the section\n */\n void notifyItemMoved(final int fromPosition, final int toPosition);\n\n /**\n * Helper method that calls {@link Adapter#notifyItemChanged} with the position of the {@link Section.State}\n * view holder in the adapter. Useful to be called after changing the State from\n * LOADING/FAILED/EMPTY to LOADING/FAILED/EMPTY.\n *\n * @param previousState previous state of section\n */\n void notifyNotLoadedStateChanged(final Section.State previousState);\n\n\n void notifyStateChangedToLoaded(final Section.State previousState);\n\n\n void notifyStateChangedFromLoaded(final int previousContentItemsCount);\n\n void notifyHeaderInserted();\n\n void notifyFooterInserted();\n\n\n void notifyHeaderRemoved();\n\n\n void notifyFooterRemoved();\n\n\n void notifySectionChangedToVisible();\n\n\n void notifySectionChangedToInvisible(final int previousSectionPosition);\n}", "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "private void notifyComboBoxModelChange(int index0, int index1)\n {\n for(ListDataListener l : comboBoxModelListDataListeners)\n l.contentsChanged(new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, index0, index1));\n }", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "public void updateTable() {\n ((AbstractTableModel) table.getModel()).fireTableDataChanged();\n }", "public void notifyDataSetChanged() {\n viewState.setShouldRefreshEvents(true);\n invalidate();\n }", "public void handleDataChange(Integer recNo, String data[])\r\n throws BookingException {\r\n System.out.println(\"BookingGui: handleDataChange: \" + recNo);\r\n \r\n // Determine subcontractor panel refresh\r\n String panelData[] = getRecordOnPan();\r\n if (panelData[0].equals(data[0]) && panelData[1].equals(data[1])) {\r\n refreshSubconPanel(data);\r\n }\r\n\r\n refreshTableRecord(recNo.intValue(), data);\r\n }", "public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "public interface CellUpdateListener {\r\n\r\n\t/**\r\n\t * \r\n\t * Event raised when cell content to be added to cell.\r\n\t * \r\n\t * @param cell\r\n\t * selected cell.\r\n\t * @param content\r\n\t * content to add to cell\r\n\t */\r\n\tvoid addCellContent(Cell cell, String content);\r\n\r\n\t/**\r\n\t * \r\n\t * Resets cell content.\r\n\t * \r\n\t * @param cell\r\n\t * selected cell.\r\n\t */\r\n\tvoid clearCellContent(Cell cell);\r\n\r\n\t/**\r\n\t * \r\n\t * Performs an action on a cell.\r\n\t * \r\n\t * @param cell\r\n\t * selected cell.\r\n\t * @param action\r\n\t * action to perform\r\n\t */\r\n\tvoid cellMenuAction(Cell cell, String action);\r\n\r\n\t/**\r\n\t * \r\n\t * Retrieves an action list for a cell.\r\n\t * \r\n\t * @param cell\r\n\t * selected cell.\r\n\t * @param actions\r\n\t * actions to perform\r\n\t */\r\n\tvoid populateCellMenu(Cell cell, List<String> actions);\r\n\r\n\t/**\r\n\t * \r\n\t * Sets current selection to word.\r\n\t * \r\n\t * @param word\r\n\t * word to set.\r\n\t */\r\n\tvoid setWord(Word word);\r\n\r\n\t/**\r\n\t * \r\n\t * Sets verse list to one with word.\r\n\t * \r\n\t * @param word\r\n\t * word to use as filter.\r\n\t */\r\n\tvoid setVersesWithWord(Word word);\r\n\r\n\t/**\r\n\t * Increases word list sort letter.\r\n\t */\r\n\tvoid increaseSortLetter();\r\n\r\n\t/**\r\n\t * Decreases word list sort letter.\r\n\t */\r\n\tvoid decreaseSortLetter();\r\n\r\n}", "public void updateTable()\r\n {\r\n ((JarModel) table.getModel()).fireTableDataChanged();\r\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void tableChanged(TableModelEvent e) \n {\n fireTableChanged(e);\n }", "private void modelListenersNotify(int index0, int index1)\n {\n modelArray = this.toArray(new Object[this.size()]);\n notifyTableModelChange(index0, index1);\n notifyComboBoxModelChange(index0, index1);\n\n }", "private void notifyObjectChanged(int index0, int index1) {\n\t\tlisteners.forEach(l -> l.objectsChanged(this, index0, index1));\n\t}", "protected void notifyRead(){\n indexList.clear();\n int rows = bank.getRows();\n for(int i = 0; i < rows; i++){\n int value = bank.getInt(filterVar, i);\n if (filterList.contains(value)) indexList.add(i);\n }\n }", "public void fireTableRowUpdated(AcceleratorNode nodeDev) {\n int index = this.lstDaqHware.indexOf(nodeDev);\n \n if (index > -1)\n this.fireTableRowsUpdated(index, index);\n }", "protected void fireContentsChanged() {\r\n\t// Guaranteed to return a non-null array\r\n\tObject[] listeners = listenerList.getListenerList();\r\n\tListDataEvent e = null;\r\n\t// Process the listeners last to first, notifying\r\n\t// those that are interested in this event\r\n\tfor (int i = listeners.length-2; i>=0; i-=2) {\r\n\t if (listeners[i]==ListDataListener.class) {\r\n\t\t// Lazily create the event:\r\n\t\tif (e == null) {\r\n\t\t e = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED,\r\n\t\t\t\t\t 0, getSize()-1);\r\n\t\t}\r\n\t\t((ListDataListener)listeners[i+1]).contentsChanged(e);\r\n\t }\r\n\t}\r\n }", "@Override\n public void recordChanged(int row, int column, String newValue) {\n if (currentRow == row) {\n recordForm.setValueAt(newValue, column);\n// if (recordNotifier.needsSuggestion(row, column)) {\n// recordList.\n// }\n }\n }", "private void onContentsChanged(IChangeEvent event) {\n IPosition fromPos = event.getFrom();\n int fromOffset = mapper.getOffset(fromPos.getLine(), fromPos.getChar());\n IPosition toPos = event.getTo();\n int toOffset = mapper.getOffset(toPos.getLine(), toPos.getChar());\n // Create a transformation that corresponds to the change.\n TransformBuilder builder = new TransformBuilder();\n builder.skip(fromOffset);\n if (fromOffset != toOffset)\n builder.delete(mapper.substring(fromOffset, toOffset));\n for (int i = 0; i < event.getTextLineCount(); i++) {\n if (i > 0)\n builder.insert(\"\\n\");\n builder.insert(event.getTextLine(i));\n }\n builder.skip(mapper.getLength() - toOffset);\n Transform transform = builder.flush();\n Assert.equals(mapper.getLength(), transform.getInputLength());\n for (IListener listener : listeners)\n listener.onChange(transform);\n doc.apply(transform);\n mapper.apply(transform);\n }", "public void selectionChanged(String[][] selection);", "private void notifyListeners(boolean dataChanged) {\n for (OnDataChangedListener listener : dataChangedListeners) {\n listener.onDataChanged(dataChanged);\n }\n }", "@Override\n\tpublic void changedUpdate(DocumentEvent e)\n\t{\n\t\t\n\t}", "protected void indicateModified() {\n invalidationListenerManager.callListeners(this);\n }", "private void fireNodeUpdatedEvent(Node node)\n {\n Iterator iterator = clients.keySet().iterator();\n while (iterator.hasNext())\n {\n String key = (String) iterator.next();\n\n ScriptSession asession = clients.get(key);\n Util utilAll = new Util(asession);\n logger.info(\"Setting value on :\" + node.getId() + \" to #\" + node.getNumberOfMessagesHandled().toString());\n utilAll.setValue(node.getId(), node.getNumberOfMessagesHandled().toString());\n Effect effect = new Effect(asession); //, duration: 15\n effect.highlight(node.getId(), \"{ duration: 2, queue: {position: 'end', scope: '\" + node.getId() + \"', limit:1}}\"); //\"{startcolor:'e6e6fa', queue: {position: 'end', scope: 'price', limit:1}}\");\n // highlight a row\n // effect.highlight(\"row_\" + node.getId(), \"{ duration: 1, queue: {position: 'end', scope: 'row_\" + node.getId() + \"', limit:1}}\"); //\"{startcolor:'e6e6fa', queue: {position: 'end', scope: 'price', limit:1}}\");\n }\n }", "@Override\n\t\t\t\tpublic void changedUpdate(final DocumentEvent e) {\n\t\t\t\t}", "public void changedUpdate(DocumentEvent event) {\n\t\t\t}", "public void changedUpdate(DocumentEvent e) {\n\n\t}", "@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "public final void changeModified(int line, int column) {\n\t\tmodified=true;\n\t\tArrayList<Integer> coordinates = new ArrayList<Integer>(); \n\t\tcoordinates.add(line);\n\t\tcoordinates.add(column);\n\t\tsetChanged();\n\t\tnotifyObservers(coordinates);\n\t}", "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "public boolean wasDataUpdated() {\n\t\treturn true;\n\t}", "@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }", "void notifyWrite();", "public void tableChanged(TableModelEvent e) {\n if (log.isDebugEnabled()) {\n log.debug(\"TableModelChanged! firing summary model changed!\");\n }\n\n _updating = true;\n if (_selectedSequence != null) {\n _selectedSequence.refreshSummaries();\n }\n _tableModel.fireTableChangedEvent();\n _updating = false;\n }" ]
[ "0.7300045", "0.70971644", "0.7042445", "0.69913584", "0.6965617", "0.68679667", "0.6793078", "0.6768692", "0.6753457", "0.6649186", "0.656924", "0.6552762", "0.6529875", "0.65108776", "0.6494143", "0.6491157", "0.6491157", "0.6487913", "0.64758205", "0.6442867", "0.6440172", "0.6434001", "0.6417244", "0.6330102", "0.63144803", "0.6269554", "0.62656796", "0.6257949", "0.6227748", "0.6216025", "0.6206731", "0.620471", "0.6188319", "0.6184878", "0.6184126", "0.61623466", "0.61495024", "0.6147268", "0.614395", "0.6126908", "0.61224586", "0.6120051", "0.61002475", "0.6091725", "0.6070105", "0.60669804", "0.6043039", "0.6035598", "0.6034142", "0.60298157", "0.60140353", "0.60041535", "0.59996873", "0.5994312", "0.5981611", "0.59759927", "0.5973082", "0.59683925", "0.5965904", "0.59638906", "0.59437627", "0.5935646", "0.5931188", "0.59280074", "0.59171814", "0.59159565", "0.5906952", "0.5906952", "0.5895745", "0.58955383", "0.58912706", "0.5887746", "0.58852667", "0.5875184", "0.5873185", "0.5865812", "0.5857905", "0.58560467", "0.58505446", "0.5846924", "0.5845716", "0.5833644", "0.58246326", "0.5813485", "0.5813371", "0.580994", "0.58072186", "0.5804136", "0.5801195", "0.5799096", "0.5794976", "0.5794661", "0.57909495", "0.57891095", "0.5784377", "0.57759076", "0.5772461", "0.5755934", "0.57549024", "0.5753305" ]
0.58827037
73
get cached span size
public int getSpanSize(int position) { if (mSpanSize != null) { return mSpanSize.get(position); } return DEFAULT_MAX_SPAN; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSpanSize(int spanCount, int spanSize, int position);", "int getCurrentSize();", "int getLocalSize();", "public int getLocalSize();", "public long estimateSize() {\n/* 1338 */ return this.est;\n/* */ }", "public long estimateSize() {\n/* 1558 */ return this.est;\n/* */ }", "public long estimateSize() {\n/* 1668 */ return this.est;\n/* */ }", "public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }", "int getSize() {\n synchronized (lock) {\n return cache.size();\n }\n }", "float computeSize() {\n if (dirtyS) {\n size = modelRoot.getCSize().getSize(node);\n dirtyBufS = true;\n modelRoot.decrementNumberOfDirtySNodes();\n dirtyS = false;\n }\n return size;\n }", "double getSize();", "public long getSize() {\n return size.get();\n }", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public double getSize() {\n return size_;\n }", "public double getSize() {\n return getElement().getSize();\n }", "public double getSize() {\n return size_;\n }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public double getSize() \n {\n return size;\n }", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "@Assessor\n public long estimateSize() {\n \treturn getSizeByMembers() \n .values().stream()\n .mapToLong(this::getFutureValue)\n .sum();\n }", "public float getSize() {\n return size;\n }", "public final long getSize() { return size; }", "public float getSize()\n {\n return size;\n }", "public float getSize() {\n\t\treturn size;\n\t}", "public int get_size();", "public int get_size();", "int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }", "public int getTotalSize();", "public synchronized int getEntrySize() {\n return bytesPerSlot;\n }", "public long getSize() {\n return size;\n }", "private int getSize() {\r\n\t\treturn this.size;\r\n\t}", "long getSize();", "public long getSize() {\r\n return size;\r\n }", "@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}", "public long getSize();", "protected long getLiveSetSize() {\n\t\t// Sum of bytes removed from the containers.\n\t\tlong removed = 0;\n\n\t\tfor (int i = 0; i < sets.length; i++)\n\t\t\tremoved += sets[i].getContainer().getBytesRemoved();\n\n\t\t/*\n\t\t * The total number of butes still alive is the throughput minus the number of\n\t\t * bytes either removed from the container or never added in the first place.\n\t\t */\n\t\tlong size = getThroughput() - removed - producerThreadPool.getBytesNeverAdded();\n\n\t\treturn (size > 0) ? size : 0;\n\t}", "int memSize() {\n // treat Code as free\n return BASE_NODE_SIZE + 3 * 4;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public int getCurrentSize() {\n return count;\n }", "public long getSize() {\n\t\treturn size;\n\t}", "long getOccupiedSize();", "public int size(){\r\n return currentSize;\r\n }", "public int getSize() {\r\n return _size;\r\n }", "public String getSize() {\r\n return size;\r\n }", "int getCurrentCacheSize();", "public long getSize() {\n return mSize;\n }", "public static int getSIZE() {\n return SIZE;\n }", "public synchronized int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() { return size; }", "public int size() {\n synchronized (cacheMap) {\n return cacheMap.size();\n }\n }", "private int getSize() {\n\t\t\treturn size;\n\t\t}", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public int size()\n {\n return currentSize;\n }", "int getTotalSize();", "public Size getSize() {\n return size;\n }", "public int size() {\n return cache.size();\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "int getSize() {\n return size;\n }", "int getLostedSize();", "@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}", "int getCacheSizeInMiB();", "public long getEntrySize() {\n return size;\n }", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public int getSize() {\r\n return size;\r\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public int size() {\r\n\t\treturn cache.size();\r\n\t}", "long storageSize();", "public final int getSize() {\n return size;\n }", "public int getSize() {\n return size;\n }", "public static long getCacheSize() {\n return sDiskLruCache.size();\n }" ]
[ "0.7375041", "0.7163113", "0.69370157", "0.6932011", "0.6879066", "0.68037945", "0.6799595", "0.6777967", "0.67437387", "0.66046137", "0.66011494", "0.65810686", "0.6570323", "0.6568276", "0.65133893", "0.6504395", "0.64657325", "0.6458825", "0.6388565", "0.6376683", "0.63604665", "0.635444", "0.63497055", "0.6330257", "0.6329468", "0.6329468", "0.6306072", "0.63044655", "0.6293731", "0.62930316", "0.6286869", "0.6285961", "0.6284878", "0.6280999", "0.6269407", "0.6269059", "0.6260942", "0.6255399", "0.6255399", "0.6255399", "0.6255399", "0.62451106", "0.62426645", "0.62410915", "0.6224144", "0.62222457", "0.6221812", "0.6215235", "0.61964875", "0.61757106", "0.616103", "0.6156061", "0.61541444", "0.6142656", "0.61418253", "0.61380726", "0.6136835", "0.61365145", "0.61365145", "0.61325574", "0.6128583", "0.61282045", "0.6127036", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.61206156", "0.6109303", "0.61056054", "0.60965234", "0.60896415", "0.60840654", "0.6081994", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.6079073", "0.60790336", "0.6078752", "0.6078381", "0.607814", "0.60765135", "0.60734975", "0.60714865", "0.60706794" ]
0.642264
18
Gets the name of this type which must be case insensitive globally unique. The name of a user defined type must be a legal identifier in Presto.
@JsonValue TypeSignature getTypeSignature();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String typeName();", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public String getTypeName();", "public String getTypeName();", "public String getTypeName() {\n return type.name();\n }", "public abstract String getTypeName();", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public String getName() {\n return type.toString();\n }", "public org.apache.xmlbeans.XmlString xgetTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n return target;\n }\n }", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "public String getTypeName() {\n \treturn typeName;\n }", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "public String getTypeName()\n {\n return this.typeName;\n }", "public String getTypeName() {\n return this.typeName;\n }", "public Integer getNametype() {\r\n return nametype;\r\n }", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "String getIdentifierName(String name, String type);", "public String typeName() {\n return typeName;\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "@Override\n public String getName() {\n return type.getName();\n }", "public final String gettypeName() {\n\t\treturn this.typeNameField;\n\t}", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public String ofType() {\n\t\t return name;\n\t}", "@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}", "public String typeName() {\n return this.typeName;\n }", "public String getSQLTypeName()\n {\n if ( schemaName == null ) { return unqualifiedName; }\n else { return IdUtil.mkQualifiedName( schemaName, unqualifiedName ); }\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "UniqueType createUniqueType();", "public String getUniformTypeIdentifier() {\n return uti;\n }", "public GenericName getName() {\n return Names.parseGenericName(codeSpace, null, value);\n }", "public String getClazzName();", "public NameType getType() {\n return type;\n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }", "public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}" ]
[ "0.7023118", "0.6957808", "0.68755794", "0.6871445", "0.6846591", "0.6846591", "0.68334574", "0.6798987", "0.6742608", "0.67362154", "0.6706771", "0.6706771", "0.6706771", "0.6706771", "0.66879797", "0.6666174", "0.66382855", "0.6629546", "0.6591877", "0.6553885", "0.6526087", "0.6524163", "0.65239275", "0.6516704", "0.6511659", "0.6504335", "0.6497045", "0.64843273", "0.64843273", "0.64148104", "0.6409829", "0.64019126", "0.6362846", "0.6360748", "0.63497853", "0.61884207", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6168828", "0.6166292", "0.6146901", "0.6123687", "0.60914457", "0.60891396", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6088872", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.6071415", "0.60706806", "0.60561293" ]
0.0
-1
Returns the name of this type that should be displayed to endusers.
String getDisplayName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return type.toString();\n }", "@Override\n public String getName() {\n return type.getName();\n }", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "public String getTypeName() {\n return type.name();\n }", "public String getTypeName();", "public String getTypeName();", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "public String getTypeName()\n {\n return this.typeName;\n }", "public String ofType() {\n\t\t return name;\n\t}", "public String getTypeName() {\n return this.typeName;\n }", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "@Override\n public String getType() {\n return this.name; \n }", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "@Override\n public String getTypeForDisplay() {\n return \"User\";\n }", "public final String getName() {\r\n return this.ionType;\r\n }", "@Override\n public String getDisplayName() {\n return this.name;\n }", "public String getTypeName() {\n \treturn typeName;\n }", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public String typeName() {\n return this.typeName;\n }", "@Override\n\tpublic String getDisplayText() {\n\t\tif (userType == null)\n\t\t\treturn \"New user type\"; //$NON-NLS-1$\n\n\t\treturn \"Edit user type\"; //$NON-NLS-1$\n\t}", "public abstract String getTypeName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "@Override\n\tpublic java.lang.String getTypeName() {\n\t\treturn _permissionType.getTypeName();\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public String typeName() {\n return typeName;\n }", "@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }", "public String getDisplayType();", "public String getDisplayName() {\n return DISPLAY_NAME;\n }", "public String getName() {\n\t return this.device.getName() + \".\" + this.getType() + \".\"\n\t + this.getId();\n\t}", "@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "public String getType() {\n\t\treturn TYPE_NAME;\n\t}", "@Override\n public String getName() {\n return name();\n }", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "@Override\n public String getName() {\n return this.name();\n }", "public String getName() { return displayName; }", "String displayName();", "String displayName();", "public String toString() {\n return type.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s\", getName());\n\t}", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "@Override\n public String toString() {\n return getName();\n }", "public final String gettypeName() {\n\t\treturn this.typeNameField;\n\t}", "public String getName() {\n return \"\";\n }", "public String getName() {\n return \"\";\n }", "public String getDisplayName () {\n return impl.getDisplayName ();\n }", "@Override\n public String toString() {\n return getName();\n }", "@Override\n public String toString() {\n return getName();\n }", "@Override\n public String toString() {\n return getName();\n }", "@Override\n public String toString() {\n return getName();\n }", "String getDisplay_name();", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn type;\n\t}", "public String toString() {\n return type;\n }", "@Override\n public String getName() {\n return name();\n }", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn getGivenName() + \" \" + getFamilyName();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn getName();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" \" + Arrays.toString(types);\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn getName();\r\n\t}", "public String getDisplayName() {\n return this.displayname;\n }", "public java.lang.String getName();", "@ Override\n public final String toString() {\n return getName ( ) ;\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();" ]
[ "0.81597203", "0.7791398", "0.77623385", "0.77032876", "0.74485403", "0.74485403", "0.73568064", "0.73568064", "0.73505235", "0.7338105", "0.7315747", "0.72821677", "0.72783047", "0.72607666", "0.7254918", "0.7236967", "0.7236967", "0.7236967", "0.7236967", "0.7236967", "0.7236967", "0.72241044", "0.71979326", "0.7175171", "0.7175171", "0.7175171", "0.7175171", "0.7165598", "0.71487653", "0.71308565", "0.71307254", "0.71272963", "0.7123402", "0.71086776", "0.7088533", "0.7071511", "0.70707107", "0.70707107", "0.70707107", "0.70707107", "0.7062018", "0.6997422", "0.69968367", "0.6988407", "0.6974432", "0.697242", "0.6970322", "0.69675916", "0.69635856", "0.69498277", "0.6931127", "0.69038135", "0.68370646", "0.68055767", "0.6800799", "0.6792603", "0.67872924", "0.67872924", "0.6767374", "0.6765812", "0.67642885", "0.67488956", "0.67443615", "0.67363936", "0.67363936", "0.6732814", "0.67319036", "0.67319036", "0.67319036", "0.67319036", "0.6728775", "0.67274356", "0.67183626", "0.67053795", "0.6701008", "0.67008495", "0.6700125", "0.6697746", "0.6694036", "0.66924316", "0.6681006", "0.66757274", "0.6674015", "0.66733384", "0.6668122", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725", "0.66659725" ]
0.7099581
39
True if the type supports equalTo and hash.
boolean isComparable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isEqualTo (Type type)\n {\n if (this == type)\n return true;\n\n if (!(type instanceof TypeTerm))\n return false;\n\n TypeTerm typeTerm = (TypeTerm)type;\n \n if (kind() != typeTerm.kind() || name() != typeTerm.name() || arity() != typeTerm.arity())\n return false;\n\n for (int i=arity(); i-->0;)\n if (!argument(i).isEqualTo(typeTerm.argument(i)))\n return false;\n\n return true;\n }", "public final boolean isEqualTo (Type type, HashMap parameters)\n {\n if (this == type)\n return true;\n\n if (!(type instanceof TypeTerm))\n return false;\n\n TypeTerm typeTerm = (TypeTerm)type;\n \n if (kind() != typeTerm.kind() || name() != typeTerm.name() || arity() != typeTerm.arity())\n return false;\n\n for (int i=arity(); i-->0;)\n if (!argument(i).isEqualTo(typeTerm.argument(i),parameters))\n return false;\n\n return true;\n }", "boolean canEqual(Object obj);", "public abstract boolean equals(Object o);", "@ZenCodeType.Operator(ZenCodeType.OperatorType.EQUALS)\n default boolean equalTo(IData other) {\n \n return notSupportedOperator(OperatorType.EQUALS);\n }", "public abstract boolean isMatching(Properties p);", "public abstract boolean equals(Object other);", "protected boolean isScriptHashType() {\n if (pubScript == null)\n return false;\n InstructionInputStream is = pubScript.getInstructionInput();\n try\n {\n Instruction instruction=is.readInstruction();\n if (instruction.getOperation() != Operation.OP_HASH160)\n return false;\n instruction = is.readInstruction();\n if (!(instruction.getOperation() == Operation.CONSTANT && instruction.getData().length == 20))\n return false;\n instruction = is.readInstruction();\n if (instruction.getOperation() != Operation.OP_EQUAL)\n return false;\n instruction = is.readInstruction();\n return instruction == null;\n } catch (IOException ex)\n {\n return false;\n }\n }", "@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n typeMap.put(typeBool, typeBool2);\n typeMap.put(typeBoolean, typeBool2);\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBool));\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBoolean));\n }", "@Test\n public void testEquals() {\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n assertEquals(\"Expected bool types are equal\", typeBool, typeBool2);\n assertNotSame(\"Expected bool and boolean are not equal\", typeBool, typeBoolean);\n }", "private boolean matches(MetricalLpcfgMatch matchType) {\n\t\tswitch (matchType) {\n\t\t\tcase SUB_BEAT:\n\t\t\t\treturn subBeatMatches > 0;\n\t\t\t\t\n\t\t\tcase BEAT:\n\t\t\t\treturn beatMatches > 0;\n\t\t\t\t\n\t\t\tcase WRONG:\n\t\t\t\treturn isWrong();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "protected abstract boolean equalityTest(Object key, Object key2);", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\tif (other instanceof MaterialType) {\n\t\t\t\tMaterialType otherType = (MaterialType)other;\n\t\t\t\treturn this.material.getId() == otherType.getMaterial().getId() &&\n\t\t\t\t\t(this.data != null ? ((short)this.data)+1 : 0) ==\n\t\t\t\t\t(otherType.getData() != null ? ((short)otherType.getData())+1 : 0);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "public boolean equals(Object obj) {\n\t\tif(!(obj instanceof MD5Hash)) return false;\n\t\treturn obj.hashCode() == hashCode();\n\t}", "@Test\n public void equalsWithDifferentTypes() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"keyName\");\n AttributeKey<Date> key2 = new AttributeKey<Date>(Date.class, \"keyName\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "protected abstract boolean isSupportedTestType(Properties prop);", "boolean hasHash();", "public boolean is( Type type ) {\n return this.type == type;\n }", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "public boolean equivalent(DataType dataType) {\n return equals(dataType);\n }", "public boolean checkPseudoCompatibility(String elementType, NamedNodeMap attributes)\n\t{\n\t\tswitch (_keyPseudoClass)\n\t\t{\n\t\t\tcase \":link\":\n\t\t\tcase \":visited\":\n\t\t\t\tif(elementType.equalsIgnoreCase(\"a\") && getAttributeValue(attributes, \"href\") != null)\n\t\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\tcase \":checked\":\n\t\t\t\tif(elementType.equalsIgnoreCase(\"input\"))\n\t\t\t\t{\n\t\t\t\t\tString type = getAttributeValue(attributes, \"type\");\n\t\t\t\t\tif(type != null && type.equalsIgnoreCase(\"checkbox\") || type.equalsIgnoreCase(\"radio\") || type.equalsIgnoreCase(\"option\"))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \":focus\":\n\t\t\tcase \":active\":\n\t\t\t\tif((_keyPseudoClass.equals(\":active\") && elementType.equalsIgnoreCase(\"a\")) || (elementType.equalsIgnoreCase(\"textarea\")))\n\t\t\t\t\treturn true;\n\t\t\t\tif(elementType.equalsIgnoreCase(\"input\"))\n\t\t\t\t{\n\t\t\t\t\tString type = getAttributeValue(attributes, \"type\");\n\t\t\t\t\tif(type != null && type.equalsIgnoreCase(\"button\") || type.equalsIgnoreCase(\"text\"))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean equal_types( TypeInterface t ) {\n\t\tif( t instanceof TyArray ) {\r\n\t\t TyArray ta = (TyArray) t ;\r\n\t\t return ta.elementCount == elementCount\r\n\t\t && getElementType().equal_types( ta.getElementType() ) ; }\r\n\t\telse return false ; }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object obj);", "boolean equals(Object obj);", "public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }", "boolean equals(Object object);", "@Override\r\n public boolean equals(Object o)\r\n {\r\n assert(true);\r\n if (o instanceof Size)\r\n {\r\n return ((Size)o).amount==amount&&((Size)o).type==type;\r\n }\r\n return false;\r\n }", "@Override\n public boolean equals( Object o )\n {\n if ( !(o instanceof PSContentType ))\n return false;\n\n PSContentType type = (PSContentType) o;\n\n if ( !m_queryRequest.equals(type.m_queryRequest))\n return false;\n if (!m_description.equals(type.m_description))\n return false;\n if (!m_name.equalsIgnoreCase(type.m_name))\n return false;\n\n return m_hideFromMenu == type.m_hideFromMenu;\n }", "public boolean equals(Object obj);", "public boolean equals(Object o);", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "public abstract boolean isTypeCorrect();", "boolean matchesType( Name primaryType,\n Set<Name> mixinTypes );", "public boolean equals(Object object);", "@Override public boolean equals(Object o) { // since 1.3.1\n // should these ever match actually?\n return (o == this);\n }", "@Override\n public boolean isEqual(Query e1, Query e2) {\n //Devuelve siempre falso, en una lista no puede haber dos querys iguales\n return this.compare(e1,e2) == this.EQUAL;\n }", "public boolean typeStrictlyConformsTo(PBmmSchema schema, String type1, String type2) {\n return typeSameAs(type1,type2) || typeConformsTo(schema, type1, type2);\n }", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "public boolean equals(Object t) {\n if (!(t instanceof ReferenceType)) return false;\n ReferenceType r = (ReferenceType) t;\n if (typeClass() != null) return typeClass().equals(r.typeClass());\n return name.equals(r.name);\n }", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "public static TypeBinaryExpression typeEqual(Expression expression, Class type) { throw Extensions.todo(); }", "@Override\n public abstract boolean equals(Object obj);", "@Override\n public boolean equals(Object obj)\n {\n if(this == obj)\n return true;\n\n if(obj == null)\n return false;\n\n if(!getClass().isAssignableFrom(obj.getClass())) //if(getClass() != obj.getClass())\n return false;\n\n return equalsImpl(obj);\n }", "public boolean equals( Object obj );", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean isMatch();", "public interface NodeTypeMatcher {\n /**\n * Determines whether two Nodes are eligible for comparison\n * based on their node type.\n */\n boolean canBeCompared(short controlType, short testType);\n }", "public boolean isValidForType(Type t) {\n\t\tswitch (t) {\n\t\t\tcase BOOLEAN: if ((this==INCREMENT)||(this==DECREMENT)) return false;\n\t\t\tdefault: return true;\n\t\t}\n\t}", "boolean hasSameAs();", "public final boolean matches(List<Type> typeList) {\n return typeList.equals(pattern);\n }", "public boolean areComparable(Type typeone, Type typetwo){\n /* first check the basic types */\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n /* structs are comparable if they correspond to the same type declaration and the fields are comparable */\n\n else if(typeone instanceof StructType && typetwo instanceof StructType){\n \n String name1 = ((StructType)typeone).getStructName();\n String name2 = ((StructType)typetwo).getStructName();\n if (name1==name2 || (name1.equals(name2) && name1.equals(\"\"))) {\n StructType lefts = (StructType) typeone;\n StructType rights = (StructType) typetwo;\n List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields();\n List<Map.Entry<List<String>,Type>> rightlist = rights.getFields();\n if (leftlist.size()!=rightlist.size()) {\n return false;\n }\n for(int i=0; i<leftlist.size(); i++){\n Type typel = leftlist.get(i).getValue();\n Type typer = rightlist.get(i).getValue();\n if(!areComparable(typel,typer)) {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n /* finally, if they are arrays, check that the underlying type is comparable */\n else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel,typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false;\n else return true;\n }\n else if (typeone instanceof AliasType && typetwo instanceof AliasType) {\n AliasType left = (AliasType) typeone;\n AliasType right = (AliasType) typetwo;\n if (left.getAliasName()==right.getAliasName()) {\n return true;\n }\n else {\n return false;\n }\n\n }\n else return false;\n }", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }" ]
[ "0.61494046", "0.5981601", "0.5743465", "0.56836605", "0.5683459", "0.56083983", "0.55929315", "0.5550998", "0.55448353", "0.548471", "0.5435323", "0.542467", "0.53763074", "0.5339116", "0.533624", "0.53200555", "0.5315866", "0.5275944", "0.524869", "0.5244962", "0.52443767", "0.5239152", "0.5238942", "0.52378756", "0.52378756", "0.52378756", "0.52378756", "0.52378756", "0.5235578", "0.5235578", "0.5229427", "0.5222716", "0.521988", "0.52193457", "0.52163434", "0.52141356", "0.52097356", "0.5206337", "0.51803076", "0.51758057", "0.51734096", "0.5167078", "0.516439", "0.5158728", "0.51554805", "0.5143707", "0.5135528", "0.51293015", "0.51275873", "0.51170766", "0.51074195", "0.51074195", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51053286", "0.51050776", "0.50893956", "0.5088239", "0.5081652", "0.50702655", "0.50688577", "0.506433" ]
0.0
-1
True if the type supports compareTo.
boolean isOrderable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isComparable();", "public boolean compareTo(T t);", "public boolean a(Comparable<?> comparable) {\n return true;\n }", "public boolean a(Comparable<?> comparable) {\n return false;\n }", "int compareTo(Object obj);", "public interface Comparable\n{\n\t/**\n\t * Returns a number representing the ordering relationship that\n\t * the object has with the given object.\n\t * A negative number indicates that the object is \"smaller\" than\n\t * the parameter, a positive number means it is \"larger\" and zero\n\t * indicates that the objects are equal.\n\t */\n\tint compareTo(Object o);\n\n\t/**\n\t * Returns true if this object is equal to the given object.\n\t */\n\tboolean equals(Object o);\n}", "@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }", "int compareTo(Object o);", "@Override\r\n\tpublic boolean supports(Class clazz) {\n\t\treturn Customer.class.isAssignableFrom(clazz);\r\n\t\t//instanceof can only be used with reference types, not primitive types. isAssignableFrom() can be used with any class objects:\r\n\t\t// a instanceof int // syntax error\r\n\t\t//\t3 instanceof Foo // syntax error\r\n\t\t// int.class.isAssignableFrom(int.class) // true\r\n\t}", "public boolean areComparable(Type typeone, Type typetwo){\n /* first check the basic types */\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n /* structs are comparable if they correspond to the same type declaration and the fields are comparable */\n\n else if(typeone instanceof StructType && typetwo instanceof StructType){\n \n String name1 = ((StructType)typeone).getStructName();\n String name2 = ((StructType)typetwo).getStructName();\n if (name1==name2 || (name1.equals(name2) && name1.equals(\"\"))) {\n StructType lefts = (StructType) typeone;\n StructType rights = (StructType) typetwo;\n List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields();\n List<Map.Entry<List<String>,Type>> rightlist = rights.getFields();\n if (leftlist.size()!=rightlist.size()) {\n return false;\n }\n for(int i=0; i<leftlist.size(); i++){\n Type typel = leftlist.get(i).getValue();\n Type typer = rightlist.get(i).getValue();\n if(!areComparable(typel,typer)) {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n /* finally, if they are arrays, check that the underlying type is comparable */\n else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel,typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false;\n else return true;\n }\n else if (typeone instanceof AliasType && typetwo instanceof AliasType) {\n AliasType left = (AliasType) typeone;\n AliasType right = (AliasType) typetwo;\n if (left.getAliasName()==right.getAliasName()) {\n return true;\n }\n else {\n return false;\n }\n\n }\n else return false;\n }", "public interface Comparable {\n\t\n\t/**\n\t * Compares this object with the specified object for order. \n\t * Returns a negative integer, zero, or a positive integer as \n\t * this object is less than, equal to, or greater than the \n\t * specified object.\n\t * @param obj the Object to be compared. \n\t * @return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. \n\t */\n\tint compareTo(Object obj);\n}", "@Override\r\n\tint compareTo( IToon t );", "public interface Comparable {\r\n\t/**\r\n\t * Compare this object with rhs.\r\n\t * \r\n\t * @param rhs\r\n\t * the second Comparable.\r\n\t * @return 0 if two objects are equal; less than zero if this object is\r\n\t * smaller; greater than zero if this object is larger.\r\n\t */\r\n\tint compareTo(Comparable rhs);\r\n}", "public boolean equals(Object o) { return compareTo(o) == 0; }", "int compareTo(Comparable rhs);", "boolean hasIsSupportComp();", "public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }", "public boolean comparable(DataTypeDescriptor compareWithDTD, boolean forEquals) {\r\n TypeId compareWithTypeID = compareWithDTD.getTypeId();\r\n int compareWithJDBCTypeId = compareWithTypeID.getJDBCTypeId();\r\n\r\n // Incomparable types include:\r\n // XML (SQL/XML[2003] spec, section 4.2.2)\r\n // ref types\r\n if (!typeId.isComparable() || !compareWithTypeID.isComparable())\r\n return false;\r\n \r\n // if the two types are equal, they should be comparable\r\n if (typeId.equals(compareWithTypeID))\r\n return true;\r\n \r\n //If this DTD is not user defined type but the DTD to be compared with \r\n //is user defined type, then let the other DTD decide what should be the\r\n //outcome of the comparable method.\r\n if (!(typeId.isUserDefinedTypeId()) && \r\n (compareWithTypeID.isUserDefinedTypeId()))\r\n return compareWithDTD.comparable(this, forEquals);\r\n\r\n //Numeric types are comparable to numeric types\r\n if (typeId.isNumericTypeId())\r\n return (compareWithTypeID.isNumericTypeId());\r\n\r\n //CHAR, VARCHAR and LONGVARCHAR are comparable to strings, boolean, \r\n //DATE/TIME/TIMESTAMP and to comparable user types\r\n if (typeId.isStringTypeId()) {\r\n if((compareWithTypeID.isDateTimeTimeStampTypeID() ||\r\n compareWithTypeID.isBooleanTypeId()))\r\n return true;\r\n //If both the types are string types, then we need to make sure\r\n //they have the same collation set on them\r\n if (compareWithTypeID.isStringTypeId() && typeId.isStringTypeId()) {\r\n return true; // TODO: compareCollationInfo(compareWithDTD);\r\n } \r\n else\r\n return false; //can't be compared\r\n }\r\n\r\n //Are comparable to other bit types and comparable user types\r\n if (typeId.isBitTypeId()) \r\n return (compareWithTypeID.isBitTypeId()); \r\n\r\n //Booleans are comparable to Boolean, string, and to \r\n //comparable user types. As part of the work on DERYB-887,\r\n //I removed the comparability of booleans to numerics; I don't\r\n //understand the previous statement about comparable user types.\r\n //I suspect that is wrong and should be addressed when we\r\n //re-enable UDTs (see DERBY-651).\r\n if (typeId.isBooleanTypeId())\r\n return (compareWithTypeID.getSQLTypeName().equals(typeId.getSQLTypeName()) ||\r\n compareWithTypeID.isStringTypeId()); \r\n\r\n //Dates are comparable to dates, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.DATE)\r\n if (compareWithJDBCTypeId == Types.DATE || \r\n compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Times are comparable to times, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.TIME)\r\n if (compareWithJDBCTypeId == Types.TIME || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Timestamps are comparable to timestamps, strings and to\r\n //comparable user types.\r\n if (typeId.getJDBCTypeId() == Types.TIMESTAMP)\r\n if (compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithJDBCTypeId == Types.DATE || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n return false;\r\n }", "public boolean isCompatible();", "public interface Comparable {\n\n\n boolean better(Comparable other);\n}", "public int compareTo(Object o) {\n\t\treturn 1;\n\t}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Voyage.class.equals(clazz);\n\t}", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "BooleanExpression gteq(ComparableExpression<? extends T> expr);", "@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCantidadVendidos(3);\r\n articuloPrueba.setCantidadVendidos(3);\r\n int expResult = 0;\r\n int result = art.compareTo(articuloPrueba);\r\n assertEquals(expResult, result);\r\n }", "BooleanExpression gt(ComparableExpression<? extends T> expr);", "@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}", "@Test\n public void testCompareTo() {\n System.out.println(\"compareTo\");\n Conductor o = null;\n Conductor instance = null;\n int expResult = 0;\n int result = instance.compareTo(o);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean supports(Class clazz) {\n return true;\n }", "public boolean supports(Class<?> clazz) {\n\t\treturn true;\n\t}", "public boolean supports(Class<?> clazz) {\n\t\treturn true;\n\t}", "public boolean isCompatible() {\n if (this == ANY) {\n return true;\n }\n Os os = getCurrentOs();\n return this == os;\n }", "public boolean isCompatible() {\n if (this == ANY) {\n return true;\n }\n Arch arch = getCurrentArch();\n return this == arch;\n }", "boolean hasPriority();", "boolean hasPriority();", "boolean hasPriority();", "boolean supports(Object descriptor);", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "public interface ComparableExpression<T> extends Expression<T> {\n /**\n * Method returning whether this expression is less than the other expression.\n *\n * @param expr Other expression\n * @return Whether this is less than the other\n */\n BooleanExpression lt(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is less than the literal.\n *\n * @param t literal\n * @return Whether this is less than the other\n */\n BooleanExpression lt(T t);\n\n /**\n * Method returning whether this expression is less than or equal the other expression.\n *\n * @param expr Other expression\n * @return Whether this is less than or equal the other\n */\n BooleanExpression lteq(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is less than or equal the literal.\n *\n * @param t literal\n * @return Whether this is less than or equal the other\n */\n BooleanExpression lteq(T t);\n\n /**\n * Method returning whether this expression is greater than the other expression.\n *\n * @param expr Other expression\n * @return Whether this is greater than the other\n */\n BooleanExpression gt(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is greater than the literal.\n *\n * @param t literal\n * @return Whether this is greater than the other\n */\n BooleanExpression gt(T t);\n\n /**\n * Method returning whether this expression is greater than or equal the other expression.\n *\n * @param expr Other expression\n * @return Whether this is greater than or equal to the other\n */\n BooleanExpression gteq(ComparableExpression<? extends T> expr);\n\n /**\n * Method returning whether this expression is greater than or equal the literal.\n *\n * @param t literal\n * @return Whether this is greater than or equal to the other\n */\n BooleanExpression gteq(T t);\n\n /**\n * Method to return a numeric expression representing the aggregated minimum of this expression.\n *\n * @return expression for the minimum\n */\n ComparableExpression<T> min();\n\n /**\n * Method to return a numeric expression representing the aggregated maximum of this expression.\n *\n * @return expression for the maximum\n */\n ComparableExpression<T> max();\n\n /**\n * Method to return an order expression for this expression in ascending order.\n *\n * @return The order expression\n */\n OrderExpression<T> asc();\n\n /**\n * Method to return an order expression for this expression in descending order.\n *\n * @return The order expression\n */\n OrderExpression<T> desc();\n}", "@Override\n @SuppressWarnings(\"unchecked\")\n public Boolean apply(final T value)\n {\n final R left = evaluateChild(0, value);\n final R right = evaluateChild(1, value);\n\n if (right instanceof EmptySetExpression)\n {\n return Boolean.FALSE;\n }\n\n if (!_typeValidator.test(left) || !_typeValidator.test(right))\n {\n throw QueryEvaluationException.of(\n Errors.COMPARISON.INAPPLICABLE,\n StringUtils.getClassName(left),\n StringUtils.getClassName(right)\n );\n }\n\n if (left instanceof Number && right instanceof Number)\n {\n return new BigDecimal(left.toString()).compareTo(new BigDecimal(right.toString())) >= 0;\n }\n\n if (DateTimeConverter.isDateTime(left) || DateTimeConverter.isDateTime(right))\n {\n return DateTimeConverter.toInstantMapper().apply(left).compareTo(DateTimeConverter.toInstantMapper().apply(right)) >= 0;\n }\n\n if (left instanceof Comparable && right instanceof Comparable)\n {\n final Comparable<R> leftComparable = (Comparable<R>) left;\n return leftComparable.compareTo(right) >= 0;\n }\n\n throw QueryParsingException.of(Errors.COMPARISON.INAPPLICABLE, StringUtils.getClassName(left), StringUtils.getClassName(right));\n }", "private static boolean compareHelper(String version, String constraint, int type) {\n // check that a constraint was provided...\n if (constraint == null)\n return true;\n\n // ...and a version too\n // FIXME: this originally returned false, but I think it should\n // return true, since we always match if the contstraint is\n // unbound (null) ... is that right?\n if (version == null)\n return true;\n\n // setup tokenizers\n StringTokenizer vtok = new StringTokenizer(version, \".\");\n StringTokenizer ctok = new StringTokenizer(constraint, \".\");\n\n while (vtok.hasMoreTokens()) {\n // if there's nothing left in the constraint, then this means\n // we didn't match, unless this is the greater-than function\n if (!ctok.hasMoreTokens()) {\n if (type == COMPARE_GREATER)\n return true;\n else\n return false;\n }\n\n // get the next constraint token...\n String c = ctok.nextToken();\n\n // ...and if it's a + then it's done and we match\n if (c.equals(\"+\"))\n return true;\n String v = vtok.nextToken();\n\n // if it's a * then we always match, otherwise...\n if (!c.equals(\"*\")) {\n // if it's a match then we just keep going, otherwise...\n if (!v.equals(c)) {\n // if we're matching on equality, then we failed\n if (type == COMPARE_EQUAL)\n return false;\n\n // convert both tokens to integers...\n int cint = Integer.valueOf(c).intValue();\n int vint = Integer.valueOf(v).intValue();\n\n // ...and do the right kind of comparison\n if (type == COMPARE_LESS)\n return vint <= cint;\n else\n return vint >= cint;\n }\n }\n }\n\n // if we got here, then we've finished the processing the version,\n // so see if there's anything more in the constrant, which would\n // mean we didn't match unless we're doing less-than\n if (ctok.hasMoreTokens()) {\n if (type == COMPARE_LESS)\n return true;\n else\n return false;\n }\n\n // we got through everything, so the constraint is met\n return true;\n }", "@Override\n\tpublic int compareTo(T o) {\n\t\treturn 0;\n\t}", "public boolean supportsReverseComparison() {\n return true;\n }", "@Override\n protected boolean supports(Class<?> type) {\n return true;\n }", "@Override\n\tpublic int compareTo(Pregled o) {\n\t\treturn getDatum().compareTo(o.getDatum());\n\t}", "public boolean isCompatible() {\n return getOs().isCompatible() && getArch().isCompatible();\n }", "public Boolean supportOrdering() {\n return this.supportOrdering;\n }", "protected abstract boolean isSupportedTestType(Properties prop);", "private static <T> boolean isSorted(Comparable<T>[] a) {\n\t\tfor(int i=1; i<a.length; i++) {\r\n\t\t\tif(less(a[i],a[i-1]))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean getIsSupportComp();", "@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}", "public boolean isBuiltinSort() {\n return equals(Sort.BUILTIN_BOOL)\n || equals(Sort.BUILTIN_INT)\n || equals(Sort.BUILTIN_STRING)\n || equals(Sort.BUILTIN_FLOAT)\n /* LTL builtin sorts */\n// || sort.equals(Sort.SHARP_LTL_FORMULA)\n || equals(Sort.BUILTIN_PROP)\n || equals(Sort.BUILTIN_MODEL_CHECKER_STATE)\n || equals(Sort.BUILTIN_MODEL_CHECK_RESULT);\n }", "boolean areSorted();", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "public boolean supports(Class<?> cls) {\n return true;\n }", "BooleanExpression lteq(ComparableExpression<? extends T> expr);", "int compareTo(DocAttr da);", "boolean canBeCompared(short controlType, short testType);", "public boolean greaterThan(final Bytes other)\n\t{\n\t\tif ((this == other) || (other == null))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn bytes() > other.bytes();\n\t}", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Books.class.equals(clazz);\n\t}", "boolean hasSurrogateType();", "public static boolean isSorted(Comparable[] a) {\n for (int i = 1; i < a.length; i++)\n if (less(a[i], a[i-1]))\n return false;\n \n return true;\n }", "final public boolean equals (Object other)\n {\n\treturn compareTo (other) == 0;\n }", "@Test\n public void testCompareToLess() {\n assertTrue(o1.compareTo(o_test) < 0);\n }", "private boolean isFieldTypeComparable(int fiLHSFldType,int fiRHSFldType)\n {\n boolean lboolResult=false;\n if(fiLHSFldType==fiRHSFldType)\n {\n lboolResult=true;\n }\n switch(fiLHSFldType)\n {\n case DataConst.BIT:\n case DataConst.DECIMAL:\n case DataConst.FLOAT:\n case DataConst.NUMERIC:\n case DataConst.REAL:\n case DataConst.BIGINT:\n case DataConst.DOUBLE:\n case DataConst.INTEGER:\n case DataConst.SMALLINT:\n case DataConst.TINYINT:\n {\n if(fiRHSFldType== DataConst.BIT || fiRHSFldType==DataConst.BIGINT ||\n fiRHSFldType== DataConst.DECIMAL || fiRHSFldType==DataConst.DOUBLE ||\n fiRHSFldType== DataConst.FLOAT || fiRHSFldType==DataConst.INTEGER ||\n fiRHSFldType== DataConst.NUMERIC || fiRHSFldType==DataConst.SMALLINT ||\n fiRHSFldType== DataConst.REAL || fiRHSFldType==DataConst.TINYINT )\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.DATE:\n case DataConst.TIMESTAMP:\n {\n if(fiRHSFldType== DataConst.DATE || fiRHSFldType==DataConst.TIMESTAMP)\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.CHAR:\n case DataConst.VARCHAR:\n case DataConst.LONGVARCHAR:\n {\n if(fiRHSFldType== DataConst.CHAR || fiRHSFldType==DataConst.LONGVARCHAR ||\n fiRHSFldType== DataConst.VARCHAR )\n {\n lboolResult=true;\n }\n }\n break;\n default:\n lboolResult=false;\n }\n return lboolResult;\n }", "boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }", "@Override\r\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn true;\r\n\t}", "public int compareTo(Object arg0)\r\n/* 26: */ {\r\n/* 27:47 */ return 0;\r\n/* 28: */ }", "public int compareTo(Object a_other) {\n if (a_other == null) {\n return 1;\n }\n else {\n ChainOfSelectors other = (ChainOfSelectors) a_other;\n int size = m_selectors.size();\n if (other.m_selectors.size() < size) {\n return 1;\n }\n if (other.m_selectors.size() > m_selectors.size()) {\n return -1;\n }\n for (int i = 0; i < size; i++) {\n // Normally we would do the following:\n// INaturalSelector selector = (INaturalSelector)m_selectors.get(i);\n// INaturalSelector selectorOther = (INaturalSelector)other.m_selectors.get(i);\n// int result = selector.compareTo(selectorOther);\n\n // But INaturalSelector does not support Cmparable, so:\n String name = m_selectors.get(i).getClass().getName();\n String nameOther = other.m_selectors.get(i).getClass().getName();\n int result = name.compareTo(nameOther);\n if (result != 0) {\n return result;\n }\n }\n }\n return 0;\n }", "@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Review.class.isAssignableFrom(clazz);\n\t}", "boolean canMerge(T x);", "@Override // com.google.common.collect.RangeSet, com.google.common.collect.AbstractRangeSet\n public /* bridge */ /* synthetic */ boolean contains(Comparable comparable) {\n return super.contains(comparable);\n }", "boolean compare(Object targetOne, Object targetTwo);", "@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}", "public boolean cmp_new(Type other){\n if (this.dimension < other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "@Override\n public boolean hasIsSupportComp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "protected boolean isOrdered(Class type) {\n return List.class.isAssignableFrom(type)\n || \"java.util.LinkedHashSet\".equals(type.getName());\n }", "public boolean isTreeBinarySearchTree() {\r\n\t\treturn isTreeBinarySearchTree(rootNode, Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n\t}", "@Contract(pure = true)\r\n public boolean isGreaterThan(@NotNull Priority priority) {\r\n return !isLessThan(priority) && this != priority;\r\n }", "public boolean supports(Class<?> arg0) {\n\t\treturn true;\r\n\t}", "public boolean supports(Class<?> arg0) {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn true;\n\t}", "private static boolean isSorted(Comparable[] a) {\n for (int i = 1; i < a.length; i++)\n if (less(a[i], a[i-1])) return false;\n return true;\n }", "@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int compareTo(Objeto o) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn false;\r\n\t}", "public int compareTo(Object o) {\n return 0;\n }", "boolean supports(Class<?> valueClass);", "public /* bridge */ /* synthetic */ int compareTo(java.lang.Object r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.compareTo(java.lang.Object):int\");\n }", "public boolean isCompliedWith(MModelElement modelElement) {\n\n\t\t//The now possible range is All that's no restriction, so I don't need to check this.\n\n\t\t// check base class\n\t\tif (!BaseClasses.objectMatchsType(modelElement, this.getBaseClass())) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn super.isCompliedWith(modelElement);\n\t}" ]
[ "0.73727703", "0.6980974", "0.5914897", "0.57910645", "0.5614025", "0.5593202", "0.5591972", "0.55653113", "0.5485354", "0.5482201", "0.54797035", "0.54259676", "0.5410269", "0.54021984", "0.53555804", "0.5290278", "0.5283738", "0.5197813", "0.5188234", "0.5175708", "0.51583797", "0.5151385", "0.51302695", "0.5113437", "0.5109436", "0.5097526", "0.5097126", "0.5069417", "0.5056924", "0.5034844", "0.5034844", "0.5012577", "0.50100905", "0.50047815", "0.50047815", "0.50047815", "0.49965873", "0.49734434", "0.49729133", "0.49713868", "0.4963244", "0.49561664", "0.49537238", "0.49511468", "0.49285132", "0.49198902", "0.49180678", "0.49019003", "0.4901771", "0.48987147", "0.48757264", "0.48645934", "0.48611102", "0.4849967", "0.48430854", "0.4840106", "0.48360416", "0.48322555", "0.4829433", "0.48282942", "0.4825299", "0.48170817", "0.48135078", "0.4802639", "0.4792239", "0.47866097", "0.47768107", "0.4776371", "0.4774496", "0.47669733", "0.47626793", "0.4762395", "0.4761531", "0.47503385", "0.47494853", "0.47441557", "0.47405127", "0.47370562", "0.47319755", "0.47316083", "0.473024", "0.47296703", "0.47296703", "0.4722922", "0.4722922", "0.4722922", "0.4722922", "0.4722922", "0.4722922", "0.4722922", "0.4722922", "0.47143677", "0.47143304", "0.47076234", "0.4707459", "0.47051537", "0.470142", "0.46994933", "0.4694119", "0.46885833" ]
0.5106616
25
Gets the Java class type used to represent this value on the stack during expression execution. Currently, this must be boolean, long, double, Slice or Block.
Class<?> getJavaType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class<?> getType() {\n return this.value.getClass();\n }", "public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }", "public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }", "public Class typeClass() {\n if (myClass == null) myClass = AST.globalSymbolTable.classForName(name);\n return myClass;\n }", "Class<V> getValueType();", "public Class getTypeClass() {\r\n\t\treturn (typeClass);\r\n\t}", "public Class<? extends Type> getValueClass() {\n return valueClass;\n }", "public java.lang.String getJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public JavaType getType() { return _type; }", "public JvmType getClassx();", "public Class<?> getType()\r\n {\r\n return Integer.class;\r\n }", "public String getClassType() {\n return classType;\n }", "public Class getType();", "public IClass getType() {\n IClass result = null;\n if (_javaMethod.getReturnType().isArray()) {\n result = new ArrayDef(new ExternalClass(_javaMethod.getReturnType().getComponentType()));\n }\n else {\n result = new ExternalClass(_javaMethod.getReturnType());\n }\n\n return result;\n }", "public Class<?> getPrimitiveType();", "public Class getType();", "Class<V> getValueClass();", "public String getType() {\n\t\treturn \"class\";\n\t}", "public static ValueType getValueType( final Class<?> typeClass )\n {\n if ( typeClass == ClassUtils.COMPONENT_CONTEXT_CLASS )\n {\n return ValueType.componentContext;\n }\n else if ( typeClass == ClassUtils.BUNDLE_CONTEXT_CLASS )\n {\n return ValueType.bundleContext;\n }\n else if ( typeClass == ClassUtils.MAP_CLASS )\n {\n return ValueType.config_map;\n }\n else if ( typeClass.isAnnotation() )\n {\n return ValueType.config_annotation;\n }\n return ValueType.ignore;\n }", "public Class getJavaClass() {\n return _class;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public final Class<? super T> getRawType() {\n Class<?> rawType = getRawTypes().iterator().next();\n @SuppressWarnings(\"unchecked\") // raw type is |T|\n Class<? super T> result = (Class<? super T>) rawType;\n return result;\n }", "public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}", "public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }", "public Integer getType() {\n\t\treturn (Integer) getValue(3);\n\t}", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}", "public Class<V> getValueClass() {\n return valueClass;\n }", "public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }", "XClass getType();", "public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }", "Class<?> getType();", "Class<?> getType();", "Class<?> getType();", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}", "public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}", "public Class<T> getTypeClass() {\n return (Class<T>) defaultValue.getClass();\n }", "public Class<?> getType() {\n\t\treturn this.type;\n\t}", "public Class<?> getType() {\n\t\treturn this.type;\n\t}", "public ClassReferenceMirror getType() {\n\t\treturn type;\n\t}", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public Class<T> type() {\n\t\treturn _type;\n\t}", "@NotNull\n @Contract(pure = true)\n public Class<?> getType() {\n return clazz;\n }", "public Class<?> getValueClass() {\n if (valueClass == null) {\n try {\n valueClass = Class.forName(className);\n } catch (ClassNotFoundException exception) {\n Logging.unexpectedException(Key.class, \"getValueClass\", exception);\n valueClass = Object.class;\n }\n }\n return valueClass;\n }", "public Class getEvaluationType() {\n return lho.getOperandType();\n }", "public Class<?> getType() {\n return this.type;\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public String getType() {\n return PyTorchLibrary.LIB.iValueGetType(getHandle());\n }", "Coding getType();", "public final Class<? super T> getRawType() {\n return rawType;\n }", "public Class<X> getJavaClass() {\n\t\treturn javaClass;\n\t}", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public ObjectType getJVMType();", "public int getValueType() {\n\t\t\treturn valueType;\n\t\t}", "public String getBoxedJavaType() {\n return type.getBoxedJavaType(isInt52());\n }", "public Class getFieldDeclarerType() {\n String type = getFieldDeclarerName();\n if (type == null)\n return null;\n return Strings.toClass(type, getClassLoader());\n }", "public final String getType() {\n return this.getClass().getName();\n }", "public org.apache.xmlbeans.XmlNMTOKEN xgetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(JAVACLASS$24);\r\n return target;\r\n }\r\n }", "public String getType() {\r\n return this.getClass().getName();\r\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "@Override public int getTypeValue() {\n return type_;\n }", "public Class<?> getType() {\n switch (this.aggregate) {\n case COUNT_BIG:\n return DataTypeManager.DefaultDataClasses.LONG;\n case COUNT:\n return COUNT_TYPE;\n case SUM:\n Class<?> expressionType = this.getArg(0).getType();\n return SUM_TYPES.get(expressionType);\n case AVG:\n expressionType = this.getArg(0).getType();\n return AVG_TYPES.get(expressionType);\n case ARRAY_AGG:\n if (this.getArg(0) == null) {\n return null;\n }\n return DataTypeManager.getArrayType(this.getArg(0).getType());\n case TEXTAGG:\n return DataTypeManager.DefaultDataClasses.BLOB;\n case JSONARRAY_AGG:\n return DataTypeManager.DefaultDataClasses.JSON;\n case USER_DEFINED:\n case STRING_AGG:\n return super.getType();\n case PERCENT_RANK:\n case CUME_DIST:\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isBoolean()) {\n return DataTypeManager.DefaultDataClasses.BOOLEAN;\n }\n if (isEnhancedNumeric()) {\n return DataTypeManager.DefaultDataClasses.DOUBLE;\n }\n if (isRanking()) {\n return super.getType();\n }\n if (this.getArgs().length == 0) {\n return null;\n }\n return this.getArg(0).getType();\n }", "public final Class<T> getRawClass() {\n if (class_ == null) {\n class_ = getClass(type_);\n }\n return class_;\n }", "public Class<?> getJavaClass() {\n return clazz;\n }", "public Class returnedClass();", "Class<?> type();", "public Type getType();", "public byte getValueType() {\r\n\t\tbyte valueType;\r\n\t\tvalueType=this.valueType;\r\n\t\treturn valueType;\r\n\t}", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public java.lang.Integer getType() {\n return type;\n }", "public java.lang.Integer getType() {\n return type;\n }", "public Integer getClazz() {\n return clazz;\n }", "public Integer getType() {\n return type;\n }" ]
[ "0.71937186", "0.7158657", "0.68763226", "0.6873177", "0.68665797", "0.68580073", "0.6800005", "0.6674179", "0.66458994", "0.6608843", "0.66013443", "0.6547226", "0.6493046", "0.647984", "0.63897276", "0.63259834", "0.6284789", "0.6262656", "0.62151706", "0.62029016", "0.619345", "0.619345", "0.619345", "0.619345", "0.619345", "0.6183944", "0.6182842", "0.6168695", "0.6163618", "0.6163255", "0.6161732", "0.6161732", "0.6161732", "0.6161732", "0.6161732", "0.61566275", "0.6156229", "0.61525744", "0.61496997", "0.6136422", "0.6135337", "0.6135337", "0.6135337", "0.61340785", "0.61340785", "0.61340785", "0.61259437", "0.61259437", "0.6124246", "0.61200076", "0.61200076", "0.61079645", "0.60833365", "0.60833365", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071388", "0.6071126", "0.6070896", "0.60635597", "0.6054328", "0.6036443", "0.60353", "0.60178685", "0.6011547", "0.60003585", "0.5986787", "0.5984876", "0.5984876", "0.5974126", "0.595939", "0.59481484", "0.59434295", "0.5943175", "0.59426653", "0.5941546", "0.5940205", "0.5939995", "0.59231526", "0.5922055", "0.592183", "0.59060246", "0.58814377", "0.58789307", "0.5878618", "0.5864614", "0.5864614", "0.58578366", "0.58578366", "0.585021", "0.58501387" ]
0.0
-1
For parameterized types returns the list of parameters.
List<Type> getTypeParameters();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Parameter> getTypedParameters();", "public ITypeInfo[] getParameters();", "ParameterList getParameters();", "IParameterCollection getParameters();", "public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }", "@Deprecated public List<TypeParamDef> getParameters(){\n return build(parameters);\n }", "public List<ResolvedType> typeParametersValues() {\n return this.typeParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersMap.getValue(tp)).collect(Collectors.toList());\n }", "java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();", "public List<TypeDefinition> getParameters() {\n\t\treturn parameters;\n\t}", "TypeInfo[] typeParams();", "List<List<Class<?>>> getConstructorParametersTypes();", "public DataTypeDescriptor[] getParameterTypes() {\r\n return parameterTypes;\r\n }", "public List<IParam> getParams();", "public List<IParam> getParams();", "List<InferredStandardParameter> getOriginalParameterTypes();", "java.util.List<? extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder>\n getParametersOrBuilderList();", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }", "public abstract Object getTypedParams(Object params);", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public List<Class<?>> getSourceParameterTypes() {\n return parameterTypes;\n }", "public List<Pair<ResolvedTypeParameterDeclaration, ResolvedType>> getTypeParametersMap() {\n List<Pair<ResolvedTypeParameterDeclaration, ResolvedType>> typeParametersMap = new ArrayList<>();\n if (!isRawType()) {\n for (int i = 0; i < typeDeclaration.getTypeParameters().size(); i++) {\n typeParametersMap.add(new Pair<>(typeDeclaration.getTypeParameters().get(i), typeParametersValues().get(i)));\n }\n }\n return typeParametersMap;\n }", "public Parameters getParameters();", "Iterable<ActionParameterTypes> getParameterTypeAlternatives();", "java.util.List<? extends gen.grpc.hospital.examinations.ParameterOrBuilder> \n getParameterOrBuilderList();", "java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();", "private static void extractGenericsArguments() throws NoSuchMethodException\r\n {\n Method getInternalListMethod = GenericsClass.class.getMethod( \"getInternalList\" );\r\n\r\n // we get the return type\r\n Type getInternalListMethodGenericReturnType = getInternalListMethod.getGenericReturnType();\r\n\r\n // we can check if the return type is parameterized (using ParameterizedType)\r\n if( getInternalListMethodGenericReturnType instanceof ParameterizedType )\r\n {\r\n ParameterizedType parameterizedType = (ParameterizedType)getInternalListMethodGenericReturnType;\r\n // we get the type of the arguments for the parameterized type\r\n Type[] typeArguments = parameterizedType.getActualTypeArguments();\r\n for( Type typeArgument : typeArguments )\r\n {\r\n // we can work with that now\r\n Class<?> typeClass = (Class<?>)typeArgument;\r\n System.out.println( \"typeArgument = \" + typeArgument );\r\n System.out.println( \"typeClass = \" + typeClass );\r\n }\r\n }\r\n }", "default List<Parameter<?>> getMethodParameters()\n {\n return Collections.unmodifiableList(Collections.emptyList());\n }", "java.util.List<? extends com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameterOrBuilder> \n getParamsOrBuilderList();", "java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> \n getParamsList();", "public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }", "public DataType[] getParameters() {\n return parameters;\n }", "@Override\n public Class<?>[] getParameterTypes() {\n return null;\n }", "public final IClass[]\r\n getParameterTypes() throws CompileException {\r\n if (this.parameterTypesCache != null) return this.parameterTypesCache;\r\n return (this.parameterTypesCache = this.getParameterTypes2());\r\n }", "public List<Parameter> parameters() {\n if (_params != null && !_params.isEmpty()) {\n return new ArrayList<Parameter>(_params.values());\n }\n return null;\n }", "public ActionParameterTypes getParametersTypes() {\n\t\treturn this.signature;\n\t}", "public ParameterType getType();", "private String[] getParameterTypeNames(MethodNode method) {\n GenericsMapper mapper = null;\n ClassNode declaringClass = method.getDeclaringClass();\n if (declaringClass.getGenericsTypes() != null && declaringClass.getGenericsTypes().length > 0) {\n if (!mappers.containsKey(declaringClass)) {\n ClassNode thiz = getClassNode();\n mapper = GenericsMapper.gatherGenerics(findResolvedType(thiz, declaringClass), declaringClass);\n } else {\n mapper = mappers.get(declaringClass);\n }\n }\n Parameter[] parameters = method.getParameters();\n String[] paramTypeNames = new String[parameters.length];\n for (int i = 0; i < paramTypeNames.length; i++) {\n ClassNode paramType = parameters[i].getType();\n if (mapper != null && paramType.getGenericsTypes() != null && paramType.getGenericsTypes().length > 0) {\n paramType = VariableScope.resolveTypeParameterization(mapper, VariableScope.clone(paramType));\n }\n paramTypeNames[i] = paramType.getName();\n if (paramTypeNames[i].startsWith(\"[\")) {\n int cnt = Signature.getArrayCount(paramTypeNames[i]);\n String sig = Signature.getElementType(paramTypeNames[i]);\n String qualifier = Signature.getSignatureQualifier(sig);\n String simple = Signature.getSignatureSimpleName(sig);\n StringBuilder sb = new StringBuilder();\n if (qualifier.length() > 0) {\n sb.append(qualifier).append(\".\");\n }\n sb.append(simple);\n for (int j = 0; j < cnt; j++) {\n sb.append(\"[]\");\n }\n paramTypeNames[i] = sb.toString();\n }\n }\n return paramTypeNames;\n }", "ActionParameterTypes getFormalParameterTypes();", "private static boolean parameterTypeList_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"parameterTypeList_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LPAREN);\n r = r && normalParameterTypes(b, l + 1);\n r = r && consumeToken(b, COMMA);\n r = r && optionalParameterTypes(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, null, r);\n return r;\n }", "public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }", "public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}", "List<PowreedCommandParameter> getParameters();", "public Parameter[] getParameters() {\n return values;\n }", "char[][] getTypeParameterNames();", "public CParam[] getParameters() {\r\n\t\treturn parameters.toArray(new CParamImpl[parameters.size()]);\r\n\t}", "public Variable[] getParameters();", "private static boolean parameterTypeList_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"parameterTypeList_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LPAREN);\n r = r && normalParameterTypes(b, l + 1);\n r = r && parameterTypeList_1_2(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, null, r);\n return r;\n }", "public List<String> totestParametizedTypes()\n {\n return null;\n }", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "public Collection<String> getParamNames();", "public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}", "public static Class<?>[] getConstructorParamTypes() {\n\t\tfinal Class<?>[] out = { RabbitMQService.class, String.class, RentMovementDAO.class, RPCClient.class, RPCClient.class, IRentConfiguration.class };\n\t\treturn out;\n\t}", "public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }", "java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();", "public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return java.util.Collections.unmodifiableList(parameters_);\n }", "private ArrayList<TypeDef> parseParamTypeList(Tokenizer in) {\n\t\tArrayList<TypeDef> types = new ArrayList<>();\n\t\tToken next = in.next();\n\t\tif (next.type == Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\treturn types;\n\t\tin.pushTokens(next);\n\t\ttypes.add(parseType(in));\n\t\tnext = in.next();\n\t\twhile (true) {\n\t\t\tif (next.type == Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\t\treturn types;\n\t\t\tif (next.type != Token.TokenType.COMMA)\n\t\t\t\tthrow new SyntaxError(\"Expected ) or , got: '\"+next+\"'\"+next.generateLineChar());\n\t\t\ttypes.add(parseType(in));\n\t\t\tnext = in.next();\n\t\t}\n\t}", "public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }", "java.util.List<org.tensorflow.proto.framework.FullTypeDef> \n getArgsList();", "@Parameters\n public static Collection<Object[]> testParameters() {\n Collection<Object[]> params = new ArrayList<Object[]>();\n\n for (OPT opt: OPT.values()) {\n Object[] par = new Object[2];\n par[0] = opt;\n par[1] = opt.name();\n\n params.add( par );\n }\n\n return params;\n }", "public java.util.List<? extends datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder> getParametersOrBuilderList() {\n return parameters_;\n }", "List<LightweightTypeReference> getTypeArguments();", "public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}", "java.util.List<? extends godot.wire.Wire.ValueOrBuilder> \n getArgsOrBuilderList();", "public void getParameters(Parameters parameters) {\n\n }", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "public static boolean parameterTypeList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"parameterTypeList\")) return false;\n if (!nextTokenIs(b, LPAREN)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = parseTokens(b, 0, LPAREN, RPAREN);\n if (!r) r = parameterTypeList_1(b, l + 1);\n if (!r) r = parameterTypeList_2(b, l + 1);\n if (!r) r = parameterTypeList_3(b, l + 1);\n exit_section_(b, m, PARAMETER_TYPE_LIST, r);\n return r;\n }", "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "public Collection<String> getParameterIds();", "static MBeanParameterInfo[] methodSignature(Method method) {\r\n Class[] classes = method.getParameterTypes();\r\n MBeanParameterInfo[] params = new MBeanParameterInfo[classes.length];\r\n\r\n for (int i = 0; i < classes.length; i++) {\r\n String parameterName = \"p\" + (i + 1);\r\n params[i] = new MBeanParameterInfo(parameterName, classes[i].getName(), \"\");\r\n }\r\n\r\n return params;\r\n }", "@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}", "public List<ParameterObject> getParameterList() {\n return parameterList;\n }", "public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }", "public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return parameters_;\n }", "public java.util.List<\n ? extends com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder>\n getParametersOrBuilderList() {\n if (parametersBuilder_ != null) {\n return parametersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(parameters_);\n }\n }", "int countTypedParameters();", "public String[] getParameters() {\n\t\treturn parameters;\n\t}", "public String[] getParameters() {\r\n return parameters;\r\n }", "public void getParameters(Parameters parameters) {\n\n\t}", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "@LabeledParameterized.Parameters\n public static List<Object[]> parameters() {\n List<Object[]> modes = Lists.newArrayList();\n for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) {\n modes.add(Objects.o(typeOfEventStore));\n }\n return modes;\n }", "public String[] getParameters() {\n return parameters;\n }", "public ArrayList getParameters() {\n return parameters;\n }", "public Parameters getParameters() {\r\n return params;\r\n }", "public List<Class<?>> getTargetParameterTypes() {\n return targetParameterTypes;\n }", "public List<GroupParameter> getParameters();", "String [] getParameters();", "java.util.List<? extends org.tensorflow.proto.framework.FullTypeDefOrBuilder> \n getArgsOrBuilderList();", "public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "private static final List<ParameterImpl> createParameters() {\n\t\tParameterImpl initialize = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Initialize\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"INITIALIZE\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl run = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Run\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RUN\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl duration = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Duration (minutes)\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"DURATION\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"number\")\n\t\t\t\t.setDefaultValue(\"0\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl retrieveData = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Retrieve Data\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RETRIEVE_DATA\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cleanup = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cleanup\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CLEANUP\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cancel = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cancel\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CANCEL\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"false\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\treturn Arrays.asList(initialize, run, duration, retrieveData, cleanup, cancel);\n\t}", "private static Object[] parametersForVarargs(Class<?>[] parameterTypes, Object[] parameters) {\n int fixedLen = parameterTypes.length - 1;\n Class<?> componentType = parameterTypes[fixedLen].getComponentType();\n assert componentType != null;\n if (componentType.isPrimitive()) {\n componentType = ClassUtils.primitiveToWrapper(componentType);\n }\n int arrayLength = parameters.length - fixedLen;\n\n if (arrayLength >= 0) {\n if (arrayLength == 1 && parameterTypes[fixedLen].isInstance(parameters[fixedLen])) {\n // not a varargs call\n return parameters;\n } else if ((arrayLength > 0 && (componentType.isInstance(parameters[fixedLen]) || parameters[fixedLen] == null)) ||\n arrayLength == 0) {\n Object array = DefaultTypeTransformation.castToVargsArray(parameters, fixedLen, parameterTypes[fixedLen]);\n Object[] parameters2 = new Object[fixedLen + 1];\n System.arraycopy(parameters, 0, parameters2, 0, fixedLen);\n parameters2[fixedLen] = array;\n\n return parameters2;\n }\n }\n return parameters;\n }", "Nary<ExecutableParameter> parameters();", "public String[] getParameterNames() {\r\n return parameterNames;\r\n }", "public boolean isParameterizedType()\n {\n\n return _typeParams != null && _typeParams.length > 0;\n }", "@Override\n public Parameters getParams() {\n return parameters;\n }", "Map<ActionParameterTypes, List<InferredStandardParameter>> getInferredParameterTypes();", "public List<Parameter> getParameter( )\n {\n return _parameter;\n }", "public java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Form.ParameterOrBuilder>\n getParametersOrBuilderList() {\n if (parametersBuilder_ != null) {\n return parametersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(parameters_);\n }\n }" ]
[ "0.83668", "0.7513535", "0.72387975", "0.7112595", "0.7031263", "0.6940629", "0.6906481", "0.690507", "0.68947697", "0.6813028", "0.67837155", "0.6748095", "0.67438704", "0.67438704", "0.6676765", "0.66548026", "0.6644089", "0.66340166", "0.65973043", "0.6585325", "0.6570019", "0.65462774", "0.6542552", "0.65346885", "0.6505821", "0.64948255", "0.64727926", "0.6418874", "0.6399293", "0.6358327", "0.63580704", "0.6292797", "0.62900096", "0.6286956", "0.62768215", "0.62705463", "0.62633103", "0.6259701", "0.62371224", "0.6208523", "0.6168311", "0.6162513", "0.61560243", "0.6141307", "0.6139715", "0.61366546", "0.6131977", "0.6130896", "0.61266166", "0.6119478", "0.6119138", "0.6102098", "0.60921746", "0.6090456", "0.6040995", "0.60204417", "0.5994014", "0.5972224", "0.5967967", "0.5964348", "0.59635663", "0.59608537", "0.5953902", "0.59529203", "0.5932621", "0.5928254", "0.5928254", "0.5926348", "0.5924697", "0.5918184", "0.59053254", "0.5893561", "0.58806676", "0.5868838", "0.586453", "0.5833092", "0.58326876", "0.5829721", "0.5827669", "0.5823824", "0.5809764", "0.57958543", "0.57933986", "0.5792694", "0.57918847", "0.57715434", "0.5770029", "0.5767525", "0.57610476", "0.5750645", "0.5749025", "0.5728538", "0.5719825", "0.5712226", "0.569379", "0.56885785", "0.56770337", "0.5672481", "0.5665308", "0.56609327" ]
0.784163
1
Creates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.
BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);", "public Builder setNewBlock(\n phaseI.Hdfs.BlockLocations.Builder builderForValue) {\n if (newBlockBuilder_ == null) {\n newBlock_ = builderForValue.build();\n onChanged();\n } else {\n newBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public PaymentType builder()\n {\n return new PaymentType(this);\n }", "public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public alluxio.proto.journal.Block.BlockContainerIdGeneratorEntry.Builder getBlockContainerIdGeneratorBuilder() {\n bitField0_ |= 0x00000008;\n onChanged();\n return getBlockContainerIdGeneratorFieldBuilder().getBuilder();\n }", "StatementBlock createStatementBlock();", "public Builder setNewBlock(\n alluxio.proto.journal.File.NewBlockEntry.Builder builderForValue) {\n if (newBlockBuilder_ == null) {\n newBlock_ = builderForValue.build();\n onChanged();\n } else {\n newBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00200000;\n return this;\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public Pokemon.Currency.Builder getCurrencyBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getCurrencyFieldBuilder().getBuilder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public Builder setBlockInfo(\n phaseI.Hdfs.BlockLocations.Builder builderForValue) {\n if (blockInfoBuilder_ == null) {\n blockInfo_ = builderForValue.build();\n onChanged();\n } else {\n blockInfoBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder builder(String lineType){\n return new Builder(lineType);\n }", "Block createBlock();", "private Builder() {\n\t\t}", "@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }", "public static CommandViewBuilder builder(String commandBlock)\n\t{\n\t\treturn new CommandViewBuilder(commandBlock);\n\t}", "public Builder() {\n\t\t}", "public Builder setNewBlock(phaseI.Hdfs.BlockLocations value) {\n if (newBlockBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n newBlock_ = value;\n onChanged();\n } else {\n newBlockBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public ItemBlock createItemBlock() {\n\t\treturn new GenericItemBlock(this);\n\t}", "BlockAssignmentType createBlockAssignmentType();", "static Builder newBuilder() {\n return new Builder();\n }", "protected PagerAbstract<Block> createPagerDefault() {\n PagerBlock pager = new PagerBlock(pc);\r\n pager.setLookUpRangeStart(blockStart);\r\n pager.setLookUpRangeEnd(blockEnd);\r\n pager.setTimingEnabled(true);\r\n pager.setAscending(isAscendingOrder());\r\n pager.setFitRange(true); //we don't want results outside the \r\n pager.setManualExactPageSize(false);\r\n pager.setPageSize(pc.getDefaultPageSizeRootBlock());\r\n pager.build();\r\n return pager;\r\n }", "public MutableBlock createMutableBlock(ExpressionBuilder expression) {\r\n return new MutableBlock(passwordType, expression.toString());\r\n }", "private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }", "DefineBlock createDefineBlock();", "private CannedFillResponse.Builder newResponseBuilder() {\n return new CannedFillResponse.Builder()\n .setRequiredSavableIds(SAVE_DATA_TYPE_ADDRESS, ID_ADDRESS1, ID_CITY)\n .setOptionalSavableIds(ID_ADDRESS2);\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public google.maps.fleetengine.v1.LicensePlate.Builder getLicensePlateBuilder() {\n \n onChanged();\n return getLicensePlateFieldBuilder().getBuilder();\n }", "@Nonnull\n public TSDBDef build() {\n if ( mergePolicy == null || fieldTypes == null) {\n throw new IllegalArgumentException(\"Field types and merge policies must be specified.\");\n }\n if ( blockPeriod == null || recordPeriod == null) {\n throw new IllegalArgumentException(\"Both the block period and record period must be specified.\");\n }\n if ( blockPeriod.length != recordPeriod.length) {\n throw new IllegalArgumentException(\"Both the block period and record period must be the same length.\");\n }\n // check that its possible to build a fixed period structure from the input data.\n for(int i = 0; i < blockPeriod.length; i++) {\n if ( blockPeriod[i] < recordPeriod[i] || blockPeriod[i]%recordPeriod[i] != 0) {\n throw new IllegalArgumentException(\"Each block period must be greater that the record period and the block period must be a multiple of the record period.\");\n }\n if (i > 0) {\n if ( recordPeriod[i] < recordPeriod[i-1] || recordPeriod[i]%recordPeriod[i-1] != 0) {\n throw new IllegalArgumentException(\"Each record period must be an exact multiple of the previous block record peroid.\");\n }\n if ( recordPeriod[i] > blockPeriod[i-1] ) {\n throw new IllegalArgumentException(\"Each record period must less thanthe previous block peroid.\");\n }\n }\n }\n int[] nrecords = new int[blockPeriod.length];\n for ( int i = 0; i < nrecords.length; i++) {\n nrecords[i] = (int)(blockPeriod[i]/recordPeriod[i]);\n }\n int[] recordWindow = new int[blockPeriod.length-1];\n for ( int i = 0; i < nrecords.length-1; i++) {\n recordWindow[i] = (int)(recordPeriod[i+1]/recordPeriod[i]);\n }\n long[] recordPeriodms = new long[recordPeriod.length];\n for (int i = 0; i < recordPeriod.length; i++) {\n recordPeriodms[i] = recordPeriod[i]*1000L;\n }\n\n\n return new TSDBDef(filename, name, fieldTypes, mergePolicy, nrecords, recordWindow, recordPeriodms, metadata);\n }", "public static ProductBuilder builder() {\n return ProductBuilder.of();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public UTFBlockLexiconBuilder() {\n\t\tsuper();\n\t\tlexiconOutputStream = UTFBlockLexiconOutputStream.class;\n\t\tlexiconInputStream = UTFBlockLexiconInputStream.class;\n\t\tLexiconMapClass = BlockLexiconMap.class;\n\t\ttry{ TempLex = (LexiconMap) LexiconMapClass.newInstance(); } catch (Exception e) {logger.error(e);}\n\t}", "private Builder() {\n super(QueryBankBalanceMessage.SCHEMA$);\n }", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = null;\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "public Builder() {\n }", "public Builder() {\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public lanyotech.cn.park.protoc.ParkingProtoc.Parking.Builder getParkingBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getParkingFieldBuilder().getBuilder();\n }", "static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "private Row.SimpleBuilder rowBuilder()\n {\n if (rowBuilder == null)\n {\n rowBuilder = updateBuilder.row();\n if (noRowMarker)\n rowBuilder.noPrimaryKeyLivenessInfo();\n }\n\n return rowBuilder;\n }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public static Object builder() {\n\t\treturn null;\n\t}", "public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }", "public phaseI.Hdfs.DataNodeLocation.Builder getLocationBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getLocationFieldBuilder().getBuilder();\n }", "public static Object builder() {\n\t\treturn null;\r\n\t}" ]
[ "0.6482392", "0.6199236", "0.5879418", "0.58488816", "0.58188164", "0.5763237", "0.57515556", "0.572725", "0.5725912", "0.567489", "0.5614652", "0.5573003", "0.5486422", "0.5464883", "0.54588044", "0.5436904", "0.5420364", "0.5420364", "0.5418486", "0.540193", "0.540193", "0.540193", "0.540193", "0.53688914", "0.5357041", "0.5328139", "0.5328139", "0.5328139", "0.5326622", "0.5325769", "0.5325415", "0.53193086", "0.5314813", "0.5314711", "0.5303607", "0.5280324", "0.5271189", "0.5270157", "0.5262334", "0.5250697", "0.52453536", "0.5240879", "0.5235888", "0.5221975", "0.5221975", "0.5221975", "0.5221975", "0.5214369", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.52000827", "0.5194726", "0.5188269", "0.5179021", "0.51729745", "0.51612854", "0.5156445", "0.5125754", "0.51246685", "0.51240194", "0.51240194", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5113667", "0.5112518", "0.5109696", "0.5108192", "0.5108192", "0.5108192", "0.51024", "0.50941247", "0.5084339", "0.5081294", "0.50764936", "0.5076192" ]
0.56885487
9
Creates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query.
BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public Builder setNewBlock(\n phaseI.Hdfs.BlockLocations.Builder builderForValue) {\n if (newBlockBuilder_ == null) {\n newBlock_ = builderForValue.build();\n onChanged();\n } else {\n newBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public alluxio.proto.journal.Block.BlockInfoEntry.Builder getBlockInfoBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getBlockInfoFieldBuilder().getBuilder();\n }", "public PaymentType builder()\n {\n return new PaymentType(this);\n }", "public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private static CurveBuildingBlock toBlock(CurveGroupDefinition groupDefn) {\n ImmutableList.Builder<CurveParameterSize> builder = ImmutableList.builder();\n for (CurveGroupEntry entry : groupDefn.getEntries()) {\n NodalCurveDefinition defn = entry.getCurveDefinition();\n builder.add(CurveParameterSize.of(defn.getName(), defn.getParameterCount()));\n }\n return CurveBuildingBlock.of(builder.build());\n }", "BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry);", "public alluxio.proto.journal.File.NewBlockEntry.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00200000;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public alluxio.proto.journal.Block.BlockContainerIdGeneratorEntry.Builder getBlockContainerIdGeneratorBuilder() {\n bitField0_ |= 0x00000008;\n onChanged();\n return getBlockContainerIdGeneratorFieldBuilder().getBuilder();\n }", "StatementBlock createStatementBlock();", "public Builder setNewBlock(\n alluxio.proto.journal.File.NewBlockEntry.Builder builderForValue) {\n if (newBlockBuilder_ == null) {\n newBlock_ = builderForValue.build();\n onChanged();\n } else {\n newBlockBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00200000;\n return this;\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public static Builder newBuilder() {\n return Builder.createDefault();\n }", "public Pokemon.Currency.Builder getCurrencyBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getCurrencyFieldBuilder().getBuilder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public Builder setBlockInfo(\n phaseI.Hdfs.BlockLocations.Builder builderForValue) {\n if (blockInfoBuilder_ == null) {\n blockInfo_ = builderForValue.build();\n onChanged();\n } else {\n blockInfoBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder newBuilder() {\n return new Builder();\n }", "public static Builder builder(String lineType){\n return new Builder(lineType);\n }", "private Builder() {\n\t\t}", "Block createBlock();", "@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }", "public Builder() {\n\t\t}", "public static CommandViewBuilder builder(String commandBlock)\n\t{\n\t\treturn new CommandViewBuilder(commandBlock);\n\t}", "public Builder setNewBlock(phaseI.Hdfs.BlockLocations value) {\n if (newBlockBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n newBlock_ = value;\n onChanged();\n } else {\n newBlockBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public ItemBlock createItemBlock() {\n\t\treturn new GenericItemBlock(this);\n\t}", "BlockAssignmentType createBlockAssignmentType();", "static Builder newBuilder() {\n return new Builder();\n }", "protected PagerAbstract<Block> createPagerDefault() {\n PagerBlock pager = new PagerBlock(pc);\r\n pager.setLookUpRangeStart(blockStart);\r\n pager.setLookUpRangeEnd(blockEnd);\r\n pager.setTimingEnabled(true);\r\n pager.setAscending(isAscendingOrder());\r\n pager.setFitRange(true); //we don't want results outside the \r\n pager.setManualExactPageSize(false);\r\n pager.setPageSize(pc.getDefaultPageSizeRootBlock());\r\n pager.build();\r\n return pager;\r\n }", "public MutableBlock createMutableBlock(ExpressionBuilder expression) {\r\n return new MutableBlock(passwordType, expression.toString());\r\n }", "private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }", "DefineBlock createDefineBlock();", "private CannedFillResponse.Builder newResponseBuilder() {\n return new CannedFillResponse.Builder()\n .setRequiredSavableIds(SAVE_DATA_TYPE_ADDRESS, ID_ADDRESS1, ID_CITY)\n .setOptionalSavableIds(ID_ADDRESS2);\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.NewBlockEntry, alluxio.proto.journal.File.NewBlockEntry.Builder, alluxio.proto.journal.File.NewBlockEntryOrBuilder>(\n newBlock_,\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "public google.maps.fleetengine.v1.LicensePlate.Builder getLicensePlateBuilder() {\n \n onChanged();\n return getLicensePlateFieldBuilder().getBuilder();\n }", "@Nonnull\n public TSDBDef build() {\n if ( mergePolicy == null || fieldTypes == null) {\n throw new IllegalArgumentException(\"Field types and merge policies must be specified.\");\n }\n if ( blockPeriod == null || recordPeriod == null) {\n throw new IllegalArgumentException(\"Both the block period and record period must be specified.\");\n }\n if ( blockPeriod.length != recordPeriod.length) {\n throw new IllegalArgumentException(\"Both the block period and record period must be the same length.\");\n }\n // check that its possible to build a fixed period structure from the input data.\n for(int i = 0; i < blockPeriod.length; i++) {\n if ( blockPeriod[i] < recordPeriod[i] || blockPeriod[i]%recordPeriod[i] != 0) {\n throw new IllegalArgumentException(\"Each block period must be greater that the record period and the block period must be a multiple of the record period.\");\n }\n if (i > 0) {\n if ( recordPeriod[i] < recordPeriod[i-1] || recordPeriod[i]%recordPeriod[i-1] != 0) {\n throw new IllegalArgumentException(\"Each record period must be an exact multiple of the previous block record peroid.\");\n }\n if ( recordPeriod[i] > blockPeriod[i-1] ) {\n throw new IllegalArgumentException(\"Each record period must less thanthe previous block peroid.\");\n }\n }\n }\n int[] nrecords = new int[blockPeriod.length];\n for ( int i = 0; i < nrecords.length; i++) {\n nrecords[i] = (int)(blockPeriod[i]/recordPeriod[i]);\n }\n int[] recordWindow = new int[blockPeriod.length-1];\n for ( int i = 0; i < nrecords.length-1; i++) {\n recordWindow[i] = (int)(recordPeriod[i+1]/recordPeriod[i]);\n }\n long[] recordPeriodms = new long[recordPeriod.length];\n for (int i = 0; i < recordPeriod.length; i++) {\n recordPeriodms[i] = recordPeriod[i]*1000L;\n }\n\n\n return new TSDBDef(filename, name, fieldTypes, mergePolicy, nrecords, recordWindow, recordPeriodms, metadata);\n }", "public static ProductBuilder builder() {\n return ProductBuilder.of();\n }", "public phaseI.Hdfs.BlockLocations.Builder getBlockLocationsBuilder(\n int index) {\n return getBlockLocationsFieldBuilder().getBuilder(index);\n }", "public UTFBlockLexiconBuilder() {\n\t\tsuper();\n\t\tlexiconOutputStream = UTFBlockLexiconOutputStream.class;\n\t\tlexiconInputStream = UTFBlockLexiconInputStream.class;\n\t\tLexiconMapClass = BlockLexiconMap.class;\n\t\ttry{ TempLex = (LexiconMap) LexiconMapClass.newInstance(); } catch (Exception e) {logger.error(e);}\n\t}", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = null;\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "private Builder() {\n super(QueryBankBalanceMessage.SCHEMA$);\n }", "public Builder() {\n }", "public Builder() {\n }", "public lanyotech.cn.park.protoc.ParkingProtoc.Parking.Builder getParkingBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getParkingFieldBuilder().getBuilder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "private Row.SimpleBuilder rowBuilder()\n {\n if (rowBuilder == null)\n {\n rowBuilder = updateBuilder.row();\n if (noRowMarker)\n rowBuilder.noPrimaryKeyLivenessInfo();\n }\n\n return rowBuilder;\n }", "public static Builder builder() {\n return new Builder().defaults();\n }", "public static Object builder() {\n\t\treturn null;\n\t}", "public static ProductVariantBuilder builder() {\n return ProductVariantBuilder.of();\n }", "public phaseI.Hdfs.DataNodeLocation.Builder getLocationBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getLocationFieldBuilder().getBuilder();\n }", "public static Object builder() {\n\t\treturn null;\r\n\t}" ]
[ "0.6482054", "0.61986226", "0.58484954", "0.58181465", "0.57602006", "0.57530284", "0.57281286", "0.5725598", "0.56876445", "0.5675209", "0.56149924", "0.55730313", "0.5486088", "0.54635364", "0.5455692", "0.54369366", "0.5420576", "0.5420576", "0.5417989", "0.5401553", "0.5401553", "0.5401553", "0.5401553", "0.5368561", "0.53563416", "0.53278476", "0.53278476", "0.53278476", "0.5324797", "0.53237194", "0.5322359", "0.53183854", "0.5313369", "0.53121626", "0.5302145", "0.52780414", "0.5270028", "0.5269873", "0.5261124", "0.52486056", "0.5244552", "0.52391255", "0.52360433", "0.5220456", "0.5220456", "0.5220456", "0.5220456", "0.52152413", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.5198883", "0.51947165", "0.5187462", "0.51785314", "0.5172794", "0.5159689", "0.5154692", "0.51238537", "0.51230186", "0.51223916", "0.51223916", "0.51130885", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5112125", "0.5108085", "0.510665", "0.510665", "0.510665", "0.51044524", "0.50933737", "0.50833684", "0.5082078", "0.507722", "0.5075161" ]
0.58784354
2
Are the values in the specified blocks at the specified positions equal? This method assumes input is not null.
boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "public static boolean block(int p_block_0_, int p_block_1_, MatchBlock[] p_block_2_) {\n/* 33 */ if (p_block_2_ == null)\n/* */ {\n/* 35 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 39 */ for (int i = 0; i < p_block_2_.length; i++) {\n/* */ \n/* 41 */ MatchBlock matchblock = p_block_2_[i];\n/* */ \n/* 43 */ if (matchblock.matches(p_block_0_, p_block_1_))\n/* */ {\n/* 45 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 49 */ return false;\n/* */ }", "private final void verifyInnerValues(ComputationalBlock block, double[] expectedValues) {\n\t\tFieldIterator iterator = block.getInnerIterator();\n\t\tfor (int i=0; i<totalSize; i++) {\n\t\t\tassertEquals(expectedValues[i], iterator.currentValue(), 4*Math.ulp(expectedValues[i]));\n\t\t\titerator.next();\n\t\t}\n\t}", "public boolean isEqual(Tuple t){\n Object[] temp=t.getPattern();\n if(t.getSize()!=size)return false;\n else {\n for(int i=0;i<size;i++){\n if(pattern[i].equals(temp[i])==false && temp[i]!=\"*\"){\n return false;\n }\n }\n }\n return true;\n }", "@Test\n public void isOccupiedAndGetBlockReturnTheSameAnswer() {\n Tetromino tetromino = Tetromino.Z;\n Direction direction = Direction.DOWN;\n\n for (int y = 0; y < tetromino.height; y++) {\n for (int x = 0; x < tetromino.width; x++) {\n String coordinates = String.format(\"Tetromino Z[DOWN] block (x,y) = (%d,%d)\", x, y);\n\n boolean isOccupied = tetromino.isOccupied(direction, x, y);\n Block block = tetromino.getBlock(direction, x, y);\n\n assertEquals(coordinates, isOccupied, (block != null));\n }\n }\n }", "private final void verifyGhostRegionValues(ComputationalComposedBlock block) throws MPIException {\n\t\tBoundaryIterator boundaryIterator = block.getBoundaryIterator();\n\t\tBoundaryIterator expectedValuesIterator = block.getBoundaryIterator();\n\t\tBoundaryId boundary = new BoundaryId();\n\t\tfor (int d=0; d<2*DIMENSIONALITY; d++) {\n\t\t\tblock.receiveDoneAt(boundary);\n\t\t\tboundaryIterator.setBoundaryToIterate(boundary);\n\t\t\tBoundaryId oppositeBoundary = boundary.oppositeSide();\n\t\t\texpectedValuesIterator.setBoundaryToIterate(oppositeBoundary);\n\t\t\twhile (boundaryIterator.isInField()) {\n\t\t\t\t// Check the ghost values outside the current element.\n\t\t\t\tfor (int offset=1; offset<extent; offset++) {\n\t\t\t\t\tint neighborOffset = offset-1;\n\t\t\t\t\tint directedOffset = boundary.isLowerSide() ? -offset : offset;\n\t\t\t\t\tint directedNeighborOffset = boundary.isLowerSide() ? -neighborOffset : neighborOffset;\n\t\t\t\t\tdouble expected = expectedValuesIterator.currentNeighbor(boundary.getDimension(), directedNeighborOffset);\n\t\t\t\t\tdouble actual = boundaryIterator.currentNeighbor(boundary.getDimension(), directedOffset);\n\t\t\t\t\tassertEquals(expected, actual, 4*Math.ulp(expected));\n\t\t\t\t}\n\t\t\t\tboundaryIterator.next();\n\t\t\t\texpectedValuesIterator.next();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "private boolean blockCheck(int r, int c, int n)\r\n {\r\n int row = (r/3)*3, col = (c/3)*3; //The corner position of the block where (r,c) is\r\n for(int i = row; i < row+3; i++)\r\n for(int j = col; j < col+3; j++)\r\n if(game[i][j] == n)\r\n return false;\r\n return true;\r\n }", "public boolean sameposition(ArrayStack<Integer> st1,\n ArrayStack<Integer> st2, int pos){\n if(st1.isEmpty() || st2.isEmpty())\n return false;\n ArrayStack<Integer> temp = new ArrayStack<Integer>(st1),\n temp2 = new ArrayStack<Integer>(st2);\n\n for(int i=0; i < pos;i++){\n temp.pop();\n temp2.pop();\n }//for\n return temp.peek()== temp2.peek();\n }", "private static void assertEqual(List<byte[]> actual, List<byte[]> expected) {\n if (actual.size() != expected.size()) {\n throw new AssertionError(String.format(\"Different amount of chunks, expected %d actual %d\", expected.size(), actual.size()));\n }\n for (int i = 0; i < actual.size(); i++) {\n byte[] act = actual.get(i);\n byte[] exp = expected.get(i);\n if (act.length != exp.length) {\n throw new AssertionError(String.format(\"Chunks #%d differed in length, expected %d actual %d\", i, exp.length, act.length));\n }\n for (int j = 0; j < act.length; j++) {\n if (act[j] != exp[j]) {\n throw new AssertionError(String.format(\"Chunks #%d differed at index %d, expected %d actual %d\", i, j, exp[j], act[j]));\n }\n }\n }\n }", "public boolean equals(Object other) {\n if (other == this) return true;\n if (other == null) return false;\n if (other.getClass() != this.getClass()) return false;\n Board that = (Board) other;\n if (this.dimension() != that.dimension()) return false;\n for (int i = 0; i < dimension(); i++){\n for (int j = 0; j < dimension(); j++){\n if (that.blocks[i][j] != blocks[i][j])\n return false;\n }\n }\n return true;\n }", "static boolean ifSafe(int[] placement, int row) {\n\t\tfor(int j = 0; j < row; j++) {\n\t\t\tif(placement[j] == placement[row]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint columnDiff = placement[row] - placement[j];\n\t\t\tint rowDiff = row - j;\n\t\t\tif(columnDiff == rowDiff) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}", "public boolean allDuplicatesEqual() {\n int[] input = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5};\n int dupA = findDuplicatesA(input);\n int dupB = findDuplicatesB(input);\n int dupC = findDuplicatesC(input);\n int dupD = findDuplicatesD(input);\n int dupE = findDuplicatesE(input);\n return dupA == dupB && dupA == dupC && dupA == dupD && dupA == dupE;\n }", "private static boolean contentEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n //if ( !sizeEqual(state1, state2) ) return false;\n\n return Stream.of(new SimpleImmutableEntry<>(state1, state2))\n .flatMap( //map the pair of states to many pairs of piles\n statePair -> Arrays.stream(E_PileID.values())\n .map(pileID -> new SimpleEntry<>(\n statePair.getKey().get(pileID),\n statePair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .flatMap( // map the pairs of piles to many pairs of Optional<I_card>s.\n listPair -> IntStream //make sure to always traverse the longer list\n .range(0, Math.max(listPair.getKey().size(), listPair.getValue().size()))\n .mapToObj(i -> new SimpleEntry<>(\n getIfExists(listPair.getKey(), i),\n getIfExists(listPair.getValue(), i))\n )\n )\n // map pairs to booleans by checking that the element in a pair are equal\n .map(cardPair -> Objects.equals(cardPair.getKey(), cardPair.getValue()))\n // reduce the many values to one bool by saying all must be true or the statement is false\n .reduce(true, (e1, e2) -> e1 && e2);\n }", "@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }", "public boolean checkBlockValidSudoku(int pos, Character c){\n\t\tint row=pos/9;\n\t\tint col=pos%9; // use position to calculate the row and column\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==col) continue;\n\t\t\tif(sudokuDisplay[row][i]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==row) continue; // avoid self check\n\t\t\tif(sudokuDisplay[i][col]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<3;i++)\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(row/3*3+i==row && col/3*3+j==col) continue;\n\t\t\t\tif(sudokuDisplay[row/3*3+i][col/3*3+j]==c) \n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}", "public static boolean blockId(int p_blockId_0_, MatchBlock[] p_blockId_1_) {\n/* 55 */ if (p_blockId_1_ == null)\n/* */ {\n/* 57 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 61 */ for (int i = 0; i < p_blockId_1_.length; i++) {\n/* */ \n/* 63 */ MatchBlock matchblock = p_blockId_1_[i];\n/* */ \n/* 65 */ if (matchblock.getBlockId() == p_blockId_0_)\n/* */ {\n/* 67 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 71 */ return false;\n/* */ }", "private boolean complementsBlockBuffer(Block b) {\n for (Block i : blockBuffer) {\n if (b.prevHash.equals(i.hash)) {\n return true;\n }\n }\n return false;\n }", "public static boolean isBlockTouching(Block block1, Block block2) {\r\n\t\tint x1 = block1.getX();\r\n\t\tint y1 = block1.getY();\r\n\t\tint z1 = block1.getZ();\r\n\t\tint x2 = block2.getX();\r\n\t\tint y2 = block2.getY();\r\n\t\tint z2 = block2.getZ();\r\n\r\n\t\tint x = x2 - x1;\r\n\t\tint y = y2 - y1;\r\n\t\tint z = z2 - z1;\r\n\r\n\t\tx = x < 0 ? -x : x;\r\n\t\ty = y < 0 ? -y : y;\r\n\t\tz = z < 0 ? -z : z;\r\n\r\n\t\tint sum = x + y + z;\r\n\t\treturn sum == 1;\r\n\r\n\t\t// for (BlockFace face : new BlockFace[] { BlockFace.NORTH,\r\n\t\t// BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST, BlockFace.UP,\r\n\t\t// BlockFace.DOWN }) {\r\n\t\t// if (block1.getRelative(face).equals(block2)) {\r\n\t\t// return true;\r\n\t\t// }\r\n\t\t// }\r\n\t\t// return false;\r\n\t}", "private void checkComparabilityOfGroundTruthAndExtractedPostBlocks() {\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockIsInGT = false;\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInGT = true;\n break;\n }\n }\n\n if (!postBlockIsInGT) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }\n\n\n // check whether all post blocks from ground truth are found in the extracted post blocks\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockIsInCS = false;\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInCS = true;\n break;\n }\n }\n }\n\n if (!postBlockIsInCS) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean equivalent(CircularArray k) {\r\n int p = k.start;\r\n int q = start;\r\n int counter = 0;\r\n for (int i = 0; i < size; i++) {\r\n if (cir[q] == k.cir[p]) {\r\n counter++;\r\n } else {\r\n return false;\r\n }\r\n p = (p + 1) % cir.length;\r\n q = (q + 1) % k.cir.length;\r\n }\r\n if (counter > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public final boolean equal() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue == secondTopMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "private boolean correctPlacement(int[] pos) {\n for (int i = 0; i < crtStep; ++i) {\n for (int j = i + 1; j <= crtStep; ++j) {\n if (pos[i] == pos[j] || i - pos[i] == j - pos[j] || i + pos[i] == j + pos[j]) {\n return false;\n }\n }\n }\n \n return true;\n }", "protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) {\n\t\tArrayList<Snak> snakList1 = new ArrayList<>(5);\n\t\twhile (snaks1.hasNext()) {\n\t\t\tsnakList1.add(snaks1.next());\n\t\t}\n\n\t\tint snakCount2 = 0;\n\t\twhile (snaks2.hasNext()) {\n\t\t\tsnakCount2++;\n\t\t\tSnak snak2 = snaks2.next();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < snakList1.size(); i++) {\n\t\t\t\tif (snak2.equals(snakList1.get(i))) {\n\t\t\t\t\tsnakList1.set(i, null);\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn snakCount2 == snakList1.size();\n\t}", "public boolean equals(Object y) {\n if (y == null) return false;\n if (y == this) return true;\n if (y.getClass() != this.getClass()) return false;\n Board that = (Board)y;\n if (N != that.N) return false;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (blocks[i][j] != that[i][j]) {\n retrun false;\n }\n }\n }\n return true;\n }", "boolean isFinalAnswer(List<List<Integer>> puzzle) {\n List<Integer> expectedList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);\n\n // check row\n int rowMatchedCount = 9;\n for (int rowIndex = 0; rowIndex < 9; rowIndex++) {\n List<Integer> rowNums = new ArrayList<>(puzzle.get(rowIndex));\n Collections.sort(rowNums);\n if (rowNums.equals(expectedList)) {\n rowMatchedCount -= 1;\n }\n }\n\n // check col\n int colMatchedCount = 9;\n for (int colIndex = 0; colIndex < 9; colIndex++) {\n List<Integer> colNums = new ArrayList<>(getColValues(colIndex, puzzle));\n Collections.sort(colNums);\n if (colNums.equals(expectedList)) {\n colMatchedCount -= 1;\n }\n }\n\n // check block\n int blockMatchedCount = 9;\n for (List<Integer> rowAndCol : getAllBlockTopLeftPos()) {\n List<Integer> blockNums =\n new ArrayList<>(getBlockValues(rowAndCol.get(0), rowAndCol.get(1), puzzle));\n Collections.sort(blockNums);\n if (blockNums.equals(expectedList)) {\n blockMatchedCount -= 1;\n }\n }\n\n return (rowMatchedCount + colMatchedCount + blockMatchedCount) == 0;\n }", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}", "public boolean isSame(){\r\n\t\tHugeInt mod2 = new HugeInt(this.p);\r\n\t\tmod2.modByHugeInt(new HugeInt(\"2\"));\r\n\t\tmod2.printHugeInt();\r\n\t\t\r\n\t\tHugeInt mod3 = new HugeInt(this.p);\r\n\t\tmod3.modByHugeInt(new HugeInt(\"3\"));\r\n\t\t\r\n\t\tif(this.p.compareHugeInts(this.p, new HugeInt(\"1\")) != -1)\r\n\t\t\tSystem.out.println(\"less than or equal to 1\");\r\n\t\telse if(this.p.compareHugeInts(this.p, new HugeInt(\"3\")) != -1)\r\n\t\t\tSystem.out.println(\"greater than 1 but less than 3\");\r\n\t\telse if(mod2.areAllZeros() || mod3.areAllZeros())\r\n\t\t\tSystem.out.println(\"mod by 2 or 3\");\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean almostEqual(Coordinates a, Coordinates b);", "private boolean compareLocation(Location location){\n return location.getBlockX()==this.location.getBlockX() && location.getBlockY()==this.location.getBlockY() && location.getBlockZ() == this.location.getBlockZ();\n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "public static boolean checkValues (Iterable<Versioned<byte[]>> values, Versioned<byte[]> expected) {\n\t\tIterator<Versioned<byte[]>> itValue = values.iterator();\n\t\twhile (itValue.hasNext()) {\n\t\t\tVersioned<byte[]> curr = itValue.next();\n\t\t\tif ( ! Arrays.equals(expected.getValue(), curr.getValue()) ) {\n\t\t\t\tSystem.err.println(\"Expected value is different!!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isBlocksInSameRegion(MethodNode mth, BlockNode firstBlock, BlockNode secondBlock) {\n\t\tRegion region = mth.getRegion();\n\t\tif (region == null) {\n\t\t\treturn false;\n\t\t}\n\t\tIContainer firstContainer = getBlockContainer(region, firstBlock);\n\t\tif (firstContainer instanceof IRegion) {\n\t\t\tif (firstContainer instanceof IBranchRegion) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tList<IContainer> subBlocks = ((IRegion) firstContainer).getSubBlocks();\n\t\t\treturn subBlocks.contains(secondBlock);\n\t\t}\n\t\treturn false;\n\t}", "int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);", "@Test\r\n public void test0IsEqual_ThreeElements() {\r\n Tour tourA = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}});\r\n Tour tourB = new Tour(new int[][]{{0, 0}, {1, 1}, {2, 2}});\r\n assertTrue(tourA.isEqual(tourB));\r\n }", "protected boolean matchData() {\n for (int i = 0; i < itsNumPoints; i++) {\n if (itsValues[i] == null || itsValues[i].getData() == null) {\n return false;\n }\n }\n return true;\n }", "private static boolean sizeEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n\n // make a stream with a data structure containing both states\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .allMatch(pair -> pair.getKey().size() == pair.getValue().size()); // check they have equal sizes\n }", "private boolean allVolumeSizesMatch(List<Long> currentVolumeSizes) {\n // If the storage systems match then check all current sizes of the volumes too, any mismatch\n // will lead to a calculation check\n List<Long> currentVolumeSizesCopy = new ArrayList<Long>();\n currentVolumeSizesCopy.addAll(currentVolumeSizes);\n for (Long currentSize : currentVolumeSizes) {\n for (Long compareSize : currentVolumeSizesCopy) {\n if (currentSize.longValue() != compareSize.longValue()) {\n return false;\n }\n }\n }\n\n _log.info(\"All volumes are of the same size. No need for capacity calculations.\");\n return true;\n }", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "public static boolean same(int[][] list) {\r\n \tfor (int i=1; i<list.length; i++)\r\n \t\tif (!same(list[0], list[i]))\r\n \t\t\treturn false;\r\n \treturn true;\r\n }", "public boolean equalTo( PuzzleGrid pg )\n\t{\n\t\tboolean equal = true;\n\t\t\n\t\t// For each element in each grid, test for equality\n\t\t// Loops break if it is found that two elements are not equal\n\t\tfor ( int y = 0; y < height && equal == true; y++ )\n\t\t{\n\t\t\tfor ( int x = 0; x < width && equal == true; x++ )\n\t\t\t{\n\t\t\t\t// If any element is not equal, equal = false\n\t\t\t\tif ( grid[x][y] != pg.getRawGrid()[x][y] ) \n\t\t\t\t{\n\t\t\t\t\tequal = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn equal;\n\t}", "public Boolean sameCenterPoints(Cell cell) {\r\n int centerX = cell.getcenterX();\r\n int centerY = cell.getcenterY();\r\n for (int i = 0; i < cells.size(); i++) {\r\n Cell currCell = cells.get(i);\r\n if (currCell.getcenterX()==centerX && currCell.getcenterY()==centerY\r\n ) {\r\n return (true);\r\n }\r\n }\r\n return false;\r\n }", "public boolean isEqualTo(Cluster c)\n {\n int len = this.size();\n if (len != c.size()){\n return false;\n }\n if (len == 0){\n return true;\n }\n if (this.getLeader() != c.getLeader()){\n return false;\n }\n for (Integer n : this._elems){\n if (!c.contains(n)){\n return false;\n }\n }\n return true;\n }", "public boolean isEqual(Move m){\r\n\t\treturn m.getStartSquare()==start_sq&&m.getEndSquare()==end_sq&&(m.getModifier()==modifiers % 10);\r\n\t}", "private static boolean isEqual(int[] nums1, int[] nums2){\n \tfor(int i=0; i<nums1.length; i++){\n \t\tif(nums1[i]!=nums2[i]){\n \t\t\treturn false;\n \t\t}\n \t}\n \treturn true;\n }", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "boolean equals(GameState b) {\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (board[i][j] != b.board[i][j]) {\n return false;\n }\n }\n }\n return true;\n\n }", "private void assertDataUsageEquals(long[] dataIds, int... expectedValues) {\n if (dataIds.length != expectedValues.length) {\n throw new IllegalArgumentException(\"dataIds and expectedValues must be the same size\");\n }\n\n for (int i = 0; i < dataIds.length; i++) {\n assertDataUsageEquals(dataIds[i], expectedValues[i]);\n }\n }", "public boolean valid(List<Integer> curr){\n int size = curr.size();\n // compare last item with earlier ones\n // row: i col: curr[i]\n for(int i=0; i<size-1; i++){\n if ( curr.get(i) == curr.get(size-1) || \n i + curr.get(i) == curr.get(size-1) + (size-1) ||\n i - curr.get(i) == (size-1) - curr.get(size-1)\n )\n return false;\n }\n return true;\n }", "public boolean percolates() {\n if (grid.length == 1) {\n return isOpen(1, 1);\n }\n return uf.find(grid.length * grid.length) == uf.find(grid.length * grid.length + 1);\n }", "boolean contains(@NotNull BlockData block);", "private static boolean checkIsTrue() {\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tif(col[i]!=colTemp[i]){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tif(row[i]!=rowTemp[i]){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean identicalAtoms(IAtomContainer molecule1, List<IAtomContainer> fragsToCompare) {\n\t\n \tfor (int i = 0; i < fragsToCompare.size(); i++) {\n \t\t//no match\n \t\tif (molecule1.getBondCount() != fragsToCompare.get(i).getBondCount() && molecule1.getAtomCount() != fragsToCompare.get(i).getAtomCount()) \n \t\t{\n \t\t\tcontinue;\n \t\t}\n \t\t\n\n \t\tint n = 0;\n \t\t//array storing all already tried atoms\n \t\tboolean[] doneAtoms = new boolean[atomsContained + 1];\n \t\tfor (int j = 0; j < molecule1.getAtomCount(); j++) {\n \t\t\tfor (int k = 0; k < fragsToCompare.get(i).getAtomCount(); k++) \n \t\t\t{\n \t\t\t\t//compare atoms by symbol, thus only check for the same sum formula --> EXPERIMENTAL\n \t\t\t\tif(molecularFormulaRedundancyCheck)\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).getSymbol().equals(fragsToCompare.get(i).getAtom(k).getSymbol()) &&\n \t\t\t\t\t\t\t!doneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())]) {\n \t\t\t\t\tn++;\n \t\t\t\t\tdoneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())] = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t} \t\t\t\t\n \t\t\t\t//normal test creates way more fragments!\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).equals(fragsToCompare.get(i).getAtom(k))) {\n \t\t\t\t\tn++;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tif(n == molecule1.getAtomCount())\n \t\t\treturn true;\n\t\t}\n\t //no match found\n\t\treturn false;\n\t}", "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "public boolean same(GameState c, GameState g) \n\t{\n\t\tfor(int x = 0; x<18; x++) //loop through the boards\n\t\t{\n\t\t\tif(c.getBoard()[x] != g.getBoard()[x]) //if one value is not the same in the afrra return false\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;//if they all are the same return true\n\t}", "@Test\n public void testSafeBlocks() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n /* use 0 and 1 position because the margin blocks are inserted initially*/\n assertEquals(new Position(3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE, \n TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(0).getPosition());\n assertEquals(new Position(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n 3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(1).getPosition());\n level.levelUp();\n });\n }", "private boolean arePointsRepeated(Point[] points) {\n for (int i = 0; i < points.length; i++) {\r\n for (int j = i + 1; j < points.length; j++) {\r\n if (points[i].compareTo(points[j]) == 0)\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "private boolean samePosition(ITarget t1, ITarget t2) {\n assert t1.getTag() == t2.getTag() : \"Programmer error; tags must match.\";\n switch (t1.getTag()) {\n case JPL_MINOR_BODY:\n case MPC_MINOR_PLANET:\n case NAMED:\n\n // SUPER SUPER SKETCHY\n // The .equals logic in NonSiderealTarget actually does what we want here, at\n // least according to the old implementation here. So we'll leave it for now.\n // This will be easier with the new model.\n return t1.equals(t2);\n\n case SIDEREAL:\n final HmsDegTarget hms1 = (HmsDegTarget) t1;\n final HmsDegTarget hms2 = (HmsDegTarget) t2;\n return hasSameCoordinates(hms1, hms2) &&\n hasSameProperMotion(hms1, hms2) &&\n hasSameTrackingDetails(hms1, hms2);\n\n default:\n throw new Error(\"Unpossible target tag: \" + t1.getTag());\n }\n }", "private static boolean allElementsEqual(Mark[] array) {\n\t\t\n\t\tboolean areEqual = true;\n\t\t\n for(int i=0 ; i < array.length; i++) {\n \t\n \t\n \tif (array[i] == null) {\n \t\tareEqual = false;\n \t\tbreak;\n \t}\n \t\n if(!array[0].equals(array[i])) {\n areEqual = false;\n break;\n }\n }\n\n return areEqual;\n }", "public boolean abstractEqualTo(AbstractData that)\n {\n\treturn equalTo((FullPositionVector)that);\n }", "public boolean equal(int row, int col){ \n return this.row == row && this.col == col;\n }", "@Test\n public void testNullPositionEquals(){\n assertFalse(Maze.position(0,0).equals(null));\n }", "private boolean isValuePlacementValid(int row, int column, int value) {\n\t\tfor(int i=0;i<9;i++) {\n\t\t\tif(value == sudokuMatrix[row][i])\n\t\t\t\treturn false;\n\t\t}\n\t\tfor(int i=0;i<9;i++) {\n\t\t\tif(value == sudokuMatrix[i][column])\n\t\t\t\treturn false;\n\t\t}\n\t\tint cornerX = 0;\n\t\tint cornerY = 0;\n\t\tif(row > 2)\n\t\t\tif(row > 5)\n\t\t\t\tcornerX = 6;\n\t\t\telse\n\t\t\t\tcornerX = 3;\n\t\tif(column > 2)\n\t\t\tif(column > 5)\n\t\t\t\tcornerY = 6;\n\t\t\telse\n\t\t\t\tcornerY = 3;\n\t\tfor(int i=cornerX;i<10 && i<cornerX+3;i++) //check if the value is not present in the same grid already\n\t\t\tfor(int j=cornerY;j<10 && j<cornerY+3;j++)\n\t\t\t\tif(value == sudokuMatrix[i][j])\n\t\t\t\t\treturn false;\n\t\treturn true;\n\t}", "public Boolean checkIfTumblerRowIsAllTheSame(Tumbler tum) {\n if (tum.getTumbler1() == tum.getTumbler2() && tum.getTumbler1() == tum.getTumbler3() && tum.getTumbler1() == tum.getTumbler4()\n && tum.getTumbler1() == tum.getTumbler5()) {\n return true;\n }\n return false;\n }", "@Override\n public boolean equals(Object inst) {\n if (inst == this)\n {\n return true;\n }\n if (!(inst instanceof BoardPosition))\n {\n return false;\n }\n BoardPosition pos = (BoardPosition) inst;\n return column == pos.column && row == pos.row;\n }", "public boolean isSameSapling(World par1World, int par2, int par3, int par4, int par5)\n {\n return par1World.getBlockId(par2, par3, par4) == this.blockID && (par1World.getBlockMetadata(par2, par3, par4) & 3) == par5;\n }", "public boolean equals(Data C) {\n return (this.getLeft() == C.getLeft() && this.getRight() == C.getRight() &&\n this.getTop() == C.getTop() && this.getBottom() == C.getBottom());\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }", "public boolean equals(Object y) {\n\n if (y == this) {\n return true;\n }\n if (y == null) {\n return false;\n }\n if (y.getClass() != this.getClass()) {\n return false;\n }\n\n Board that = (Board) y;\n\n if (dimension() != that.dimension()) {\n return false;\n }\n\n for (int i = 0; i < blocks.length; i++) {\n for (int j = 0; j < blocks[i].length; j++) {\n if (blocks[i][j] != that.blocks[i][j]) {\n return false;\n }\n }\n\n }\n\n return true;\n }", "@Test\n public void cloneTestPuttingBlocks() {\n Playground orginal = new Playground(5, 0.0);\n\n //Place two blocks on empty fields\n if (!orginal.take(1, 1, 1, 2))\n fail();\n if (!orginal.take(1, 4, 2, 4))\n fail();\n\n Playground clone = orginal.clone();\n\n //Try to place block on empty spot\n if (!clone.take(0, 1, 4, 1))\n fail();\n //Try to place block on taken spot\n if (clone.take(1, 1, 1, 2))\n fail();\n }", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean equals(Cuboid c) {\n\tif (getHeight() == c.getHeight() && getWidth() == c.getWidth() && depth == c.depth) {\n\t return true;\n\t}\n\telse {\n\t return false;\n\t}\n }", "public boolean areEqual(Element element1, Element element2, HashMap<String, Integer> lengthMap, GUIState state, GUIState currentState) throws MultipleListOrGridException {\n if (!isAttributeEqual(element1, element2)) {\n return false;\n }\n\n for (int i = 0; i < max(element1.elements().size(), element2.elements().size()); i++) {\n if (i == ((Element) element1).elements().size() || i == ((Element) element2).elements().size())\n return false;\n if (element1.attributeValue(NodeAttribute.Class) != null && element2.attributeValue(NodeAttribute.Class) != null &&\n (element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView)\n || element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView))) {\n\n if (state.getListSize() != currentState.getListSize() && state.getGridSize() != currentState.getGridSize()) {\n currentState.setIsDynamicListAndGrid(true);\n }\n if (currentState.isDynamicListAndGrid()) {\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) == null)\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), 0);\n\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n } else {\n int lengthValue = lengthMap.get(getCurrentXpath(element1, getStringList(element1))) + 1;\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), lengthValue);\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) >= maxListGridSizeThreshold) {\n this.totalListGridEquivalentStateCount++;\n state.setIsEquivalentState(true);\n if (!state.getImagelist().contains(currentState.getImagelist().get(0)))\n state.addImage(currentState.getImagelist().get(0));\n state.increaseEquivalentStateCount();\n state.setIsListAndGrid(true);\n return true;\n }\n }\n } else {\n return false;\n }\n\n } else {\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "private boolean rowCheck() {\n\t\tfor(int[] row : puzzle) {\n\t\t\tfor(int i = 0; i < row.length; i++) {\n\t\t\t\tif(row[i] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < row.length; j++) {\n\t\t\t\t\t\tif(row[i] == row[j])\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void chunkPosShouldBeMinus2ByMinus2WhenPlayerPosIsMinus111byMinus111() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n final int playerPos = -111;\n final int expectedChunkPos = -2;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(playerPos, playerPos)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(expectedChunkPos, expectedChunkPos))\n );\n }", "public boolean check() {\n return StuffUtils.equal(structure, SpigotUtils.structBetweenTwoLocations(pos1, pos2, material));\n }", "protected boolean isCheckBlockable(Piece.PieceColorOptions playerColor) {\n Coordinate[] coordinatesToBlock;\n Coordinate kingCoordinate, oppCoordinate, allyCoordinate;\n int blockCounter, diffX, diffY, spacesToVerify, xIncrement, yIncrement;\n\n coordinatesToBlock = new Coordinate[VERTICAL_BOARD_LENGTH];\n kingCoordinate = getKingCoordinate(playerColor);\n oppCoordinate = null;\n blockCounter = 0;\n\n outerloop:\n for (int i = 0; i < VERTICAL_BOARD_LENGTH; i++) {\n for (int j = 0; j < HORIZONTAL_BOARD_LENGTH; j++) {\n oppCoordinate = new Coordinate(j, i);\n if (isValidEndpoints(oppCoordinate, kingCoordinate, oppositeColor(playerColor))) {\n if (isValidPath(oppCoordinate, kingCoordinate, oppositeColor(playerColor), false)) {\n coordinatesToBlock[blockCounter] = oppCoordinate;\n blockCounter++;\n // if there is more than one piece checking the King\n // the check is not blockable\n break outerloop;\n }\n }\n }\n }\n\n diffX = subtractXCoordinates(oppCoordinate, kingCoordinate);\n diffY = subtractYCoordinates(oppCoordinate, kingCoordinate);\n xIncrement = calculateIncrement(diffX);\n yIncrement = calculateIncrement(diffY);\n spacesToVerify = Math.max(Math.abs(diffX), Math.abs(diffY)) - 1;\n\n // moving a piece to oppCoordinate capture's the opposing piece\n // only opposing Bishops, Rooks, and Queens can be blocked\n if (isValidDiagonalPath(oppCoordinate, kingCoordinate) || isValidStraightPath(oppCoordinate, kingCoordinate)) {\n for (int i = 0; i < spacesToVerify; i++) {\n Coordinate betweenCoordinate = new Coordinate(oppCoordinate);\n betweenCoordinate.addVals(xIncrement, yIncrement);\n coordinatesToBlock[blockCounter] = betweenCoordinate;\n blockCounter++;\n }\n }\n\n // loop through all Coordinates in coordinatesToBlock and see if any can block the check\n for (int i = 0; i < blockCounter; i++) {\n oppCoordinate = coordinatesToBlock[i];\n for (int j = 0; j < VERTICAL_BOARD_LENGTH; j++) {\n for (int k = 0; k < HORIZONTAL_BOARD_LENGTH; k++) {\n allyCoordinate = new Coordinate(k, j);\n if (isValidEndpoints(allyCoordinate, oppCoordinate, playerColor)) {\n if (isValidPath(allyCoordinate, oppCoordinate, playerColor, false)) {\n if (isMovePossibleWithoutCheck(allyCoordinate, oppCoordinate, playerColor, false)) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }", "@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n if (oldStation.getStationName().equals(newStation.getStationName()) &&\n oldStation.getPlaybackState() == newStation.getPlaybackState() &&\n oldStation.getStationImageSize() == newStation.getStationImageSize()) {\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }", "public boolean sameState(State s){\n\t\tint i = s.getHound1();\n\t\tint j = s.getHound2();\n\t\tint k = s.getHound3();\n\t\tint hare = s.getHare();\n\t\tif(hare==r){\n\t\t\tif((i==h1||i==h2||i==h3)&&(j==h1||j==h2||j==h3)&&(k==h1||k==h2||k==h3)){\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Range integers = (Range) o;\n return length == integers.length && first == integers.first && last == integers.last && stride == integers.stride;\n }", "private boolean compareMatrix(int[][] result , int[][] expected){\n if(result.length != expected.length || result[0].length != expected[0].length){\n return false;\n }\n for(int i=0;i<result.length;i++){\n for(int j=0;j<result[0].length;j++){\n\n if(result[i][j] != expected[i][j]){\n return false;\n }\n }\n }\n return true;\n }", "@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }", "private boolean allAdjacentUsed(Box box) {\n if (box == null)\n throw new IllegalArgumentException(\"Error. null pointer in allAdjacentUsed(box).\");\n return isNextBoxUsed(box, 0) && isNextBoxUsed(box, 1) && isNextBoxUsed(box, 2) && isNextBoxUsed(box, 3);\n }", "Boolean isValid(ArrayList<Integer> colQ){\n \n int curcol = colQ.size() - 1;\n int row = colQ.get(colQ.size() - 1);\n\n int i = 0;\n int j = 0;\n for(i = curcol-1, j = 1; i >= 0; i--, j++)\n {\n // check if we have two of the same row || check diags\n if(row == colQ.get(i) || row+j == colQ.get(i) || row-j == colQ.get(i)) return false;\n }\n return true;\n \n }", "public boolean areEqual(T[] arr1, T[] arr2){\r\n if(arr1.length != arr2.length){\r\n return false;\r\n }\r\n\r\n for(int i = 0; i < arr1.length; i++){\r\n //System.out.println(arr1[i] + \" \" + arr2[i]);\r\n if(!arr1[i].equals(arr2[i])){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public boolean blocks(Cell source, Cell destination) {\n\t\tif (source.getColumn() == destination.getColumn() && column == source.getColumn()) {\n\t\t\tint minRow = Math.min(source.getRow(), destination.getRow());\n\t\t\tint maxRow = Math.max(source.getRow(), destination.getRow());\n\t\t\treturn minRow < row && row < maxRow;\n\t\t} else if (source.getRow() == destination.getRow() && row == source.getRow()) {\n\t\t\tint minColumn = Math.min(source.getColumn(), destination.getColumn());\n\t\t\tint maxColumn = Math.max(source.getColumn(), destination.getColumn());\n\t\t\treturn minColumn < column && column < maxColumn;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean haveEqualContents(List list1, List list2)\r\n {\r\n if ((list1 == null) != (list2 == null))\r\n {\r\n // One is null and other is not.\r\n return false;\r\n }\r\n if (list1 != null)\r\n {\r\n // Both are not null.\r\n if (list1.size() != list2.size())\r\n {\r\n // Different sizes.\r\n return false;\r\n }\r\n // Both not null and same size.\r\n for (int i = 0; i < list1.size(); i++)\r\n {\r\n if (!ObjUtil.equalsOrBothNull(list1.get(i), list2.get(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public boolean equals( Matriz matriz2 )\n {\n //definir dados\n boolean answer = true;\n int lin;\n int col;\n int lin2;\n int col2;\n int i, j;\n int x, y;\n\n //verificar se matrizes sao validas\n if( table == null || matriz2 == null )\n {\n IO.println(\"ERRO: Matrize(s) invalida(s). \");\n } //end\n else\n {\n //obter dimensoes\n lin = lines();\n col = columns();\n lin2 = lines();\n col2 = columns();\n\n //verificar se dimensoes sao validas\n\n if( lin <= 0 || col <= 0 || lin2 <= 0 || col2 <= 0 )\n {\n IO.println(\"ERRO: Tamanhos invalidos. \");\n } //end\n else\n {\n if( lin == lin2 && col == col2 )\n {\n for (i = 0; i < lin; i++)\n {\n for (j = 0; j < col; j++)\n {\n\n x = IO.getint(matriz2.table[i][j]);\n y = IO.getint(table[i][j]);\n if(x != y)\n {\n answer = false;\n } //end\n } //end repetir\n } //end repetir\n } //end\n else\n {\n answer = false;\n } //end se\n } //end se\n } //end se\n //retornar resposta\n return ( answer );\n }", "public static boolean haveIdenticalContents(List list1, List list2)\r\n {\r\n if ((list1 == null) != (list2 == null))\r\n {\r\n // One is null and other is not.\r\n return false;\r\n }\r\n if (list1 != null)\r\n {\r\n // Both are not null.\r\n if (list1.size() != list2.size())\r\n {\r\n // Different sizes.\r\n return false;\r\n }\r\n // Both not null and same size.\r\n for (int i = 0; i < list1.size(); i++)\r\n {\r\n if (list1.get(i) != list2.get(i))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}" ]
[ "0.60191077", "0.58547163", "0.5787766", "0.5753101", "0.5697359", "0.5634915", "0.56030893", "0.55804366", "0.55521864", "0.5547204", "0.5542368", "0.5537924", "0.55371594", "0.5518266", "0.55009633", "0.54888755", "0.5472228", "0.5470883", "0.5467991", "0.5463337", "0.5457128", "0.54500675", "0.5427427", "0.5425205", "0.54199517", "0.5388247", "0.53758496", "0.5356842", "0.53355986", "0.5333583", "0.5299022", "0.52759975", "0.5272634", "0.5267726", "0.52669334", "0.5238304", "0.5235064", "0.5233651", "0.52140903", "0.5188429", "0.5186189", "0.51795715", "0.5177032", "0.5176619", "0.517286", "0.51708275", "0.5165818", "0.51632684", "0.51622033", "0.5156733", "0.5146878", "0.5145857", "0.51441455", "0.51427984", "0.5142137", "0.51349473", "0.51320666", "0.51187885", "0.5118167", "0.51126134", "0.5106631", "0.5100501", "0.5094756", "0.50943726", "0.5094362", "0.5092452", "0.50863", "0.5086182", "0.50849843", "0.5084438", "0.5070251", "0.50696313", "0.506684", "0.5063709", "0.5060816", "0.5049641", "0.50464666", "0.5039297", "0.5034052", "0.50302213", "0.5019771", "0.5015172", "0.5010984", "0.5005009", "0.50020045", "0.50011057", "0.5000915", "0.50007576", "0.49989796", "0.49966386", "0.499217", "0.49894232", "0.49878994", "0.49878883", "0.49784288", "0.49773657", "0.4974433", "0.496861", "0.49630654", "0.4962034" ]
0.73964316
0
Calculates the hash code of the value at the specified position in the specified block.
long hash(Block block, int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int computeHashCode(byte val);", "int hash(String makeHash, int mod);", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "public int hashCode() {\n return (int) position;\n }", "int getHash();", "public abstract int getHash();", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public int hash(String item);", "public int hashcode();", "@SuppressWarnings(\"WeakerAccess\")\n abstract public int hash(char c);", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}", "private int locate (List<Integer> list, int hash) {\n\t\tif (list.size() == 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tint index_a = -1;\n\t\tint index_b = list.size();\n\t\tfloat value_a = (float)list.get(index_a+1);\n\t\tfloat value_b = (float)list.get(index_b-1);\n\t\tfloat hash_float = (float)hash;\n\n\t\tif (hash <= value_a) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (hash > value_b) {\n\t\t\treturn list.size();\n\t\t}\n\n\t\twhile (index_b - index_a > 1) {\n\t\t\tint index_mid = index_a+(int)((float)(index_b-index_a)*(hash_float-value_a)/(value_b-value_a));\n\t\t\tif (index_mid == index_a) {\n\t\t\t\tindex_mid++;\n\t\t\t} else if (index_mid == index_b) {\n\t\t\t\tindex_mid--;\n\t\t\t}\n\t\t\tif (hash >= list.get(index_mid)) {\n\t\t\t\tindex_a = index_mid;\n\t\t\t\tvalue_a = list.get(index_a);\n\t\t\t} else {\n\t\t\t\tindex_b = index_mid;\n\t\t\t\tvalue_b = list.get(index_b);\n\t\t\t}\n\t\t}\n\t\tif (hash == list.get(index_a)) {\n\t\t\treturn index_a;\n\t\t}\n\t\treturn index_b;\n\t}", "public int hash(T input);", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "@Override\n\tpublic int hash(String item) {\n\t\tlong hashCode = 0l;\n\t\tchar[] c = item.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\thashCode += c[i] * Math.pow(31, c.length - (i + 1));\n\t\t}\n\t\tint i = (int) hashCode % 2147483647;\n\n\t\n\t\treturn Math.abs(i);\n\t\t\n\t}", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn (int) (this.sum * 100 + this.index);\n\t\t}", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "Block getBlockByHash(byte[] hash);", "public int hash3 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ ){\n hashVal = (37 * hashVal) + key.charAt(i);}\n hashVal %= tableSize;\n if(hashVal<0)\n hashVal += tableSize; \n if(hashVal != 0)\n return hashVal;\n else\n return 0;\n }\n else\n {\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "public long calc(byte[] block, int len) {\n long result;\n long a = 0;\n long b = 0;\n for (int i = 0; i < len; i++) {\n a += (long) block[i];\n b += (len - i) * (long) block[i];\n }\n\n // https://en.wikipedia.org/wiki/Modulo_operation\n // Java's Math.floorMod == Python's %\n a = Math.floorMod(a, this.MOD_ADLER);\n b = Math.floorMod(b, this.MOD_ADLER);\n\n result = this.getChecksumForIntermediateValues(a, b);\n this.cacheIntermediateValues(a, b, result);\n return result;\n }", "private int getArrayValue(int position)\n {\n if(currentHash == 1)\n return array1[position];\n else\n return array2[position];\n }", "int\n computeHashCodeOfNode(HIR pNode)\n {\n int lCode, lNodeIndex, lChild, lChildCount;\n Sym lSym;\n\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, \" computeHashCodeOfNode \");\n if (pNode == null)\n return 0;\n lNodeIndex = pNode.getIndex();\n lCode = getHashCodeOfIndexedNode(lNodeIndex);\n if (lCode != 0) // Hash code is already computed. return it.\n return lCode;\n lCode = pNode.getOperator() + System.identityHashCode(pNode.getType());\n lSym = pNode.getSym();\n if (lSym != null) { // This is a leaf node attached with a symbol.\n lCode = lCode * 2 + System.identityHashCode(lSym);\n }\n else {\n lChildCount = pNode.getChildCount();\n for (lChild = 1; lChild <= lChildCount; lChild++) {\n lCode = lCode * 2\n + computeHashCodeOfNode((HIR)(pNode.getChild(lChild)));\n }\n }\n //##60 BEGIN\n // Assign different hash code for l-value compared to r-value.\n //##65 if ((pNode.getParent()instanceof AssignStmt) &&\n //##65 (pNode.getParent().getChild1() == pNode))\n if (FlowUtil.isAssignLHS(pNode)) //##65\n {\n lCode = lCode * 2;\n }\n //##60 END\n lCode = (lCode & 0x7FFFFFFF) % EXP_ID_HASH_SIZE;\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, Integer.toString(lCode, 10));\n setHashCodeOfIndexedNode(lNodeIndex, lCode);\n return lCode;\n }", "private int hashFunc1(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n // Java can return negative vals with hashCode() it's biggg so need to check for this\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n return hashVal; // Idea index position we'd like to insert or search in\n }", "public int findBlock( int position )\n {\n\n freeBlockList.moveToStart();\n freeBlockList.next();\n Integer key = -1;\n while ( !freeBlockList.isAtEnd() )\n {\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n key = (Integer)keyArray[0];\n if ( caller.equals( \"insert\" ) || caller.equals( \"check\" ) )\n {\n if ( key == position )\n {\n break;\n }\n\n }\n if ( caller.equals( \"remove\" ) )\n {\n if ( key > position )\n {\n break;\n }\n }\n freeBlockList.next();\n }\n\n return key;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "String getHash();", "String getHash();", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public int getALocationToPlaceBlock(){\n int lruIndex=-1,lruVal=-1;\n for(int i=0;i<this.localCache.length;i++){\n if(!this.localCache[i].isOccupied)// checks if the block is occupied\n return i;\n \n if(lruVal<this.localCache[i].lastUsed){// checks the last used of each block\n lruIndex=i;\n lruVal=this.localCache[i].lastUsed;\n }\n }\n \n return lruIndex;\n }", "private String calculateHash() {\n\n // Increments the sequence to prevent two transactions from having identical keys.\n sequence++;\n return StringUtil.applySha256(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recipient) +\n Float.toString(value) +\n sequence\n );\n }", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "public String calculateHash(int nonce, String seedNodeID, int index) {\n String calculatedhash = StringUtil.applySha256( \n seedNodeID +\n Integer.toString(index) +\n Integer.toString(nonce)\n );\n return calculatedhash;\n }", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "public int computeHash(int key){\n int hashValue = 0;\n hashValue = getHashCode(key);\n return hashValue % tableSize;\n }", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "private int[] caculatehashposition(BigInteger decicode1,\n\t\t\tBigInteger decicode2, int k2) {\n\t\tint[] position=new int[k2];\n\t\tBigInteger index;\n\t\tBigInteger decicode_k;\n\t\tBigInteger k;\n\t\t\n\t\tfor(int i=0;i<k2;i++){\n\t\t\n\t\tk=BigInteger.valueOf(k2);\n\t\t\n\t\tdecicode_k= decicode1.add(decicode2.multiply(k));\n\t\tindex=decicode_k.mod(BigInteger.valueOf(this.m));\n\t\tposition[i]= index.intValue();\n\t\t}\n\t\t\n\t\treturn position ;\n\t}", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "static int hash(long sum) {\n return (int) (sum) >>> 7;\n }", "public static int getHash(long entry) {\n return (int) (entry >>> 32);\n }", "int _hash(int maximum);", "public int hash2(int x)\n {\n return ((a2*(x)+b2)%n);\n }", "public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }", "public int hash1(int x)\n {\n return ((a1*(x)+b1)%n);\n }", "public abstract int doHash(T t);", "public int indexOf(MemoryBlock block) {\n\t\tfor (int i = 1; i < size - 1; i++){\n\t\t\tif ( block.equals( getBlock( i ) ) )\n\t\t\t\treturn i;\n\t\t}\n \treturn (-1);\n\t}", "public int generateHash(StudentClass item)\n {\n \t return item.hashCode() % tableSize;\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "public BigInteger hash(String element)\n\t{ \n\t\treturn (BigInteger.valueOf(element.hashCode())).mod(modulus);\n\t}", "public int getHash(int key, int i, int max);", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "private int getIndex(int hash) {\n return hash & table.length - 1;\n }", "public static int calculateHash(final Field field) {\n int hash = 17;\n hash = (37 * hash) + field.getName().hashCode();\n Class type = field.getType();\n hash = (37 * hash) + type.getName().hashCode();\n return hash;\n }", "public int searchHash(int val) {\n\t\tint i = HashFun(val);\n\t\treturn i;\n\t}", "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3) - 1);\n\t\tint base = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\treturn base; //mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "public int hashCode() {\n // This implementation will work, but you may want to modify it\n // for improved performance.\n\n checkRep();\n return (this.latitude / 1000000 + this.longitude / 1000000) / 2;\n }", "@Test\r\n\tvoid testHashCodes() {\n\r\n\t\tvar dummyExpr = new BooleanValue(false);\r\n\t\tvar dummyStatement = new Statement.Empty();\r\n\t\tvar dummyBlock = new Block(new Statement[]{\r\n\t\t\tdummyStatement\r\n\t\t});\r\n\r\n\t\t// The statements\r\n\t\tnew Statement.ExpressionStatement(dummyExpr, ExpressionStatementKind.NORMAL).hashCode();\r\n\t\tnew Statement.Assignment(new Expression.Symbol(\"foo\"), dummyExpr).hashCode();\r\n\t\tnew Statement.WhileLoop(dummyExpr, dummyBlock).hashCode();\r\n\t\tnew Statement.If(new Expression[]{}, new Block[]{}).hashCode();\r\n\t\tnew Statement.BlockStatement(dummyBlock).hashCode();\r\n\t\tnew Statement.Rule(new Expression[]{\r\n\t\t\tdummyExpr\r\n\t\t}, new Expression[]{}, dummyBlock).hashCode();\r\n\t\tvar functionDef = new Statement.FunctionDefinition(new Expression.Symbol(\"foo\"), new Expression.Symbol[]{}, 0, dummyBlock);\r\n\t\tfunctionDef.hashCode();\r\n\t\tnew Statement.Empty().hashCode();\r\n\r\n\t\t// The expressions.\r\n\t\tnew Expression.Binary(dummyExpr, BinaryOperator.ADD, dummyExpr).hashCode();\r\n\t\tnew Expression.FunctionCall(dummyExpr, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Index(dummyExpr, dummyExpr).hashCode();\r\n\t\tnew Expression.Symbol(\"foo\").hashCode();\r\n\t\tnew Expression.Unary(dummyExpr, UnaryOperator.NEGATE).hashCode();\r\n\t\tnew Expression.Array(new Expression[]{}).hashCode();\r\n\t\tnew Expression.Dictionary(new Expression[]{}, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Lambda(functionDef).hashCode();\r\n\t\tnew Expression.IndexRange(dummyExpr, dummyExpr, dummyExpr).hashCode();\r\n\r\n\t\t// The values.\r\n\t\tnew BooleanValue(false).hashCode();\r\n\t\tnew IntegerValue(0).hashCode();\r\n\t\tnew DoubleValue(0).hashCode();\r\n\t\tnew StringValue(\"foo\").hashCode();\r\n\t\tnew ArrayValue(new ExpressionValue[]{}).hashCode();\r\n\t\tnew DictionaryValue(new HashMap<>()).hashCode();\r\n\t}", "private int rehash(int hash) {\n final int h = hash * 0x9E3779B9;\n return h ^ (h >> 16);\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "public void testHashcode() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n int h1 = r1.hashCode();\n int h2 = r2.hashCode();\n }", "public int calcOff(int hashValue, int index) {\n if (index - hashValue < 0) {\n return index - hashValue + table.length;\n } else {\n return (index - hashValue);\n }\n }", "private long convertHash(long hash) {\n final long offset = 4294967296L;\n if ((hash & (offset / 2)) != 0) {\n return hash - offset;\n } else {\n return hash;\n }\n }", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "String hash(String input) throws IllegalArgumentException, EncryptionException;", "static int getHash(long key) {\n int hash = (int) ((key >>> 32) ^ key);\n // a supplemental secondary hash function\n // to protect against hash codes that don't differ much\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = (hash >>> 16) ^ hash;\n return hash;\n }", "int getBlockNumber(int x, int y);", "public int getBlockIndex(int block){\n for(int i=0;i<localCache.length;i++){\n if(localCache[i].isOccupied && localCache[i].blockID==block)\n return i;\n }\n return -1;\n }", "@Override\n public int hashCode() {\n\n if (this.hashCode == null) {\n int hashCode = this.symbol.hashCode();\n\n if (this.isLookahead) {\n hashCode *= 109;\n }\n\n this.hashCode = hashCode;\n }\n\n return this.hashCode;\n }", "@Override\n public int hashCode() {\n return txHash.hashCode()^txIndex;\n }", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "int findHash(String name, int level, int child) {\n if(level == 1 && child == 1)\n child = 5;\n int hash = 0;\n for(char c: name.toCharArray()) {\n if((int)c >= 65 && (int)c<= 90) {\n hash += (int)c - 64;\n }\n else if((int)c >= 97 && (int)c<= 122)\n hash += (int)c - 96;\n }\n hash += level + child;\n\n return hash%7;\n }", "public static int hashOp( int i )\n\t{\n\t\t// Do NOT change this method!\n\t\tint doubled = 2 * i;\n\t\tif ( doubled >= 10 ) {\n\t\t\tdoubled = doubled - 9;\n\t\t}\n\t\treturn doubled;\n\t}", "public void setHash(int position, long hash) {\n tree.setHash(position, hash);\n }", "public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}", "private int hashMath (int r, int c, int columns) {\n return currentState[r][c];\n }", "private static int calculateParity(long hash) {\n int parity = 0;\n for (int i = 0; i < 64; i += 2) {\n parity += (hash & 0x3);\n hash >>= 2;\n }\n return (parity & 0x3);\n }", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "public int getHash() {\n return hash_;\n }", "int hashCode();", "int hashCode();" ]
[ "0.63382477", "0.6332352", "0.62994283", "0.6164786", "0.6054788", "0.6000268", "0.5947416", "0.593246", "0.590233", "0.58773845", "0.5829236", "0.57768035", "0.57522553", "0.5700267", "0.5692385", "0.5679447", "0.5669854", "0.5660583", "0.56319875", "0.5631027", "0.561441", "0.5608284", "0.56006753", "0.5598085", "0.55763024", "0.55368525", "0.55233717", "0.55193627", "0.5512309", "0.5512028", "0.55056834", "0.5481451", "0.54771394", "0.546265", "0.54582196", "0.5445609", "0.5445609", "0.54220027", "0.53951603", "0.5392589", "0.5370412", "0.5370372", "0.537001", "0.5367085", "0.5361373", "0.535991", "0.5347659", "0.5316194", "0.53148013", "0.53130543", "0.5312684", "0.5311075", "0.53077084", "0.5304966", "0.52996737", "0.5294289", "0.52831596", "0.5279161", "0.5279056", "0.527218", "0.52658236", "0.5264945", "0.5249179", "0.5239947", "0.5219525", "0.5216243", "0.52145624", "0.5209594", "0.52093846", "0.5205145", "0.5188425", "0.5177728", "0.51744133", "0.51596975", "0.51594496", "0.51522", "0.514777", "0.5144689", "0.5144689", "0.5144689", "0.5141743", "0.5141631", "0.5134259", "0.5130278", "0.5124238", "0.51225144", "0.5104323", "0.51028585", "0.51017886", "0.51017886", "0.51007247", "0.50691545", "0.50643003", "0.5060807", "0.5060607", "0.5059483", "0.5056121", "0.5055316", "0.50483906", "0.50483906" ]
0.8339326
0
Compare the values in the specified block at the specified positions equal.
int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);", "private final void verifyInnerValues(ComputationalBlock block, double[] expectedValues) {\n\t\tFieldIterator iterator = block.getInnerIterator();\n\t\tfor (int i=0; i<totalSize; i++) {\n\t\t\tassertEquals(expectedValues[i], iterator.currentValue(), 4*Math.ulp(expectedValues[i]));\n\t\t\titerator.next();\n\t\t}\n\t}", "public static boolean block(int p_block_0_, int p_block_1_, MatchBlock[] p_block_2_) {\n/* 33 */ if (p_block_2_ == null)\n/* */ {\n/* 35 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 39 */ for (int i = 0; i < p_block_2_.length; i++) {\n/* */ \n/* 41 */ MatchBlock matchblock = p_block_2_[i];\n/* */ \n/* 43 */ if (matchblock.matches(p_block_0_, p_block_1_))\n/* */ {\n/* 45 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 49 */ return false;\n/* */ }", "private boolean complementsBlockBuffer(Block b) {\n for (Block i : blockBuffer) {\n if (b.prevHash.equals(i.hash)) {\n return true;\n }\n }\n return false;\n }", "private void checkComparabilityOfGroundTruthAndExtractedPostBlocks() {\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockIsInGT = false;\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInGT = true;\n break;\n }\n }\n\n if (!postBlockIsInGT) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }\n\n\n // check whether all post blocks from ground truth are found in the extracted post blocks\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockIsInCS = false;\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInCS = true;\n break;\n }\n }\n }\n\n if (!postBlockIsInCS) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }", "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "private final void verifyGhostRegionValues(ComputationalComposedBlock block) throws MPIException {\n\t\tBoundaryIterator boundaryIterator = block.getBoundaryIterator();\n\t\tBoundaryIterator expectedValuesIterator = block.getBoundaryIterator();\n\t\tBoundaryId boundary = new BoundaryId();\n\t\tfor (int d=0; d<2*DIMENSIONALITY; d++) {\n\t\t\tblock.receiveDoneAt(boundary);\n\t\t\tboundaryIterator.setBoundaryToIterate(boundary);\n\t\t\tBoundaryId oppositeBoundary = boundary.oppositeSide();\n\t\t\texpectedValuesIterator.setBoundaryToIterate(oppositeBoundary);\n\t\t\twhile (boundaryIterator.isInField()) {\n\t\t\t\t// Check the ghost values outside the current element.\n\t\t\t\tfor (int offset=1; offset<extent; offset++) {\n\t\t\t\t\tint neighborOffset = offset-1;\n\t\t\t\t\tint directedOffset = boundary.isLowerSide() ? -offset : offset;\n\t\t\t\t\tint directedNeighborOffset = boundary.isLowerSide() ? -neighborOffset : neighborOffset;\n\t\t\t\t\tdouble expected = expectedValuesIterator.currentNeighbor(boundary.getDimension(), directedNeighborOffset);\n\t\t\t\t\tdouble actual = boundaryIterator.currentNeighbor(boundary.getDimension(), directedOffset);\n\t\t\t\t\tassertEquals(expected, actual, 4*Math.ulp(expected));\n\t\t\t\t}\n\t\t\t\tboundaryIterator.next();\n\t\t\t\texpectedValuesIterator.next();\n\t\t\t}\n\t\t}\n\t}", "private static void assertEqual(List<byte[]> actual, List<byte[]> expected) {\n if (actual.size() != expected.size()) {\n throw new AssertionError(String.format(\"Different amount of chunks, expected %d actual %d\", expected.size(), actual.size()));\n }\n for (int i = 0; i < actual.size(); i++) {\n byte[] act = actual.get(i);\n byte[] exp = expected.get(i);\n if (act.length != exp.length) {\n throw new AssertionError(String.format(\"Chunks #%d differed in length, expected %d actual %d\", i, exp.length, act.length));\n }\n for (int j = 0; j < act.length; j++) {\n if (act[j] != exp[j]) {\n throw new AssertionError(String.format(\"Chunks #%d differed at index %d, expected %d actual %d\", i, j, exp[j], act[j]));\n }\n }\n }\n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "public static boolean blockId(int p_blockId_0_, MatchBlock[] p_blockId_1_) {\n/* 55 */ if (p_blockId_1_ == null)\n/* */ {\n/* 57 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 61 */ for (int i = 0; i < p_blockId_1_.length; i++) {\n/* */ \n/* 63 */ MatchBlock matchblock = p_blockId_1_[i];\n/* */ \n/* 65 */ if (matchblock.getBlockId() == p_blockId_0_)\n/* */ {\n/* 67 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 71 */ return false;\n/* */ }", "static boolean ifSafe(int[] placement, int row) {\n\t\tfor(int j = 0; j < row; j++) {\n\t\t\tif(placement[j] == placement[row]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint columnDiff = placement[row] - placement[j];\n\t\t\tint rowDiff = row - j;\n\t\t\tif(columnDiff == rowDiff) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}", "@Test\n public void isOccupiedAndGetBlockReturnTheSameAnswer() {\n Tetromino tetromino = Tetromino.Z;\n Direction direction = Direction.DOWN;\n\n for (int y = 0; y < tetromino.height; y++) {\n for (int x = 0; x < tetromino.width; x++) {\n String coordinates = String.format(\"Tetromino Z[DOWN] block (x,y) = (%d,%d)\", x, y);\n\n boolean isOccupied = tetromino.isOccupied(direction, x, y);\n Block block = tetromino.getBlock(direction, x, y);\n\n assertEquals(coordinates, isOccupied, (block != null));\n }\n }\n }", "private boolean compareLocation(Location location){\n return location.getBlockX()==this.location.getBlockX() && location.getBlockY()==this.location.getBlockY() && location.getBlockZ() == this.location.getBlockZ();\n }", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean equivalent(CircularArray k) {\r\n int p = k.start;\r\n int q = start;\r\n int counter = 0;\r\n for (int i = 0; i < size; i++) {\r\n if (cir[q] == k.cir[p]) {\r\n counter++;\r\n } else {\r\n return false;\r\n }\r\n p = (p + 1) % cir.length;\r\n q = (q + 1) % k.cir.length;\r\n }\r\n if (counter > 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "public boolean sameposition(ArrayStack<Integer> st1,\n ArrayStack<Integer> st2, int pos){\n if(st1.isEmpty() || st2.isEmpty())\n return false;\n ArrayStack<Integer> temp = new ArrayStack<Integer>(st1),\n temp2 = new ArrayStack<Integer>(st2);\n\n for(int i=0; i < pos;i++){\n temp.pop();\n temp2.pop();\n }//for\n return temp.peek()== temp2.peek();\n }", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "public boolean equal(int row, int col){ \n return this.row == row && this.col == col;\n }", "public static boolean isBlockTouching(Block block1, Block block2) {\r\n\t\tint x1 = block1.getX();\r\n\t\tint y1 = block1.getY();\r\n\t\tint z1 = block1.getZ();\r\n\t\tint x2 = block2.getX();\r\n\t\tint y2 = block2.getY();\r\n\t\tint z2 = block2.getZ();\r\n\r\n\t\tint x = x2 - x1;\r\n\t\tint y = y2 - y1;\r\n\t\tint z = z2 - z1;\r\n\r\n\t\tx = x < 0 ? -x : x;\r\n\t\ty = y < 0 ? -y : y;\r\n\t\tz = z < 0 ? -z : z;\r\n\r\n\t\tint sum = x + y + z;\r\n\t\treturn sum == 1;\r\n\r\n\t\t// for (BlockFace face : new BlockFace[] { BlockFace.NORTH,\r\n\t\t// BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST, BlockFace.UP,\r\n\t\t// BlockFace.DOWN }) {\r\n\t\t// if (block1.getRelative(face).equals(block2)) {\r\n\t\t// return true;\r\n\t\t// }\r\n\t\t// }\r\n\t\t// return false;\r\n\t}", "public boolean almostEqual(Coordinates a, Coordinates b);", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "public int actualHashForEqual() {\n\treturn getCategory().hashForEqual() + 1;\n/*\nudanax-top.st:15776:SequenceSpace methodsFor: 'testing'!\n{UInt32} actualHashForEqual\n\t\"is equal to any basic space on the same category of positions\"\n\t^self getCategory hashForEqual + 1!\n*/\n}", "@Test\n public void chunkPosShouldBeMinus2ByMinus2WhenPlayerPosIsMinus111byMinus111() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n final int playerPos = -111;\n final int expectedChunkPos = -2;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(playerPos, playerPos)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(expectedChunkPos, expectedChunkPos))\n );\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof BlockPK)) {\n return false;\n }\n BlockPK other = (BlockPK) object;\n if ((this.timetableCode == null && other.timetableCode != null) || (this.timetableCode != null && !this.timetableCode.equals(other.timetableCode))) {\n return false;\n }\n if (this.blockNumber != other.blockNumber) {\n return false;\n }\n if ((this.blockDay == null && other.blockDay != null) || (this.blockDay != null && !this.blockDay.equals(other.blockDay))) {\n return false;\n }\n return true;\n }", "private boolean blockCheck(int r, int c, int n)\r\n {\r\n int row = (r/3)*3, col = (c/3)*3; //The corner position of the block where (r,c) is\r\n for(int i = row; i < row+3; i++)\r\n for(int j = col; j < col+3; j++)\r\n if(game[i][j] == n)\r\n return false;\r\n return true;\r\n }", "long hash(Block block, int position);", "private boolean correctPlacement(int[] pos) {\n for (int i = 0; i < crtStep; ++i) {\n for (int j = i + 1; j <= crtStep; ++j) {\n if (pos[i] == pos[j] || i - pos[i] == j - pos[j] || i + pos[i] == j + pos[j]) {\n return false;\n }\n }\n }\n \n return true;\n }", "public final boolean equal() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue == secondTopMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16))){\n\t\t\t\t\t\ttemp = blocks[j];\n\t\t\t\t\t\tblocks[j] = blocks[i];\n\t\t\t\t\t\tblocks[i] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }", "@Test\n public void testSafeBlocks() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n /* use 0 and 1 position because the margin blocks are inserted initially*/\n assertEquals(new Position(3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE, \n TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(0).getPosition());\n assertEquals(new Position(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n 3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(1).getPosition());\n level.levelUp();\n });\n }", "private static boolean equals(int[] array1, int[] array2) {\n if(array1.length != array2.length)\n return false;\n \n Arrays.sort(array1);\n Arrays.sort(array2);\n \n int i = 0;\n for(; i < array1.length; ++i) {\n if(array1[i] != array2[i])\n break;\n }\n \n return (i == array1.length);\n }", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "private boolean compareMatrix(int[][] result , int[][] expected){\n if(result.length != expected.length || result[0].length != expected[0].length){\n return false;\n }\n for(int i=0;i<result.length;i++){\n for(int j=0;j<result[0].length;j++){\n\n if(result[i][j] != expected[i][j]){\n return false;\n }\n }\n }\n return true;\n }", "private static boolean isEqual(int[] nums1, int[] nums2){\n \tfor(int i=0; i<nums1.length; i++){\n \t\tif(nums1[i]!=nums2[i]){\n \t\t\treturn false;\n \t\t}\n \t}\n \treturn true;\n }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "private void assertDataUsageEquals(long[] dataIds, int... expectedValues) {\n if (dataIds.length != expectedValues.length) {\n throw new IllegalArgumentException(\"dataIds and expectedValues must be the same size\");\n }\n\n for (int i = 0; i < dataIds.length; i++) {\n assertDataUsageEquals(dataIds[i], expectedValues[i]);\n }\n }", "private final boolean indicesEqual(Collection<TableName> list1, Collection<TableName> list2)\n {\n logger.info(\"indicesEqual - Enter - Index1: {}, Index2: {}\", list1, list2);\n\n // lists must have the same number of indices.\n if (list1.size() != list2.size()) {\n logger.warn(\"Indices lists are different sizes!\");\n return false;\n }\n\n // lists must have the same indices (irrespective of internal ordering).\n Iterator<TableName> iter = list1.iterator();\n while (iter.hasNext()) {\n if (!list2.contains(iter.next())) {\n logger.warn(\"Indices mismatch in list!\");\n return false;\n }\n }\n\n return true;\n }", "public boolean isSameSapling(World par1World, int par2, int par3, int par4, int par5)\n {\n return par1World.getBlockId(par2, par3, par4) == this.blockID && (par1World.getBlockMetadata(par2, par3, par4) & 3) == par5;\n }", "public boolean isEqual(Move m){\r\n\t\treturn m.getStartSquare()==start_sq&&m.getEndSquare()==end_sq&&(m.getModifier()==modifiers % 10);\r\n\t}", "public static boolean isBlocksInSameRegion(MethodNode mth, BlockNode firstBlock, BlockNode secondBlock) {\n\t\tRegion region = mth.getRegion();\n\t\tif (region == null) {\n\t\t\treturn false;\n\t\t}\n\t\tIContainer firstContainer = getBlockContainer(region, firstBlock);\n\t\tif (firstContainer instanceof IRegion) {\n\t\t\tif (firstContainer instanceof IBranchRegion) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tList<IContainer> subBlocks = ((IRegion) firstContainer).getSubBlocks();\n\t\t\treturn subBlocks.contains(secondBlock);\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkBlockValidSudoku(int pos, Character c){\n\t\tint row=pos/9;\n\t\tint col=pos%9; // use position to calculate the row and column\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==col) continue;\n\t\t\tif(sudokuDisplay[row][i]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==row) continue; // avoid self check\n\t\t\tif(sudokuDisplay[i][col]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<3;i++)\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(row/3*3+i==row && col/3*3+j==col) continue;\n\t\t\t\tif(sudokuDisplay[row/3*3+i][col/3*3+j]==c) \n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n return DiffRecyclerAdapter.this.areContentsTheSame(backupList.get(oldItemPosition), displayList.get(newItemPosition));\n }", "public static boolean equals(int[] list1, int[] list2) {\n boolean verdict = false;\n \n // use bubbleSort to sort each list\n list1 = bubbleSort(list1);\n list2 = bubbleSort(list2);\n \n if (list1.length == list2.length) {\n verdict = true;\n for (int i = 0; i < list1.length; i++) {\n if (list1[i] != list2[i]) {\n verdict = false;\n break;\n }\n }\n }\n return verdict;\n }", "private boolean identicalAtoms(IAtomContainer molecule1, List<IAtomContainer> fragsToCompare) {\n\t\n \tfor (int i = 0; i < fragsToCompare.size(); i++) {\n \t\t//no match\n \t\tif (molecule1.getBondCount() != fragsToCompare.get(i).getBondCount() && molecule1.getAtomCount() != fragsToCompare.get(i).getAtomCount()) \n \t\t{\n \t\t\tcontinue;\n \t\t}\n \t\t\n\n \t\tint n = 0;\n \t\t//array storing all already tried atoms\n \t\tboolean[] doneAtoms = new boolean[atomsContained + 1];\n \t\tfor (int j = 0; j < molecule1.getAtomCount(); j++) {\n \t\t\tfor (int k = 0; k < fragsToCompare.get(i).getAtomCount(); k++) \n \t\t\t{\n \t\t\t\t//compare atoms by symbol, thus only check for the same sum formula --> EXPERIMENTAL\n \t\t\t\tif(molecularFormulaRedundancyCheck)\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).getSymbol().equals(fragsToCompare.get(i).getAtom(k).getSymbol()) &&\n \t\t\t\t\t\t\t!doneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())]) {\n \t\t\t\t\tn++;\n \t\t\t\t\tdoneAtoms[Integer.parseInt(fragsToCompare.get(i).getAtom(k).getID())] = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t} \t\t\t\t\n \t\t\t\t//normal test creates way more fragments!\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif (molecule1.getAtom(j).equals(fragsToCompare.get(i).getAtom(k))) {\n \t\t\t\t\tn++;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tif(n == molecule1.getAtomCount())\n \t\t\treturn true;\n\t\t}\n\t //no match found\n\t\treturn false;\n\t}", "public boolean equals( Matriz matriz2 )\n {\n //definir dados\n boolean answer = true;\n int lin;\n int col;\n int lin2;\n int col2;\n int i, j;\n int x, y;\n\n //verificar se matrizes sao validas\n if( table == null || matriz2 == null )\n {\n IO.println(\"ERRO: Matrize(s) invalida(s). \");\n } //end\n else\n {\n //obter dimensoes\n lin = lines();\n col = columns();\n lin2 = lines();\n col2 = columns();\n\n //verificar se dimensoes sao validas\n\n if( lin <= 0 || col <= 0 || lin2 <= 0 || col2 <= 0 )\n {\n IO.println(\"ERRO: Tamanhos invalidos. \");\n } //end\n else\n {\n if( lin == lin2 && col == col2 )\n {\n for (i = 0; i < lin; i++)\n {\n for (j = 0; j < col; j++)\n {\n\n x = IO.getint(matriz2.table[i][j]);\n y = IO.getint(table[i][j]);\n if(x != y)\n {\n answer = false;\n } //end\n } //end repetir\n } //end repetir\n } //end\n else\n {\n answer = false;\n } //end se\n } //end se\n } //end se\n //retornar resposta\n return ( answer );\n }", "@Test\n public void chunkPosShouldBeMinus1ByMinus1WhenPlayerPosIsMinus1byMinus1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(-1, -1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(-1, -1))\n );\n }", "public boolean equals (Position pos) // Creates an operator that compares two positions\n\t{\n\t\tif ((r == pos.r) && (c == pos.c))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {\n return DiffRecyclerAdapter.this.areItemsTheSame(backupList.get(oldItemPosition), displayList.get(newItemPosition));\n }", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "public boolean isEqual(Tuple t){\n Object[] temp=t.getPattern();\n if(t.getSize()!=size)return false;\n else {\n for(int i=0;i<size;i++){\n if(pattern[i].equals(temp[i])==false && temp[i]!=\"*\"){\n return false;\n }\n }\n }\n return true;\n }", "public int findBlock( int position )\n {\n\n freeBlockList.moveToStart();\n freeBlockList.next();\n Integer key = -1;\n while ( !freeBlockList.isAtEnd() )\n {\n Object[] keyArray =\n freeBlockList.getCurrentElement().keySet().toArray();\n key = (Integer)keyArray[0];\n if ( caller.equals( \"insert\" ) || caller.equals( \"check\" ) )\n {\n if ( key == position )\n {\n break;\n }\n\n }\n if ( caller.equals( \"remove\" ) )\n {\n if ( key > position )\n {\n break;\n }\n }\n freeBlockList.next();\n }\n\n return key;\n }", "public static boolean checkValues (Iterable<Versioned<byte[]>> values, Versioned<byte[]> expected) {\n\t\tIterator<Versioned<byte[]>> itValue = values.iterator();\n\t\twhile (itValue.hasNext()) {\n\t\t\tVersioned<byte[]> curr = itValue.next();\n\t\t\tif ( ! Arrays.equals(expected.getValue(), curr.getValue()) ) {\n\t\t\t\tSystem.err.println(\"Expected value is different!!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static boolean compare(BufferedInputStream b1, BufferedInputStream b2) throws IOException {\n\t\tint cmp1 = 0, cmp2;\r\n\t\tbyte[] i = new byte[100];\r\n\t\tbyte[] j = new byte[100];\r\n\t\t\r\n\t\twhile(cmp1 != -1){\r\n\t\t\tcmp1 = b1.read(i, 0, i.length);\r\n\t\t\tcmp2 = b2.read(j, 0, j.length);\r\n\t\t\tif(cmp1 != cmp2){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int k = 0; k < cmp1; k++){\r\n\t\t\t\tif(i[k] != j[k]){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public Boolean sameCenterPoints(Cell cell) {\r\n int centerX = cell.getcenterX();\r\n int centerY = cell.getcenterY();\r\n for (int i = 0; i < cells.size(); i++) {\r\n Cell currCell = cells.get(i);\r\n if (currCell.getcenterX()==centerX && currCell.getcenterY()==centerY\r\n ) {\r\n return (true);\r\n }\r\n }\r\n return false;\r\n }", "private boolean isValuesEqual(BinaryMessage tocmp, BinaryMessage original) {\n\t\tif(tocmp.getValue().equals(original.getValue())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n void BlockClassTest(){\n int offset = 0;\n int length ;\n for (FileData.Block block : blockList) {\n length = (int) Math.min(blockSize, file.length() - block.offset);\n assertEquals(length, block.length);\n assertEquals(offset, block.offset);\n offset += blockSize;\n }\n assertSame(fileDatabyFile,blockList.getFirst().file());\n }", "@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }", "void compareDataStructures();", "public boolean equals(Object other) {\n if (other == this) return true;\n if (other == null) return false;\n if (other.getClass() != this.getClass()) return false;\n Board that = (Board) other;\n if (this.dimension() != that.dimension()) return false;\n for (int i = 0; i < dimension(); i++){\n for (int j = 0; j < dimension(); j++){\n if (that.blocks[i][j] != blocks[i][j])\n return false;\n }\n }\n return true;\n }", "protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) {\n\t\tArrayList<Snak> snakList1 = new ArrayList<>(5);\n\t\twhile (snaks1.hasNext()) {\n\t\t\tsnakList1.add(snaks1.next());\n\t\t}\n\n\t\tint snakCount2 = 0;\n\t\twhile (snaks2.hasNext()) {\n\t\t\tsnakCount2++;\n\t\t\tSnak snak2 = snaks2.next();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < snakList1.size(); i++) {\n\t\t\t\tif (snak2.equals(snakList1.get(i))) {\n\t\t\t\t\tsnakList1.set(i, null);\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn snakCount2 == snakList1.size();\n\t}", "public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}", "public static void blockMove(Player player) {\n Location location1 = (Location) plugin.getConfig().get(\"region1\");\n Location location2 = (Location) plugin.getConfig().get(\"region2\");\n\n int y = (location1.getBlockY() < location2.getBlockY() ? location2.getBlockY() : location1.getBlockY());\n\n for (Location location : blockPlace.redblockloc) {\n int x = location.getBlockX();\n int z = location.getBlockZ();\n new Location(player.getWorld(), x, y + 1, z).getBlock().setType(location.getBlock().getType());\n player.sendMessage(String.valueOf(location.getBlock().getType()));\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()==Material.WATER) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()== Material.IRON_BLOCK) {\n blockPlace.redblock.add(location.getBlock());\n }\n location.getBlock().setType(Material.AIR);\n }\n\n for (Location location : blockPlace.blueblockloc) {\n int xb = location.getBlockX();\n int zb = location.getBlockZ();\n new Location(player.getWorld(), xb, y + 1, zb).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.blueblock.remove(location.getBlock().getType());\n }\n }\n\n for (Location location : blockPlace.greenblockloc) {\n int xg = location.getBlockX();\n int zg = location.getBlockZ();\n new Location(player.getWorld(), xg, y + 1, zg).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n for (Location location : blockPlace.yellowblockloc) {\n int xy = location.getBlockX();\n int zy = location.getBlockZ();\n new Location(player.getWorld(), xy, y + 1, zy).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n }", "protected boolean isCheckBlockable(Piece.PieceColorOptions playerColor) {\n Coordinate[] coordinatesToBlock;\n Coordinate kingCoordinate, oppCoordinate, allyCoordinate;\n int blockCounter, diffX, diffY, spacesToVerify, xIncrement, yIncrement;\n\n coordinatesToBlock = new Coordinate[VERTICAL_BOARD_LENGTH];\n kingCoordinate = getKingCoordinate(playerColor);\n oppCoordinate = null;\n blockCounter = 0;\n\n outerloop:\n for (int i = 0; i < VERTICAL_BOARD_LENGTH; i++) {\n for (int j = 0; j < HORIZONTAL_BOARD_LENGTH; j++) {\n oppCoordinate = new Coordinate(j, i);\n if (isValidEndpoints(oppCoordinate, kingCoordinate, oppositeColor(playerColor))) {\n if (isValidPath(oppCoordinate, kingCoordinate, oppositeColor(playerColor), false)) {\n coordinatesToBlock[blockCounter] = oppCoordinate;\n blockCounter++;\n // if there is more than one piece checking the King\n // the check is not blockable\n break outerloop;\n }\n }\n }\n }\n\n diffX = subtractXCoordinates(oppCoordinate, kingCoordinate);\n diffY = subtractYCoordinates(oppCoordinate, kingCoordinate);\n xIncrement = calculateIncrement(diffX);\n yIncrement = calculateIncrement(diffY);\n spacesToVerify = Math.max(Math.abs(diffX), Math.abs(diffY)) - 1;\n\n // moving a piece to oppCoordinate capture's the opposing piece\n // only opposing Bishops, Rooks, and Queens can be blocked\n if (isValidDiagonalPath(oppCoordinate, kingCoordinate) || isValidStraightPath(oppCoordinate, kingCoordinate)) {\n for (int i = 0; i < spacesToVerify; i++) {\n Coordinate betweenCoordinate = new Coordinate(oppCoordinate);\n betweenCoordinate.addVals(xIncrement, yIncrement);\n coordinatesToBlock[blockCounter] = betweenCoordinate;\n blockCounter++;\n }\n }\n\n // loop through all Coordinates in coordinatesToBlock and see if any can block the check\n for (int i = 0; i < blockCounter; i++) {\n oppCoordinate = coordinatesToBlock[i];\n for (int j = 0; j < VERTICAL_BOARD_LENGTH; j++) {\n for (int k = 0; k < HORIZONTAL_BOARD_LENGTH; k++) {\n allyCoordinate = new Coordinate(k, j);\n if (isValidEndpoints(allyCoordinate, oppCoordinate, playerColor)) {\n if (isValidPath(allyCoordinate, oppCoordinate, playerColor, false)) {\n if (isMovePossibleWithoutCheck(allyCoordinate, oppCoordinate, playerColor, false)) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }", "public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "public void checkBlock(BlockPos debug1) {\n/* 29 */ if (this.blockEngine != null) {\n/* 30 */ this.blockEngine.checkBlock(debug1);\n/* */ }\n/* 32 */ if (this.skyEngine != null) {\n/* 33 */ this.skyEngine.checkBlock(debug1);\n/* */ }\n/* */ }", "private static boolean compareByteArray(byte[] a1, byte[] a2, int length){\n for (int i = 0 ; i < length ; i++){\n if(a1[i] != a2[i])\n return false;\n else\n System.out.println(\"-------------------GOOD ---[ \"+ i);// log feedback\n }\n return true;\n }", "boolean contains(@NotNull BlockData block);", "private static boolean contentEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n //if ( !sizeEqual(state1, state2) ) return false;\n\n return Stream.of(new SimpleImmutableEntry<>(state1, state2))\n .flatMap( //map the pair of states to many pairs of piles\n statePair -> Arrays.stream(E_PileID.values())\n .map(pileID -> new SimpleEntry<>(\n statePair.getKey().get(pileID),\n statePair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .flatMap( // map the pairs of piles to many pairs of Optional<I_card>s.\n listPair -> IntStream //make sure to always traverse the longer list\n .range(0, Math.max(listPair.getKey().size(), listPair.getValue().size()))\n .mapToObj(i -> new SimpleEntry<>(\n getIfExists(listPair.getKey(), i),\n getIfExists(listPair.getValue(), i))\n )\n )\n // map pairs to booleans by checking that the element in a pair are equal\n .map(cardPair -> Objects.equals(cardPair.getKey(), cardPair.getValue()))\n // reduce the many values to one bool by saying all must be true or the statement is false\n .reduce(true, (e1, e2) -> e1 && e2);\n }", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }", "public boolean isSame(){\r\n\t\tHugeInt mod2 = new HugeInt(this.p);\r\n\t\tmod2.modByHugeInt(new HugeInt(\"2\"));\r\n\t\tmod2.printHugeInt();\r\n\t\t\r\n\t\tHugeInt mod3 = new HugeInt(this.p);\r\n\t\tmod3.modByHugeInt(new HugeInt(\"3\"));\r\n\t\t\r\n\t\tif(this.p.compareHugeInts(this.p, new HugeInt(\"1\")) != -1)\r\n\t\t\tSystem.out.println(\"less than or equal to 1\");\r\n\t\telse if(this.p.compareHugeInts(this.p, new HugeInt(\"3\")) != -1)\r\n\t\t\tSystem.out.println(\"greater than 1 but less than 3\");\r\n\t\telse if(mod2.areAllZeros() || mod3.areAllZeros())\r\n\t\t\tSystem.out.println(\"mod by 2 or 3\");\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean equals(Object obj) {\r\n if (!(obj instanceof Position))\r\n return false;\r\n Position pos = (Position)obj;\r\n return ((pos.getRowIndex() == this.rowIndex) && (pos.getColumnIndex() == this.colIndex));\r\n }", "private boolean samePosition(ITarget t1, ITarget t2) {\n assert t1.getTag() == t2.getTag() : \"Programmer error; tags must match.\";\n switch (t1.getTag()) {\n case JPL_MINOR_BODY:\n case MPC_MINOR_PLANET:\n case NAMED:\n\n // SUPER SUPER SKETCHY\n // The .equals logic in NonSiderealTarget actually does what we want here, at\n // least according to the old implementation here. So we'll leave it for now.\n // This will be easier with the new model.\n return t1.equals(t2);\n\n case SIDEREAL:\n final HmsDegTarget hms1 = (HmsDegTarget) t1;\n final HmsDegTarget hms2 = (HmsDegTarget) t2;\n return hasSameCoordinates(hms1, hms2) &&\n hasSameProperMotion(hms1, hms2) &&\n hasSameTrackingDetails(hms1, hms2);\n\n default:\n throw new Error(\"Unpossible target tag: \" + t1.getTag());\n }\n }", "@Override\n public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n if (oldStation.getStationName().equals(newStation.getStationName()) &&\n oldStation.getPlaybackState() == newStation.getPlaybackState() &&\n oldStation.getStationImageSize() == newStation.getStationImageSize()) {\n return true;\n } else {\n return false;\n }\n }", "protected abstract boolean isEqual(E entryA, E entryB);", "private boolean isInBlock(int number, int row, int col) {\n\t\trow = row - (row % 3);\n\t\tcol = col - (col % 3);\n\n\t\tfor (int i = row; i < row + 3; i++) {\n\t\t\tfor (int j = col; j < col + 3; j++) {\n\t\t\t\tif (getNumber(i, j) == number) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void chunkPosShouldBePlayerPosDividedByChunkSizeWherePlayerAt1By1() {\n final int sideLengthOfBlock = 10;\n final int rowAmountInChunk = 11;\n\n MatcherAssert.assertThat(\n this.targetCompass(\n sideLengthOfBlock,\n rowAmountInChunk,\n new Point(1, 1)\n ).chunkPos(),\n CoreMatchers.equalTo(new Point(0, 0))\n );\n }", "public boolean equalsQ(Vector comparison){\n\t\tfor (Object o1 : comparison.getClock().entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(this.clock.containsKey(pair.getKey())){\n\t\t\t\tif(!((Long)pair.getValue()).equals((Long)this.clock.get(pair.getKey()))){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tfor (Object o1 : this.clock.entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(comparison.getClock().containsKey(pair.getKey())){\n\t\t\t\tif(!((Long)pair.getValue()).equals((Long)comparison.getClock().get(pair.getKey()))){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public List<Long> changedBlockOffsets(FileState other) {\n long offset = 0;\n List<Long> r = new ArrayList<>();\n Iterator<Long> i = this.hashes.iterator();\n\n if (other != null) {\n Iterator<Long> j = other.hashes.iterator();\n\n if (other.hashes.size() > this.hashes.size()) {\n while (i.hasNext() && j.hasNext()) {\n if (i.next().equals(j.next())) {\n r.add(offset);\n }\n offset += BLOCK_SIZE;\n }\n } else {\n\n while (i.hasNext() && j.hasNext()) {\n if (!i.next().equals(j.next())) {\n r.add(offset);\n }\n offset += BLOCK_SIZE;\n }\n }\n }\n\n while (i.hasNext()) {\n r.add(offset);\n offset += BLOCK_SIZE;\n i.next();\n }\n return r;\n }", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public boolean isEqualNode(int xcoords, int ycoords){ \n boolean ret = false;\n Node N = head;\n for (int i = 1; i < numItems; i++){\n if (xcoords == N.x && ycoords == N.y){\n ret = true;\n }else { \n ret = false;\n }\n N = N.next;\n }\n return ret;\n }", "public boolean areEqual(Element element1, Element element2, HashMap<String, Integer> lengthMap, GUIState state, GUIState currentState) throws MultipleListOrGridException {\n if (!isAttributeEqual(element1, element2)) {\n return false;\n }\n\n for (int i = 0; i < max(element1.elements().size(), element2.elements().size()); i++) {\n if (i == ((Element) element1).elements().size() || i == ((Element) element2).elements().size())\n return false;\n if (element1.attributeValue(NodeAttribute.Class) != null && element2.attributeValue(NodeAttribute.Class) != null &&\n (element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.ListView)\n || element1.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView) && element2.attributeValue(NodeAttribute.Class).equals(NodeAttribute.GridView))) {\n\n if (state.getListSize() != currentState.getListSize() && state.getGridSize() != currentState.getGridSize()) {\n currentState.setIsDynamicListAndGrid(true);\n }\n if (currentState.isDynamicListAndGrid()) {\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) == null)\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), 0);\n\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n } else {\n int lengthValue = lengthMap.get(getCurrentXpath(element1, getStringList(element1))) + 1;\n lengthMap.put(getCurrentXpath(element1, getStringList(element1)), lengthValue);\n if (lengthMap.get(getCurrentXpath(element1, getStringList(element1))) >= maxListGridSizeThreshold) {\n this.totalListGridEquivalentStateCount++;\n state.setIsEquivalentState(true);\n if (!state.getImagelist().contains(currentState.getImagelist().get(0)))\n state.addImage(currentState.getImagelist().get(0));\n state.increaseEquivalentStateCount();\n state.setIsListAndGrid(true);\n return true;\n }\n }\n } else {\n return false;\n }\n\n } else {\n if (!areEqual((Element) element1.elements().get(i), (Element) element2.elements().get(i), lengthMap, state, currentState)) {\n return false;\n }\n }\n }\n return true;\n }", "boolean areTheyEqual(int[] array_a, int[] array_b) {\n if(array_a == null || array_b == null || array_a.length!=array_b.length) return false;\n\n HashMap<Integer,Integer> count = new HashMap<>();\n for(int x : array_a){\n count.put(x, count.getOrDefault(x,0)+1);\n }\n for(int y : array_b){\n count.put(y, count.getOrDefault(y,0)-1);\n if(count.get(y)==0) count.remove(y);\n }\n return count.size()==0;\n }", "@Override\n public boolean equals (Object o) {\n if (!(o instanceof Row)) return false;\n\n Row other = (Row)o;\n if(index!=other.getIndex())\n return false;\n for (int i = 0; i < row.size(); i++)\n if (!row.get(i).equals(other.get(i)))\n return false;\n return true;\n }", "private int findCursorBlock(List<BlockLine> blocks) {\n int line = mCursor.getLeftLine();\n int min = binarySearchEndBlock(line,blocks);\n int max = blocks.size() - 1;\n int minDis = Integer.MAX_VALUE;\n int found = -1;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n for(int i = min;i <= max;i++) {\n BlockLine block = blocks.get(i);\n if(block.endLine >= line && block.startLine <= line) {\n int dis = block.endLine - block.startLine;\n if(dis < minDis) {\n minDis = dis;\n found = i;\n }\n }else if(minDis != Integer.MAX_VALUE) {\n jCount++;\n if(jCount >= maxCount) {\n break;\n }\n }\n }\n return found;\n }", "public boolean isEqualTo(Cluster c)\n {\n int len = this.size();\n if (len != c.size()){\n return false;\n }\n if (len == 0){\n return true;\n }\n if (this.getLeader() != c.getLeader()){\n return false;\n }\n for (Integer n : this._elems){\n if (!c.contains(n)){\n return false;\n }\n }\n return true;\n }", "private void assertEqual(Iterator expected, Iterator actual) {\n\t\t\n\t}", "public boolean equals(Position other) {\n return (other.x == this.x && other.y == this.y);\r\n }", "public boolean isBlockSolved(Block block) {\n ArrayList<Integer> numbers = new ArrayList<Integer>();\n for (int i = 1; i < 10; i++) {\n numbers.add(i);\n }\n\n for (int i = 0; i < 9; i++) {\n \t\tif(block.getUserNum(i).size() != 1 && block.getNum(i) < 0) {\n \t\t\treturn false;\n \t\t}\n \t\tif (block.getNum(i) < 0) {\n\t \t\tif (numbers.indexOf(block.getUserNum(i).get(0)) < 0) {\n\t \t\t\treturn false;\n\t \t\t}else {\n\t \t\t\tnumbers.remove(block.getUserNum(i).get(0));\n\t \t\t}\n \t\t}else {\n \t\t\tif (numbers.indexOf(block.getNum(i)) < 0) {\n\t \t\t\treturn false;\n\t \t\t}else {\n\t \t\t\tnumbers.remove((Integer)block.getNum(i));\n\t \t\t}\n \t\t}\n }\n\n if (!numbers.isEmpty()) {\n return false;\n }\n\n return true;\n }", "public boolean equals(PositionRadians p) {\n\t\tif (value == p.value)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean checkRowCol(int c1, int c2, int c3) \r\n {\r\n return ((c1 != -1) && (c1 == c2) && (c2 == c3)); //eida ekhon porjonto kaaj e lage nai\r\n }", "@Override\n public boolean areItemsTheSame(int oldItemPosition, int newItemPosition) {\n Station oldStation = mOldStations.get(oldItemPosition);\n Station newStation = mNewStations.get(newItemPosition);\n return oldStation.getStreamUri().equals(newStation.getStreamUri());\n }" ]
[ "0.74850816", "0.6016292", "0.5873206", "0.5752331", "0.55533445", "0.55152285", "0.54707134", "0.5452086", "0.54197717", "0.5366255", "0.53507954", "0.5319939", "0.5271113", "0.52573514", "0.5196893", "0.51858777", "0.5170535", "0.5133106", "0.51322234", "0.5127257", "0.51235765", "0.5087995", "0.5080649", "0.5078042", "0.5035889", "0.50218135", "0.5012283", "0.49975434", "0.4997285", "0.4990225", "0.49850985", "0.49657726", "0.4963108", "0.49628133", "0.49388877", "0.4931252", "0.4929682", "0.49262965", "0.49226972", "0.49196368", "0.4917169", "0.4911163", "0.49013898", "0.4898736", "0.48926485", "0.48924518", "0.48831606", "0.48818365", "0.48575696", "0.4853743", "0.48518762", "0.48356313", "0.48298642", "0.4827044", "0.48211458", "0.48151773", "0.48022813", "0.4800997", "0.47986084", "0.47914124", "0.4786879", "0.47860032", "0.47840753", "0.4773957", "0.47685263", "0.47674996", "0.47649175", "0.47541627", "0.47491083", "0.47464427", "0.47456515", "0.47325817", "0.472381", "0.47180822", "0.4717533", "0.47152394", "0.47134435", "0.47106948", "0.47102037", "0.47034714", "0.47012833", "0.46990693", "0.46882492", "0.46847633", "0.46814418", "0.46764183", "0.46691018", "0.46640715", "0.46582392", "0.46563154", "0.46559307", "0.46545023", "0.46533757", "0.46515983", "0.46432462", "0.46326998", "0.46265095", "0.4612798", "0.46123397", "0.46028998" ]
0.61881304
1
/ WARNING void declaration
public boolean hasLastPatchTime() { void var1_5; int bl2 = this.bitField0_; int n10 = 2; int n11 = bl2 & n10; if (n11 == n10) { boolean bl3 = true; } else { boolean bl4 = false; } return (boolean)var1_5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING Removed back jump from a try to a catch block possible behaviour change. Loose catch block WARNING void declaration Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public Messages$PatchCommand$Builder mergeFrom(CodedInputStream object, ExtensionRegistryLite object2) { void var1_6; Object object3; block7: { object3 = null; Parser parser = Messages$PatchCommand.PARSER; object = parser.parsePartialFrom((CodedInputStream)object, (ExtensionRegistryLite)object2); object = (Messages$PatchCommand)object; if (object == null) break block7; this.mergeFrom((Messages$PatchCommand)object); } return this; { catch (Throwable throwable) { } catch (InvalidProtocolBufferException invalidProtocolBufferException) {} { object2 = invalidProtocolBufferException.getUnfinishedMessage(); object2 = (Messages$PatchCommand)object2; } try { IOException iOException = invalidProtocolBufferException.unwrapIOException(); throw iOException; } catch (Throwable throwable) { object3 = object2; } } if (object3 != null) { this.mergeFrom((Messages$PatchCommand)object3); } throw var1_6; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "public void m9741j() throws cf {\r\n }", "void m5771e() throws C0841b;", "void m5770d() throws C0841b;", "public synchronized void close() {\n /*\n r4 = this;\n monitor-enter(r4);\n r1 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ IllegalArgumentException -> 0x0009 }\n if (r0 != 0) goto L_0x000e;\n L_0x0007:\n monitor-exit(r4);\n return;\n L_0x0009:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n L_0x000e:\n r0 = new java.util.ArrayList;\t Catch:{ all -> 0x000b }\n r2 = r4.k;\t Catch:{ all -> 0x000b }\n r2 = r2.values();\t Catch:{ all -> 0x000b }\n r0.<init>(r2);\t Catch:{ all -> 0x000b }\n r2 = r0.iterator();\t Catch:{ all -> 0x000b }\n L_0x001d:\n r0 = r2.hasNext();\t Catch:{ all -> 0x000b }\n if (r0 == 0) goto L_0x0038;\n L_0x0023:\n r0 = r2.next();\t Catch:{ all -> 0x000b }\n r0 = (com.whatsapp.util.bl) r0;\t Catch:{ all -> 0x000b }\n r3 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n if (r3 == 0) goto L_0x0036;\n L_0x002f:\n r0 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n r0.b();\t Catch:{ IllegalArgumentException -> 0x0044 }\n L_0x0036:\n if (r1 == 0) goto L_0x001d;\n L_0x0038:\n r4.h();\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ all -> 0x000b }\n r0.close();\t Catch:{ all -> 0x000b }\n r0 = 0;\n r4.m = r0;\t Catch:{ all -> 0x000b }\n goto L_0x0007;\n L_0x0044:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.close():void\");\n }", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "void m5769c() throws C0841b;", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "public void mo1944a() throws cf {\r\n }", "void mo57276a(Exception exc);", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public void swrap() throws NoUnusedObjectExeption;", "protected void\ttryToFix() { Command.insertList(crAndBrace); }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "public void mo1976s() throws cf {\r\n }", "private void addTraps() {\n final Jimple jimple = Jimple.v();\n for (TryBlock<? extends ExceptionHandler> tryItem : tries) {\n int startAddress = tryItem.getStartCodeAddress();\n int length = tryItem.getCodeUnitCount(); // .getTryLength();\n int endAddress = startAddress + length; // - 1;\n Unit beginStmt = instructionAtAddress(startAddress).getUnit();\n // (startAddress + length) typically points to the first byte of the\n // first instruction after the try block\n // except if there is no instruction after the try block in which\n // case it points to the last byte of the last\n // instruction of the try block. Removing 1 from (startAddress +\n // length) always points to \"somewhere\" in\n // the last instruction of the try block since the smallest\n // instruction is on two bytes (nop = 0x0000).\n Unit endStmt = instructionAtAddress(endAddress).getUnit();\n // if the try block ends on the last instruction of the body, add a\n // nop instruction so Soot can include\n // the last instruction in the try block.\n if (jBody.getUnits().getLast() == endStmt\n && instructionAtAddress(endAddress - 1).getUnit() == endStmt) {\n Unit nop = jimple.newNopStmt();\n jBody.getUnits().insertAfter(nop, endStmt);\n endStmt = nop;\n }\n\n List<? extends ExceptionHandler> hList = tryItem.getExceptionHandlers();\n for (ExceptionHandler handler : hList) {\n String exceptionType = handler.getExceptionType();\n if (exceptionType == null) {\n exceptionType = \"Ljava/lang/Throwable;\";\n }\n Type t = DexType.toSoot(exceptionType);\n // exceptions can only be of RefType\n if (t instanceof RefType) {\n SootClass exception = ((RefType) t).getSootClass();\n DexlibAbstractInstruction instruction =\n instructionAtAddress(handler.getHandlerCodeAddress());\n if (!(instruction instanceof MoveExceptionInstruction)) {\n logger.debug(\n \"\"\n + String.format(\n \"First instruction of trap handler unit not MoveException but %s\",\n instruction.getClass().getName()));\n } else {\n ((MoveExceptionInstruction) instruction).setRealType(this, exception.getType());\n }\n\n Trap trap = jimple.newTrap(exception, beginStmt, endStmt, instruction.getUnit());\n jBody.getTraps().add(trap);\n }\n }\n }\n }", "private synchronized void a(com.whatsapp.util.x r11, boolean r12) {\n /*\n r10 = this;\n r0 = 0;\n monitor-enter(r10);\n r2 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x0016 }\n r3 = com.whatsapp.util.x.a(r11);\t Catch:{ all -> 0x0016 }\n r1 = com.whatsapp.util.bl.b(r3);\t Catch:{ IllegalArgumentException -> 0x0014 }\n if (r1 == r11) goto L_0x0019;\n L_0x000e:\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0014 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0014 }\n L_0x0014:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0016:\n r0 = move-exception;\n monitor-exit(r10);\n throw r0;\n L_0x0019:\n if (r12 == 0) goto L_0x0058;\n L_0x001b:\n r1 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x0052 }\n if (r1 != 0) goto L_0x0058;\n L_0x0021:\n r1 = r0;\n L_0x0022:\n r4 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r1 >= r4) goto L_0x0058;\n L_0x0026:\n r4 = r3.b(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = r4.exists();\t Catch:{ IllegalArgumentException -> 0x0050 }\n if (r4 != 0) goto L_0x0054;\n L_0x0030:\n r11.b();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = 24;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0050 }\n L_0x0050:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0052:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0054:\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x0022;\n L_0x0058:\n r1 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r0 >= r1) goto L_0x008f;\n L_0x005c:\n r1 = r3.b(r0);\t Catch:{ all -> 0x0016 }\n if (r12 == 0) goto L_0x0088;\n L_0x0062:\n r4 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0126 }\n if (r4 == 0) goto L_0x008b;\n L_0x0068:\n r4 = r3.a(r0);\t Catch:{ all -> 0x0016 }\n r1.renameTo(r4);\t Catch:{ all -> 0x0016 }\n r5 = com.whatsapp.util.bl.e(r3);\t Catch:{ all -> 0x0016 }\n r6 = r5[r0];\t Catch:{ all -> 0x0016 }\n r4 = r4.length();\t Catch:{ all -> 0x0016 }\n r8 = com.whatsapp.util.bl.e(r3);\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8[r0] = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r6 = r8 - r6;\n r4 = r4 + r6;\n r10.i = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n a(r1);\t Catch:{ IllegalArgumentException -> 0x0128 }\n L_0x008b:\n r0 = r0 + 1;\n if (r2 == 0) goto L_0x0058;\n L_0x008f:\n r0 = r10.e;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 + 1;\n r10.e = r0;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = 0;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 | r12;\n if (r0 == 0) goto L_0x00e0;\n L_0x00a0:\n r0 = 1;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012c }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = z;\t Catch:{ IllegalArgumentException -> 0x012c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = r3.a();\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = 10;\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012c }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012c }\n if (r12 == 0) goto L_0x010f;\n L_0x00d4:\n r0 = r10.n;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 1;\n r4 = r4 + r0;\n r10.n = r4;\t Catch:{ IllegalArgumentException -> 0x012e }\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012e }\n if (r2 == 0) goto L_0x010f;\n L_0x00e0:\n r0 = r10.k;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.remove(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 25;\n r2 = r2[r4];\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = 10;\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x010f:\n r0 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r2 = r10.c;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 > 0) goto L_0x011d;\n L_0x0117:\n r0 = r10.f();\t Catch:{ IllegalArgumentException -> 0x0132 }\n if (r0 == 0) goto L_0x0124;\n L_0x011d:\n r0 = r10.d;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r1 = r10.j;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r0.submit(r1);\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0124:\n monitor-exit(r10);\n return;\n L_0x0126:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0128:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x012a:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012c }\n L_0x012c:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x012e:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0130:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0132:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.a(com.whatsapp.util.x, boolean):void\");\n }", "void m5768b() throws C0841b;", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "public void zzcr() throws {\n /*\n r5 = this;\n r0 = zzagr;\n monitor-enter(r0);\n r1 = r5.zzagu;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x0009:\n r1 = r5.zzags;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x001e;\n L_0x000d:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n if (r2 == 0) goto L_0x001e;\n L_0x0011:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n r2.connect();\t Catch:{ Throwable -> 0x001b }\n r3 = 1;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n L_0x0019:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x001b:\n r4 = move-exception;\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n throw r4;\n L_0x001e:\n r3 = 0;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n goto L_0x0019;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzax.zzcr():void\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "private void a(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14, com.google.ae r15) {\n /*\n r10 = this;\n r9 = 48;\n r8 = 2;\n r6 = F;\n if (r11 != 0) goto L_0x0017;\n L_0x0007:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0015 }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x0015 }\n r2 = J;\t Catch:{ ao -> 0x0015 }\n r3 = 47;\n r2 = r2[r3];\t Catch:{ ao -> 0x0015 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0015 }\n throw r0;\t Catch:{ ao -> 0x0015 }\n L_0x0015:\n r0 = move-exception;\n throw r0;\n L_0x0017:\n r0 = r11.length();\t Catch:{ ao -> 0x002d }\n r1 = 250; // 0xfa float:3.5E-43 double:1.235E-321;\n if (r0 <= r1) goto L_0x002f;\n L_0x001f:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x002d }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x002d }\n r2 = J;\t Catch:{ ao -> 0x002d }\n r3 = 41;\n r2 = r2[r3];\t Catch:{ ao -> 0x002d }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x002d }\n throw r0;\t Catch:{ ao -> 0x002d }\n L_0x002d:\n r0 = move-exception;\n throw r0;\n L_0x002f:\n r7 = new java.lang.StringBuilder;\n r7.<init>();\n r10.a(r11, r7);\t Catch:{ ao -> 0x004f }\n r0 = r7.toString();\t Catch:{ ao -> 0x004f }\n r0 = b(r0);\t Catch:{ ao -> 0x004f }\n if (r0 != 0) goto L_0x0051;\n L_0x0041:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x004f }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x004f }\n r2 = J;\t Catch:{ ao -> 0x004f }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ ao -> 0x004f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x004f }\n throw r0;\t Catch:{ ao -> 0x004f }\n L_0x004f:\n r0 = move-exception;\n throw r0;\n L_0x0051:\n if (r14 == 0) goto L_0x006f;\n L_0x0053:\n r0 = r7.toString();\t Catch:{ ao -> 0x006d }\n r0 = r10.a(r0, r12);\t Catch:{ ao -> 0x006d }\n if (r0 != 0) goto L_0x006f;\n L_0x005d:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x006b }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x006b }\n r2 = J;\t Catch:{ ao -> 0x006b }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ ao -> 0x006b }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x006b }\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006b:\n r0 = move-exception;\n throw r0;\n L_0x006d:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006f:\n if (r13 == 0) goto L_0x0074;\n L_0x0071:\n r15.b(r11);\t Catch:{ ao -> 0x00d3 }\n L_0x0074:\n r0 = r10.b(r7);\n r1 = r0.length();\t Catch:{ ao -> 0x00d5 }\n if (r1 <= 0) goto L_0x0081;\n L_0x007e:\n r15.a(r0);\t Catch:{ ao -> 0x00d5 }\n L_0x0081:\n r2 = r10.e(r12);\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r1 = r7.toString();\t Catch:{ ao -> 0x00d7 }\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\t Catch:{ ao -> 0x00d7 }\n L_0x0095:\n if (r0 == 0) goto L_0x0182;\n L_0x0097:\n r1 = r10.b(r0);\n r4 = r1.equals(r12);\n if (r4 != 0) goto L_0x017f;\n L_0x00a1:\n r0 = r10.a(r0, r1);\n L_0x00a5:\n if (r6 == 0) goto L_0x00bd;\n L_0x00a7:\n a(r7);\t Catch:{ ao -> 0x0121 }\n r3.append(r7);\t Catch:{ ao -> 0x0121 }\n if (r12 == 0) goto L_0x00b8;\n L_0x00af:\n r1 = r0.L();\n r15.a(r1);\t Catch:{ ao -> 0x0123 }\n if (r6 == 0) goto L_0x00bd;\n L_0x00b8:\n if (r13 == 0) goto L_0x00bd;\n L_0x00ba:\n r15.l();\t Catch:{ ao -> 0x0125 }\n L_0x00bd:\n r1 = r3.length();\t Catch:{ ao -> 0x00d1 }\n if (r1 >= r8) goto L_0x0127;\n L_0x00c3:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x00d1 }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x00d1 }\n r2 = J;\t Catch:{ ao -> 0x00d1 }\n r3 = 44;\n r2 = r2[r3];\t Catch:{ ao -> 0x00d1 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x00d1 }\n throw r0;\t Catch:{ ao -> 0x00d1 }\n L_0x00d1:\n r0 = move-exception;\n throw r0;\n L_0x00d3:\n r0 = move-exception;\n throw r0;\n L_0x00d5:\n r0 = move-exception;\n throw r0;\n L_0x00d7:\n r0 = move-exception;\n r1 = g;\n r4 = r7.toString();\n r1 = r1.matcher(r4);\n r4 = r0.a();\t Catch:{ ao -> 0x0111 }\n r5 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x0111 }\n if (r4 != r5) goto L_0x0113;\n L_0x00ea:\n r4 = r1.lookingAt();\t Catch:{ ao -> 0x0111 }\n if (r4 == 0) goto L_0x0113;\n L_0x00f0:\n r0 = r1.end();\n r1 = r7.substring(r0);\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\n if (r0 != 0) goto L_0x0095;\n L_0x0101:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x010f }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x010f }\n r2 = J;\t Catch:{ ao -> 0x010f }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ ao -> 0x010f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x010f }\n throw r0;\t Catch:{ ao -> 0x010f }\n L_0x010f:\n r0 = move-exception;\n throw r0;\n L_0x0111:\n r0 = move-exception;\n throw r0;\n L_0x0113:\n r1 = new com.google.ao;\n r2 = r0.a();\n r0 = r0.getMessage();\n r1.<init>(r2, r0);\n throw r1;\n L_0x0121:\n r0 = move-exception;\n throw r0;\n L_0x0123:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x0125 }\n L_0x0125:\n r0 = move-exception;\n throw r0;\n L_0x0127:\n if (r0 == 0) goto L_0x013a;\n L_0x0129:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r10.a(r3, r0, r1);\t Catch:{ ao -> 0x0150 }\n if (r13 == 0) goto L_0x013a;\n L_0x0133:\n r0 = r1.toString();\t Catch:{ ao -> 0x0150 }\n r15.c(r0);\t Catch:{ ao -> 0x0150 }\n L_0x013a:\n r0 = r3.length();\n if (r0 >= r8) goto L_0x0152;\n L_0x0140:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x014e }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x014e }\n r2 = J;\t Catch:{ ao -> 0x014e }\n r3 = 42;\n r2 = r2[r3];\t Catch:{ ao -> 0x014e }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x014e }\n throw r0;\t Catch:{ ao -> 0x014e }\n L_0x014e:\n r0 = move-exception;\n throw r0;\n L_0x0150:\n r0 = move-exception;\n throw r0;\n L_0x0152:\n r1 = 16;\n if (r0 <= r1) goto L_0x0166;\n L_0x0156:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0164 }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x0164 }\n r2 = J;\t Catch:{ ao -> 0x0164 }\n r3 = 45;\n r2 = r2[r3];\t Catch:{ ao -> 0x0164 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0164 }\n throw r0;\t Catch:{ ao -> 0x0164 }\n L_0x0164:\n r0 = move-exception;\n throw r0;\n L_0x0166:\n r0 = 0;\n r0 = r3.charAt(r0);\t Catch:{ ao -> 0x017d }\n if (r0 != r9) goto L_0x0171;\n L_0x016d:\n r0 = 1;\n r15.a(r0);\t Catch:{ ao -> 0x017d }\n L_0x0171:\n r0 = r3.toString();\n r0 = java.lang.Long.parseLong(r0);\n r15.a(r0);\n return;\n L_0x017d:\n r0 = move-exception;\n throw r0;\n L_0x017f:\n r0 = r2;\n goto L_0x00a5;\n L_0x0182:\n r0 = r2;\n goto L_0x00a7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String, boolean, boolean, com.google.ae):void\");\n }", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "public void mo1964g() throws cf {\r\n }", "public abstract void mo33865a(Throwable th, Throwable th2);", "public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public void mo38101a(okhttp3.internal.http2.C13256a r4, okhttp3.internal.http2.C13256a r5, java.io.IOException r6) {\n /*\n r3 = this;\n r3.mo38100a(r4) // Catch:{ IOException -> 0x0003 }\n L_0x0003:\n r4 = 0\n monitor-enter(r3)\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n boolean r0 = r0.isEmpty() // Catch:{ all -> 0x004a }\n if (r0 != 0) goto L_0x0026\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r4 = r3.f34193g // Catch:{ all -> 0x004a }\n java.util.Collection r4 = r4.values() // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n int r0 = r0.size() // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r0 = new okhttp3.internal.http2.C13281h[r0] // Catch:{ all -> 0x004a }\n java.lang.Object[] r4 = r4.toArray(r0) // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r4 = (okhttp3.internal.http2.C13281h[]) r4 // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n r0.clear() // Catch:{ all -> 0x004a }\n L_0x0026:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n if (r4 == 0) goto L_0x0035\n int r0 = r4.length\n r1 = 0\n L_0x002b:\n if (r1 >= r0) goto L_0x0035\n r2 = r4[r1]\n r2.mo38133a(r5, r6) // Catch:{ IOException -> 0x0032 }\n L_0x0032:\n int r1 = r1 + 1\n goto L_0x002b\n L_0x0035:\n okhttp3.internal.http2.i r4 = r3.f34208v // Catch:{ IOException -> 0x003a }\n r4.close() // Catch:{ IOException -> 0x003a }\n L_0x003a:\n java.net.Socket r4 = r3.f34207u // Catch:{ IOException -> 0x003f }\n r4.close() // Catch:{ IOException -> 0x003f }\n L_0x003f:\n java.util.concurrent.ScheduledExecutorService r4 = r3.f34198l\n r4.shutdown()\n java.util.concurrent.ExecutorService r4 = r3.f34199m\n r4.shutdown()\n return\n L_0x004a:\n r4 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.C13262e.mo38101a(okhttp3.internal.http2.a, okhttp3.internal.http2.a, java.io.IOException):void\");\n }", "private final void zzaj() {\n /*\n r6 = this;\n java.lang.Object r0 = r6.zzsC\n monitor-enter(r0)\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n if (r1 == 0) goto L_0x0013\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n java.util.concurrent.CountDownLatch r1 = r1.zzsI // Catch:{ all -> 0x0026 }\n r1.countDown() // Catch:{ all -> 0x0026 }\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ InterruptedException -> 0x0013 }\n r1.join() // Catch:{ InterruptedException -> 0x0013 }\n L_0x0013:\n long r1 = r6.zzsE // Catch:{ all -> 0x0026 }\n r3 = 0\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 <= 0) goto L_0x0024\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = new com.google.android.gms.ads.identifier.AdvertisingIdClient$zza // Catch:{ all -> 0x0026 }\n long r2 = r6.zzsE // Catch:{ all -> 0x0026 }\n r1.<init>(r6, r2) // Catch:{ all -> 0x0026 }\n r6.zzsD = r1 // Catch:{ all -> 0x0026 }\n L_0x0024:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n return\n L_0x0026:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.identifier.AdvertisingIdClient.zzaj():void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }", "public int getDrawingOrder() {\n/* 1068 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}", "void unableToListContents();", "@Override\n\tpublic void catchPiece() {\n\t\t\n\t}", "protected void thoroughInspection() {}", "void mo1031a(Throwable th);", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo1962e() throws cf {\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1031a(Throwable th) {\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "public void c() {\n /*\n r14 = this;\n io.b.o<? super U> r0 = r14.actual\n r1 = 1\n r2 = 1\n L_0x0004:\n boolean r3 = r14.d()\n if (r3 == 0) goto L_0x000b\n return\n L_0x000b:\n io.b.e.c.d<U> r3 = r14.queue\n if (r3 == 0) goto L_0x0023\n L_0x000f:\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x0016\n return\n L_0x0016:\n java.lang.Object r4 = r3.poll()\n if (r4 != 0) goto L_0x001f\n if (r4 != 0) goto L_0x000f\n goto L_0x0023\n L_0x001f:\n r0.a(r4)\n goto L_0x000f\n L_0x0023:\n boolean r3 = r14.done\n io.b.e.c.d<U> r4 = r14.queue\n java.util.concurrent.atomic.AtomicReference<io.b.e.e.d.i$a<?, ?>[]> r5 = r14.observers\n java.lang.Object r5 = r5.get()\n io.b.e.e.d.i$a[] r5 = (io.b.e.e.d.i.a[]) r5\n int r6 = r5.length\n int r7 = r14.maxConcurrency\n r8 = 2147483647(0x7fffffff, float:NaN)\n r9 = 0\n if (r7 == r8) goto L_0x0044\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r7 = r14.sources // Catch:{ all -> 0x0041 }\n int r7 = r7.size() // Catch:{ all -> 0x0041 }\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n goto L_0x0045\n L_0x0041:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n throw r0\n L_0x0044:\n r7 = 0\n L_0x0045:\n if (r3 == 0) goto L_0x0067\n if (r4 == 0) goto L_0x004f\n boolean r3 = r4.isEmpty()\n if (r3 == 0) goto L_0x0067\n L_0x004f:\n if (r6 != 0) goto L_0x0067\n if (r7 != 0) goto L_0x0067\n io.b.e.h.c r1 = r14.errors\n java.lang.Throwable r1 = r1.a()\n java.lang.Throwable r2 = io.b.e.h.f.f33557a\n if (r1 == r2) goto L_0x0066\n if (r1 != 0) goto L_0x0063\n r0.a()\n goto L_0x0066\n L_0x0063:\n r0.a((java.lang.Throwable) r1)\n L_0x0066:\n return\n L_0x0067:\n if (r6 == 0) goto L_0x0106\n long r3 = r14.lastId\n int r7 = r14.lastIndex\n if (r6 <= r7) goto L_0x0077\n r10 = r5[r7]\n long r10 = r10.id\n int r12 = (r10 > r3 ? 1 : (r10 == r3 ? 0 : -1))\n if (r12 == 0) goto L_0x0098\n L_0x0077:\n if (r6 > r7) goto L_0x007a\n r7 = 0\n L_0x007a:\n r10 = r7\n r7 = 0\n L_0x007c:\n if (r7 >= r6) goto L_0x008f\n r11 = r5[r10]\n long r11 = r11.id\n int r13 = (r11 > r3 ? 1 : (r11 == r3 ? 0 : -1))\n if (r13 != 0) goto L_0x0087\n goto L_0x008f\n L_0x0087:\n int r10 = r10 + 1\n if (r10 != r6) goto L_0x008c\n r10 = 0\n L_0x008c:\n int r7 = r7 + 1\n goto L_0x007c\n L_0x008f:\n r14.lastIndex = r10\n r3 = r5[r10]\n long r3 = r3.id\n r14.lastId = r3\n r7 = r10\n L_0x0098:\n r3 = 0\n r4 = 0\n L_0x009a:\n if (r3 >= r6) goto L_0x00fd\n boolean r10 = r14.d()\n if (r10 == 0) goto L_0x00a3\n return\n L_0x00a3:\n r10 = r5[r7]\n L_0x00a5:\n boolean r11 = r14.d()\n if (r11 == 0) goto L_0x00ac\n return\n L_0x00ac:\n io.b.e.c.e<U> r11 = r10.queue\n if (r11 != 0) goto L_0x00b1\n goto L_0x00b9\n L_0x00b1:\n java.lang.Object r12 = r11.poll() // Catch:{ Throwable -> 0x00e2 }\n if (r12 != 0) goto L_0x00d8\n if (r12 != 0) goto L_0x00a5\n L_0x00b9:\n boolean r11 = r10.done\n io.b.e.c.e<U> r12 = r10.queue\n if (r11 == 0) goto L_0x00d2\n if (r12 == 0) goto L_0x00c7\n boolean r11 = r12.isEmpty()\n if (r11 == 0) goto L_0x00d2\n L_0x00c7:\n r14.b(r10)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00d1\n return\n L_0x00d1:\n r4 = 1\n L_0x00d2:\n int r7 = r7 + 1\n if (r7 != r6) goto L_0x00fb\n r7 = 0\n goto L_0x00fb\n L_0x00d8:\n r0.a(r12)\n boolean r12 = r14.d()\n if (r12 == 0) goto L_0x00b1\n return\n L_0x00e2:\n r4 = move-exception\n io.b.c.b.b(r4)\n r10.b()\n io.b.e.h.c r11 = r14.errors\n r11.a(r4)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00f5\n return\n L_0x00f5:\n r14.b(r10)\n int r3 = r3 + 1\n r4 = 1\n L_0x00fb:\n int r3 = r3 + r1\n goto L_0x009a\n L_0x00fd:\n r14.lastIndex = r7\n r3 = r5[r7]\n long r5 = r3.id\n r14.lastId = r5\n goto L_0x0107\n L_0x0106:\n r4 = 0\n L_0x0107:\n if (r4 == 0) goto L_0x0129\n int r3 = r14.maxConcurrency\n if (r3 == r8) goto L_0x0004\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r3 = r14.sources // Catch:{ all -> 0x0126 }\n java.lang.Object r3 = r3.poll() // Catch:{ all -> 0x0126 }\n io.b.m r3 = (io.b.m) r3 // Catch:{ all -> 0x0126 }\n if (r3 != 0) goto L_0x0120\n int r3 = r14.wip // Catch:{ all -> 0x0126 }\n int r3 = r3 - r1\n r14.wip = r3 // Catch:{ all -> 0x0126 }\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n goto L_0x0004\n L_0x0120:\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n r14.a(r3)\n goto L_0x0004\n L_0x0126:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n throw r0\n L_0x0129:\n int r2 = -r2\n int r2 = r14.addAndGet(r2)\n if (r2 != 0) goto L_0x0004\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.b.e.e.d.i.b.c():void\");\n }", "public void mo1972o() throws cf {\r\n }", "public abstract void mo13750a(Throwable th, PrintWriter printWriter);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "private void a(String object) {\n Object object2;\n block20: {\n block19: {\n block18: {\n block17: {\n void var1_4;\n block16: {\n object2 = l$b.e();\n Object object3 = new File((String)object2);\n boolean bl2 = ((File)object3).exists();\n if (!bl2) {\n ((File)object3).mkdirs();\n }\n bl2 = false;\n object2 = null;\n String string2 = \"sensebot_log.txt\";\n File file = new File((File)object3, string2);\n boolean bl3 = true;\n FileOutputStream fileOutputStream = new FileOutputStream(file, bl3);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n object3 = \"utf-8\";\n object = ((String)object).getBytes((String)object3);\n bufferedOutputStream.write((byte[])object);\n try {\n bufferedOutputStream.close();\n return;\n }\n catch (Exception exception) {\n return;\n }\n catch (Throwable throwable) {\n object2 = bufferedOutputStream;\n break block16;\n }\n catch (Exception exception) {\n object2 = bufferedOutputStream;\n break block17;\n }\n catch (UnsupportedEncodingException unsupportedEncodingException) {\n object2 = bufferedOutputStream;\n break block18;\n }\n catch (FileNotFoundException fileNotFoundException) {\n object2 = bufferedOutputStream;\n break block19;\n }\n catch (Throwable throwable) {\n // empty catch block\n }\n }\n if (object2 == null) throw var1_4;\n try {\n ((FilterOutputStream)object2).close();\n }\n catch (Exception exception) {\n throw var1_4;\n }\n throw var1_4;\n catch (Exception exception) {}\n }\n if (object2 == null) return;\n break block20;\n catch (UnsupportedEncodingException unsupportedEncodingException) {}\n }\n if (object2 == null) return;\n break block20;\n catch (FileNotFoundException fileNotFoundException) {}\n }\n if (object2 == null) return;\n }\n ((FilterOutputStream)object2).close();\n }", "@Override\n\tpublic void catching(Throwable t) {\n\n\t}", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public void mo5385r() {\n throw null;\n }", "public synchronized void a(com.umeng.commonsdk.proguard.f r9) {\n /*\n r8 = this;\n monitor-enter(r8);\n r0 = \"UMSysLocation\";\n r1 = 1;\n r2 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r3 = \"getSystemLocation\";\n r4 = 0;\n r2[r4] = r3;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00c6;\n L_0x0010:\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n if (r0 != 0) goto L_0x0016;\n L_0x0014:\n goto L_0x00c6;\n L_0x0016:\n r8.e = r9;\t Catch:{ all -> 0x00c8 }\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n r2 = \"android.permission.ACCESS_COARSE_LOCATION\";\n r0 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r0, r2);\t Catch:{ all -> 0x00c8 }\n r2 = r8.d;\t Catch:{ all -> 0x00c8 }\n r3 = \"android.permission.ACCESS_FINE_LOCATION\";\n r2 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r2, r3);\t Catch:{ all -> 0x00c8 }\n r3 = 0;\n if (r0 != 0) goto L_0x0039;\n L_0x002b:\n if (r2 == 0) goto L_0x002e;\n L_0x002d:\n goto L_0x0039;\n L_0x002e:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x0037;\n L_0x0032:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n r9.a(r3);\t Catch:{ all -> 0x00c8 }\n L_0x0037:\n monitor-exit(r8);\n return;\n L_0x0039:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n if (r5 == 0) goto L_0x00c4;\n L_0x003d:\n r5 = android.os.Build.VERSION.SDK_INT;\t Catch:{ Throwable -> 0x0098 }\n r6 = 21;\n if (r5 < r6) goto L_0x0054;\n L_0x0043:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x0054:\n if (r2 == 0) goto L_0x005f;\n L_0x0056:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0060;\n L_0x005f:\n r5 = 0;\n L_0x0060:\n if (r0 == 0) goto L_0x006b;\n L_0x0062:\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x006b:\n r6 = 0;\n L_0x006c:\n if (r5 != 0) goto L_0x0070;\n L_0x006e:\n if (r6 == 0) goto L_0x0091;\n L_0x0070:\n r5 = \"UMSysLocation\";\n r6 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0098 }\n r7 = \"getLastKnownLocation(LocationManager.PASSIVE_PROVIDER)\";\n r6[r4] = r7;\t Catch:{ Throwable -> 0x0098 }\n com.umeng.commonsdk.statistics.common.e.a(r5, r6);\t Catch:{ Throwable -> 0x0098 }\n if (r2 == 0) goto L_0x0086;\n L_0x007d:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"passive\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0086:\n if (r0 == 0) goto L_0x0091;\n L_0x0088:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"network\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0091:\n r0 = r3;\n L_0x0092:\n r2 = r8.e;\t Catch:{ Throwable -> 0x0098 }\n r2.a(r0);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x00c4;\n L_0x0098:\n r0 = move-exception;\n r2 = \"UMSysLocation\";\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c8 }\n r5.<init>();\t Catch:{ all -> 0x00c8 }\n r6 = \"e is \";\n r5.append(r6);\t Catch:{ all -> 0x00c8 }\n r5.append(r0);\t Catch:{ all -> 0x00c8 }\n r5 = r5.toString();\t Catch:{ all -> 0x00c8 }\n r1[r4] = r5;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r2, r1);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00bf;\n L_0x00b5:\n r9.a(r3);\t Catch:{ Throwable -> 0x00b9 }\n goto L_0x00bf;\n L_0x00b9:\n r9 = move-exception;\n r1 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r1, r9);\t Catch:{ all -> 0x00c8 }\n L_0x00bf:\n r9 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r9, r0);\t Catch:{ all -> 0x00c8 }\n L_0x00c4:\n monitor-exit(r8);\n return;\n L_0x00c6:\n monitor-exit(r8);\n return;\n L_0x00c8:\n r9 = move-exception;\n monitor-exit(r8);\n throw r9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.d.a(com.umeng.commonsdk.proguard.f):void\");\n }", "private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }", "public final void mo6481a(Throwable th) {\n }", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "void mo67922a(AbstractC32732ag agVar, Throwable th);", "public interface RoutineException {}", "protected int handleNext(int position) {\n/* 283 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void oR() {\n if (this.aqt == null) {\n throw new IllegalStateException(\"Callback must be set before execute\");\n }\n this.aqt.ob();\n bh.V(\"Attempting to load resource from disk\");\n if ((ce.oJ().oK() == ce.a.aqi || ce.oJ().oK() == ce.a.aqj) && this.aoc.equals(ce.oJ().getContainerId())) {\n this.aqt.a(bg.a.apM);\n return;\n }\n try {\n var1_1 = new FileInputStream(this.oS());\n }\n catch (FileNotFoundException var1_2) {\n bh.S(\"Failed to find the resource in the disk\");\n this.aqt.a(bg.a.apM);\n return;\n }\n var2_7 = new ByteArrayOutputStream();\n cr.b(var1_1, (OutputStream)var2_7);\n var2_7 = ol.a.l(var2_7.toByteArray());\n this.d((ol.a)var2_7);\n this.aqt.l((ol.a)var2_7);\n try {\n var1_1.close();\n }\n catch (IOException var1_3) {\n bh.W(\"Error closing stream for reading resource from disk\");\n }\n ** GOTO lbl52\n catch (IOException var2_8) {\n this.aqt.a(bg.a.apN);\n bh.W(\"Failed to read the resource from disk\");\n {\n catch (Throwable var2_10) {\n try {\n var1_1.close();\n }\n catch (IOException var1_6) {\n bh.W(\"Error closing stream for reading resource from disk\");\n throw var2_10;\n }\n throw var2_10;\n }\n }\n try {\n var1_1.close();\n }\n catch (IOException var1_4) {\n bh.W(\"Error closing stream for reading resource from disk\");\n }\n ** GOTO lbl52\n catch (IllegalArgumentException var2_9) {\n this.aqt.a(bg.a.apN);\n bh.W(\"Failed to read the resource from disk. The resource is inconsistent\");\n try {\n var1_1.close();\n }\n catch (IOException var1_5) {\n bh.W(\"Error closing stream for reading resource from disk\");\n }\nlbl52: // 6 sources:\n bh.V(\"The Disk resource was successfully read.\");\n return;\n }\n }\n }", "public void mo1960c() throws cf {\r\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public final synchronized void e(a.c.a.c.c r5, boolean r6) {\n /*\n r4 = this;\n monitor-enter(r4)\n monitor-enter(r4) // Catch:{ all -> 0x00a9 }\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x0009\n goto L_0x001e\n L_0x0009:\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f16c // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r3 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r3 = r3.size() // Catch:{ all -> 0x00a6 }\n int r3 = r3 + r0\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n if (r3 != r0) goto L_0x0020\n L_0x001e:\n r0 = 1\n goto L_0x0021\n L_0x0020:\n r0 = 0\n L_0x0021:\n r3 = 0\n if (r0 == 0) goto L_0x0055\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x00a3\n java.util.ArrayList<a.c.a.c.c> r5 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r5 = r5.size() // Catch:{ all -> 0x00a6 }\n if (r5 != 0) goto L_0x0040\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x003f\n java.lang.String r6 = \"downloadFinished\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r1) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x003f:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0040:\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f17d // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0054\n java.lang.String r6 = \"downloadFinishedWithErrors\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r2) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x0054:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0055:\n a.c.a.c.h r0 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r0 == 0) goto L_0x00a3\n if (r6 == 0) goto L_0x0085\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x0084\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemSuccess: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f16c // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0083\n goto L_0x00a3\n L_0x0083:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0084:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0085:\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x00a2\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemError: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x00a2:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x00a3:\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n monitor-exit(r4)\n return\n L_0x00a6:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n throw r5 // Catch:{ all -> 0x00a9 }\n L_0x00a9:\n r5 = move-exception\n monitor-exit(r4)\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.c.a.c.e.e(a.c.a.c.c, boolean):void\");\n }", "void sort(int a[]) throws Exception {\n }", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "public static void main(String[] ignore)\r\n/* 404: */ throws InterruptedException\r\n/* 405: */ {\r\n/* 406:358 */ String arg = \"drop(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:10.300\\\").\";\r\n/* 407:359 */ arg = arg + \"drop(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:10.000\\\").\";\r\n/* 408: */ \r\n/* 409: */ \r\n/* 410: */ \r\n/* 411:363 */ arg = arg + \"throw(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:09.467\\\").\";\r\n/* 412:364 */ arg = arg + \"bounce(subject:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.933\\\", to:time \\\"2011-08-25T20:30:09.767\\\").\";\r\n/* 413: */ \r\n/* 414: */ \r\n/* 415: */ \r\n/* 416: */ \r\n/* 417: */ \r\n/* 418: */ \r\n/* 419: */ \r\n/* 420: */ \r\n/* 421: */ \r\n/* 422: */ \r\n/* 423: */ \r\n/* 424: */ \r\n/* 425: */ \r\n/* 426: */ \r\n/* 427: */ \r\n/* 428: */ \r\n/* 429: */ \r\n/* 430: */ \r\n/* 431: */ \r\n/* 432: */ \r\n/* 433:385 */ DisgustingMoebiusTranslator translator = new DisgustingMoebiusTranslator();\r\n/* 434:386 */ translator.translate(arg);\r\n/* 435:387 */ translator.commentOnAction(Long.valueOf(2000L));\r\n/* 436:388 */ Thread.sleep(2000L);\r\n/* 437:389 */ translator.commentOnAction(Long.valueOf(4000L));\r\n/* 438: */ }", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "private void handleInvokeException(Exception e) {\n log.warn(\"invoke()\", e);\n // Removed reset of setLegDetail - as a performance tuning we are\n // not returning leg details from train route api for the moment - SM (10/2009)\n // setLegDetail(null);\n }", "@Override\n protected void updateEliminations() {\n\n }", "public Object mo3153b(Object obj) {\n Exception exc = (Exception) obj;\n if (exc != null) {\n this.f1908f.f1901a.mo3733c(false);\n this.f1908f.f1901a.mo3943a(exc);\n return C4560l.f10773a;\n }\n C4638h.m10271a(\"it\");\n throw null;\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void mo1966i() throws cf {\r\n }", "public synchronized void mo28699e() {\n if (mo27566d()) {\n throw new PooledByteBuffer.C3959a();\n }\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "@Override\n public void func_104112_b() {\n \n }", "static byte[] a(com.loc.bc r6, java.lang.String r7) {\n /*\n r3 = 0\n r1 = 0\n r0 = 0\n byte[] r0 = new byte[r0]\n com.loc.bc$b r4 = r6.a(r7) // Catch:{ Throwable -> 0x0042, all -> 0x005b }\n if (r4 != 0) goto L_0x0016\n if (r3 == 0) goto L_0x0010\n r1.close() // Catch:{ Throwable -> 0x0078 }\n L_0x0010:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x007d }\n L_0x0015:\n return r0\n L_0x0016:\n java.io.InputStream r2 = r4.a() // Catch:{ Throwable -> 0x008e, all -> 0x0089 }\n if (r2 != 0) goto L_0x002c\n if (r2 == 0) goto L_0x0021\n r2.close() // Catch:{ Throwable -> 0x007f }\n L_0x0021:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0027 }\n goto L_0x0015\n L_0x0027:\n r1 = move-exception\n L_0x0028:\n r1.printStackTrace()\n goto L_0x0015\n L_0x002c:\n int r1 = r2.available() // Catch:{ Throwable -> 0x0091 }\n byte[] r0 = new byte[r1] // Catch:{ Throwable -> 0x0091 }\n r2.read(r0) // Catch:{ Throwable -> 0x0091 }\n if (r2 == 0) goto L_0x003a\n r2.close() // Catch:{ Throwable -> 0x0084 }\n L_0x003a:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0040 }\n goto L_0x0015\n L_0x0040:\n r1 = move-exception\n goto L_0x0028\n L_0x0042:\n r1 = move-exception\n r2 = r3\n r4 = r3\n L_0x0045:\n java.lang.String r3 = \"sui\"\n java.lang.String r5 = \"rdS\"\n com.loc.aq.b(r1, r3, r5) // Catch:{ all -> 0x008c }\n if (r2 == 0) goto L_0x0053\n r2.close() // Catch:{ Throwable -> 0x0073 }\n L_0x0053:\n if (r4 == 0) goto L_0x0015\n r4.close() // Catch:{ Throwable -> 0x0059 }\n goto L_0x0015\n L_0x0059:\n r1 = move-exception\n goto L_0x0028\n L_0x005b:\n r0 = move-exception\n r2 = r3\n r4 = r3\n L_0x005e:\n if (r2 == 0) goto L_0x0063\n r2.close() // Catch:{ Throwable -> 0x0069 }\n L_0x0063:\n if (r4 == 0) goto L_0x0068\n r4.close() // Catch:{ Throwable -> 0x006e }\n L_0x0068:\n throw r0\n L_0x0069:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0063\n L_0x006e:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0068\n L_0x0073:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0053\n L_0x0078:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0010\n L_0x007d:\n r1 = move-exception\n goto L_0x0028\n L_0x007f:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0021\n L_0x0084:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x003a\n L_0x0089:\n r0 = move-exception\n r2 = r3\n goto L_0x005e\n L_0x008c:\n r0 = move-exception\n goto L_0x005e\n L_0x008e:\n r1 = move-exception\n r2 = r3\n goto L_0x0045\n L_0x0091:\n r1 = move-exception\n goto L_0x0045\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.loc.bs.a(com.loc.bc, java.lang.String):byte[]\");\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-388), \"kIe_I@EK+hxYS%\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -388\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }" ]
[ "0.6445117", "0.6202234", "0.61350334", "0.60542935", "0.6029888", "0.6004324", "0.5998817", "0.59821373", "0.59821373", "0.5957834", "0.5948672", "0.5945379", "0.5939317", "0.5897849", "0.5893561", "0.5872077", "0.5826565", "0.57799774", "0.57581365", "0.5749489", "0.57443506", "0.5726396", "0.5725001", "0.5708338", "0.5696402", "0.5684381", "0.5679422", "0.5678313", "0.5668211", "0.5665659", "0.5665437", "0.5661929", "0.56509006", "0.5638734", "0.5638734", "0.5631138", "0.56088346", "0.5607827", "0.56076425", "0.56039655", "0.559539", "0.5572702", "0.5572112", "0.5554588", "0.5540303", "0.5531058", "0.5531058", "0.5525744", "0.5518413", "0.55165094", "0.5511713", "0.5511713", "0.55092794", "0.55092794", "0.54860526", "0.5478644", "0.5475498", "0.5474606", "0.54597586", "0.5456568", "0.5452699", "0.54488224", "0.54470253", "0.5446689", "0.54458356", "0.54412997", "0.54364455", "0.54284126", "0.54284126", "0.5419371", "0.54186827", "0.54142535", "0.5413542", "0.5404847", "0.53925633", "0.53925633", "0.5390504", "0.5390504", "0.5390504", "0.5390504", "0.5390504", "0.5387666", "0.5386989", "0.5385171", "0.5373728", "0.5373728", "0.53711534", "0.53659046", "0.53659046", "0.53587323", "0.53575236", "0.53549296", "0.53526074", "0.5350233", "0.534934", "0.534629", "0.53438985", "0.5320964", "0.53202236", "0.53151065", "0.5311594" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("ahoj"); prazdnaMatica(); // vypisZoznamu(); // System.out.println(pole[zacy][zacx]); // pom = geny.get(0); // pom.dlzka = trasa(pom); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
to handle any IOException being thrown
@Override public void configure() throws Exception { onException(IOException.class).handled(true).log("IOException occurred due: ${exception.message}") // as we handle the exception we can send it to // direct:file-error, // where we could send out alerts or whatever we want .to("direct:file-error"); // special route that handles file errors from("direct:file-error").log("File error route triggered to deal with exception ${exception?.class}") // as this is based on unit test just transform a message // and send it to a mock .transform().simple("Error ${exception.message}").to("mock:error"); // this is the file route that pickup files, notice how we use // our custom exception handler on the consumer // the exclusiveReadLockStrategy is only configured because this // is from an unit test, so we use that to simulate exceptions from(fileUri( "?exclusiveReadLockStrategy=#myReadLockStrategy&exceptionHandler=#myExceptionHandler&initialDelay=0&delay=10")) .convertBodyTo(String.class).to("mock:result"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n \n \t}", "@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void processIOException(IOExceptionEvent exceptionEvent) {\n\t}", "@Override\r\n public void handleIOException(\r\n File file,\r\n java.io.IOException cause\r\n )\r\n {\n }", "@Override\n public void onIOException(IOException e) {\n }", "public void exceptionEncountered(IOException ioe) {}", "@Override\n\tpublic void onIOException(IOException arg0) {\n\n\t}", "void onIOException(final IOException e);", "public void onIOException(IOException e) {\n\t\t}", "@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\tLog.d(\"arvi\", \"arvi2222\");\n\t\t}", "void handleError(Exception ex);", "private static Response handleIOError(IOException e) {\n log.log(Level.WARNING, \"Error retrieving values\", e);\n ServiceError errMsg = new ServiceError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), \"Internal error retrieving value. If this error persists, please contact the site administrator\");\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(errMsg)\n .build();\n }", "public void handleError(ClientHttpResponse response) throws IOException {\n }", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "public DslException(IOException e) {\n\t\tsuper(e);\n\t}", "@ExceptionHandler(IOException.class)\n public ModelAndView handleIOException(Locale locale){\n ModelAndView modelAndView = new ModelAndView(\"/profile\");\n modelAndView.addObject(\"error\",messageSource.getMessage(\"image.io.exception\",null,locale));\n return modelAndView;\n }", "public static void handleFileNotFoundException() {\n System.out.println(\"\\tUnfortunately, I could not detect any files in the database!\");\n System.out.println(\"\\tBut don't worry sir.\");\n System.out.println(\"\\tI will create the files you might be needing later.\");\n Duke.jarvis.printDivider();\n }", "public VocabularioIOException()\n {\n }", "private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }", "public void handle() throws Exception {}", "protected void handleReaderException(HttpRequest request, HttpResponse response, ReaderException e)\n {\n if (e.getResponse() != null || e.getErrorCode() > -1)\n {\n handleFailure(request, response, e);\n return;\n }\n else if (e.getCause() != null)\n {\n if (executeExceptionMapper(response, e.getCause()))\n {\n return;\n }\n if (e.getCause() instanceof WebApplicationException)\n {\n handleWebApplicationException(response, (WebApplicationException) e.getCause());\n return;\n }\n if (e.getCause() instanceof Failure)\n {\n handleFailure(request, response, (Failure) e.getCause());\n return;\n }\n }\n e.setErrorCode(HttpResponseCodes.SC_BAD_REQUEST);\n handleFailure(request, response, e);\n }", "void method21()\n throws IOException\n {\n }", "protected abstract E readFile() throws Exception;", "public void onReadError(Exception ex) {\n logger.error(\"Encountered error on read\");\n }", "public IOExceptionWithCause(Throwable cause) {\n/* 63 */ super(cause);\n/* */ }", "public void readFile() throws Exception, FileNotFoundException, NumberFormatException, MalformedParameterizedTypeException {\n // my user or my file might be kind of crazy! -> will check for these exceptions!\n }", "void method22()\n throws IOException\n {\n }", "protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }", "public RaiseException newIOErrorFromException(IOException ioe) {\n if(ioe.getMessage() != null) {\n if (ioe.getMessage().equals(\"Broken pipe\")) {\n throw newErrnoEPIPEError();\n } else if (ioe.getMessage().equals(\"Connection reset by peer\")) {\n throw newErrnoECONNRESETError();\n }\n return newRaiseException(getIOError(), ioe.getMessage());\n } else {\n return newRaiseException(getIOError(), \"IO Error\");\n }\n }", "@Override\n public void close() throws IOException {\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tToast.makeText(mInflatedView.getContext(),\n\t\t\t\t\t\t\t\t\t\"Error IO \" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "public DataAccessException() {\n super(\"File cannot be opened or read. Please check!\");\n }", "@ExceptionHandler(value=FileNotFound.class)\n\tpublic void resolveException(String ex,HttpServletResponse response) {\n\t\ttry {\n\t\t\tresponse.getOutputStream().println(\"Warning: File vuoto\\nException message: \"+ex);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\n\t}", "@Override\n public void close() throws IOException {\n\n }", "@Override\n public void ensureValid() throws IOException {\n }", "private static void throwAnotherExceptionWithInitCause() {\n try {\n throw new IOException();\n } catch (IOException e) {\n OurBusinessLogicException argumentException = new OurBusinessLogicException();\n argumentException.initCause(e);\n throw argumentException;\n }\n }", "@Override\n @SuppressWarnings(\"NullableProblems\")\n public void handleError(ClientHttpResponse clientHttpResponse) throws IOException {\n handleError(null, null, clientHttpResponse);\n }", "@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"IOException occured\")\n\t@ExceptionHandler(value=MyCustomException.class)\n\tpublic void myException(HttpServletResponse response) throws IOException {\n\t\t response.sendError(HttpStatus.NOT_FOUND.value());\n\t}", "void method15()\n throws java.io.IOException\n {\n }", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }", "@Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n LOG.warn(\"An IOException occurred while reading a file on path {} with message: {}\", file, exc.getMessage());\n LOG.debug(\"An IOException occurred while reading a file on path {} with message: {}\", file,\n LOG.isDebugEnabled() ? exc : null);\n return FileVisitResult.CONTINUE;\n }", "private void ensureOpen() throws IOException {\n if (closed) {\n throw new IOException(\"Stream closed\");\n }\n }", "public ErrorInQuitException(IOException e) {\n super(e.getMessage());\n }", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n\t\tSystem.out.println(\"Error Accessing File\"+file.toAbsolutePath());\n\t\tSystem.out.println(exc.getLocalizedMessage());\n\t\t\n\t\t\n\t\t\n\t\treturn super.visitFileFailed(file, exc);\n\t}", "public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}", "void method24() throws IOException\n {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private void read(){\n try {\n if (c != -1) c = r.read();\n } catch (IOException e){\n throw new IOError(e);\n }\n }", "private void postErrorPage() throws IOException {\n out.println(OK);\n System.out.println(NO);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + ERROR_FILE.length());\n out.println(ENDLINE);\n String htmlLine = ERROR_READER.readLine();\n while (htmlLine != null) {\n out.println(htmlLine);\n htmlLine = ERROR_READER.readLine();\n }\n ERROR_READER.close();\n }", "static void feladat2() throws IOException {\n\t}", "public abstract void process() throws IOException;", "@Override\n public void close() throws IOException {\n }", "@Override\n public void close() throws IOException {\n }", "@Override\n public void onTransferIOError(TransferDiskIOErrorAlert alert) {\n }", "public VocabularioIOException(String msg)\n {\n message = msg;\n }", "void init() throws IOException;", "void init() throws IOException;", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "void open() throws IOException;", "public boolean isCausedByNetworkIssue() {\n return getCause() instanceof java.io.IOException;\n }", "@Override\n public void close() throws IOException {\n\n }", "@Override\n\tpublic void close() throws IOException {\n\n\t}", "@Override\n\tpublic void close() throws IOException {\n\n\t}", "@Override\n\tpublic void close() throws IOException {\n\n\t}", "@Override\n\tpublic void close() throws IOException {\n\n\t}", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\t\n\t\t}", "@Override\n void close() throws IOException;", "@Override\n public void sendError(int arg0) throws IOException {\n\n }", "@Test\n void testBrokenCSV() throws IOException {\n try {\n createInstance().read(null, null);\n fail(\"IOException not thrown on null csv\");\n } catch (NullPointerException ex) {\n assertThat(ex.getMessage()).isNull();\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.UNKNOWN_ERROR);\n }\n File file = getFile(\"csv/ingest/BrokenCSV.csv\");\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream stream = new BufferedInputStream(fileInputStream)) {\n createInstance().read(Tuple.of(stream, file), null);\n fail(\"IOException was not thrown when collumns do not align.\");\n } catch (IngestException ex) {\n assertThat(ex.getErrorKey()).isEqualTo(IngestError.CSV_RECORD_MISMATCH);\n }\n }", "private void throwsError() throws OBException {\n }", "private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}", "protected abstract void cleanup() throws IOException;", "public ReaderException( String code ){ super(code); }", "abstract void onError(Exception e);", "@Override\n public void ensureOpen() throws IOException {\n }", "@Override\n\tpublic void close() throws IOException {\n\t\t\n\t}", "@Override\n\tpublic void close() throws IOException {\n\t\t\n\t}", "public void onStreamError(Throwable throwable);", "protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }", "public void handleWriteResponseException(HttpRequest request, HttpResponse response, Exception e)\n {\n handleException(request, response, e);\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n log.error(\"Input Stream {} : {}\", name, e.getCause());\n Channel ch = e.getChannel();\n ch.close();\n channelAtomicReference.set(null);\n }", "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "public FileFormatException() {\r\n super();\r\n }", "protected void handleFailMessage(Request request, IOException e) {\n\t\tonRequestFailure(request, e);\n\t}", "protected void handleException(java.lang.Throwable exception) {\n\tsuper.handleException(exception);\n}", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "public void socketError(Exception arg0) {\n\t\t\r\n\t}", "protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }", "protected abstract void onException(final Exception exception);", "protected void handleError(String error, boolean fromSysErr) {}", "void mo23487a() throws IOException;", "@Override\n void close() throws IOException;", "@Override\n void close() throws IOException;", "@ExceptionHandler(value = {NullPointerException.class, \n \t\t\t\t\t\t RuntimeException.class, \n \t\t\t\t\t\t IOException.class})\n public ResponseEntity<Object> handleInternalServerErr(RuntimeException exception, WebRequest request) {\n return handleExceptionInternal(exception, \n \t\t\t\t\t\t\t \"Error interno en el servidor\", \n \t\t\t\t\t\t\t new HttpHeaders(), \n \t\t\t\t\t\t\t HttpStatus.INTERNAL_SERVER_ERROR, \n \t\t\t\t\t\t\t request);\n }", "@Override\n protected boolean closeOnReadError(Throwable cause) {\n if (cause instanceof SocketException) {\n return false;\n }\n return super.closeOnReadError(cause);\n }", "public void handleError(int code);", "private static boolean isNetworkProblem(Object error) {\r\n\t\treturn (error instanceof IOException);\r\n\t}", "private void inizia() throws Exception {\n }" ]
[ "0.7493133", "0.73549384", "0.7310388", "0.721264", "0.717139", "0.70263064", "0.69084567", "0.6821324", "0.6808637", "0.67022294", "0.6654805", "0.6468738", "0.6445325", "0.6408457", "0.6373431", "0.6304616", "0.6166984", "0.6113898", "0.6105424", "0.60847914", "0.60739315", "0.6017421", "0.59946007", "0.5987767", "0.5981839", "0.5956036", "0.5919845", "0.5878393", "0.5838526", "0.58142436", "0.578626", "0.57577115", "0.57570153", "0.57497716", "0.5730146", "0.5728706", "0.5708472", "0.570702", "0.5701948", "0.56963825", "0.56804776", "0.56718683", "0.5665955", "0.5657968", "0.56574357", "0.56406575", "0.563716", "0.5632337", "0.56243503", "0.56202173", "0.5619721", "0.5598034", "0.5587341", "0.5587062", "0.55840707", "0.55840707", "0.5581836", "0.5577198", "0.5570245", "0.5570245", "0.55604196", "0.5550052", "0.5549957", "0.5541063", "0.55341077", "0.55341077", "0.55341077", "0.55341077", "0.55293", "0.55261695", "0.5521955", "0.5518618", "0.55138695", "0.55121297", "0.5499596", "0.5494137", "0.54931706", "0.54851615", "0.54834944", "0.54834944", "0.5482894", "0.54814655", "0.5480343", "0.54784167", "0.5478003", "0.54749525", "0.5469746", "0.5466179", "0.5456125", "0.5453727", "0.5449536", "0.5448943", "0.544858", "0.54485786", "0.54431087", "0.54430145", "0.543357", "0.5422163", "0.5416616", "0.5416092", "0.540859" ]
0.0
-1
We use a producer template to send a message to the Camel route
public void setTemplate(ProducerTemplate template) { this.template = template; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"createRoute\")\n public String createRoute() throws Exception {\n producerTemplate.sendBodyAndHeader(\"direct:beginNode\", \"12345\", \"foo\", \"bar\");\n// camelContext.stop();\n return \"success\";\n }", "public static void main(String[] args) throws Exception {\n CamelContext context = new DefaultCamelContext();\n\n try {\n context.addRoutes(new RouteBuilder() {\n\n @Override\n public void configure() throws Exception {\n\n from(\"direct:start\")\n .process(new XmlToJsonProcessor())\n .to(\"seda:end\");\n }\n });\n\n // start the context\n context.start();\n\n\n String xml = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><employee>\\r\\n\" + \" <id>101</id>\\r\\n\" + \" <name>Dinesh Krishnan</name>\\r\\n\"\n + \" <age>20</age>\\r\\n\" + \"</employee>\";\n\n System.out.println(xml);\n\n // creating the producer template\n ProducerTemplate producerTemplate = context.createProducerTemplate();\n producerTemplate.sendBody(\"direct:start\", xml);\n\n // creating the consumer template\n ConsumerTemplate consumerTemplate = context.createConsumerTemplate();\n String json = consumerTemplate.receiveBody(\"seda:end\", String.class);\n\n System.out.println(\"------------XML to JSON-------------\");\n System.out.println(json);\n\n // stop the context\n context.stop();\n\n } catch (Exception e) {\n context.stop();\n e.printStackTrace();\n }\n\n }", "@Test\n\tpublic void routeSupplierATest() throws CamelExecutionException, IOException, InterruptedException {\n\t\tmockA.expectedBodiesReceived(fileToString(getClass(), INPUT_MESSAGE_A));\n\t\tmockA.expectedHeaderReceived(\"supplierId\", \"1\");\n\t\tstartEndpoint.sendBodyAndHeader(fileToString(getClass(), INPUT_MESSAGE_A), \"supplierId\", \"1\");\n\t\tmockA.assertIsSatisfied();\n\t}", "@Test\n\tpublic void routeSupplierCTest() throws CamelExecutionException, IOException, InterruptedException {\n\t\tmockC.expectedBodiesReceived(fileToString(getClass(), INPUT_MESSAGE_C));\n\t\tmockC.expectedHeaderReceived(\"supplierId\", \"3\");\n\t\tstartEndpoint.sendBodyAndHeader(fileToString(getClass(), INPUT_MESSAGE_C), \"supplierId\", \"3\");\n\t\tmockC.assertIsSatisfied();\n\t}", "@Test \n public void testRouteSuccessful() throws Exception {\n // 1. Arrange.. get the mock endpoint and set an assertion\n MockEndpoint mockOutput = getMockEndpoint(\"mock:output\");\n mockOutput.expectedMessageCount(1);\n\n // 2. Act.. send a message to the start component\n \tString jsonInput= \"{\\\"name\\\": \\\"Sunrise\\\",\\\"quantity\\\": 2}\";\n template.sendBody(\"direct:remote\", jsonInput);\n\n // 3. Assert.. verify that the mock component received 1 message\n assertMockEndpointsSatisfied();\n }", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "@Test\n\tpublic void routeSupplierBTest() throws CamelExecutionException, IOException, InterruptedException {\n\t\tmockB.expectedBodiesReceived(fileToString(getClass(), INPUT_MESSAGE_B));\n\t\tmockB.expectedHeaderReceived(\"supplierId\", \"2\");\n\t\tstartEndpoint.sendBodyAndHeader(fileToString(getClass(), INPUT_MESSAGE_B), \"supplierId\", \"2\");\n\t\tmockB.assertIsSatisfied();\n\t}", "@RequestMapping(\"/send/{topic}\")\r\n\tpublic String sender(@PathVariable String topic, @RequestParam String message){\r\n\t\tproducer.sendMessageTo(topic, message);\r\n\t\treturn \"Message successfully sent.\";\r\n\t}", "public void send(Order brokerMsg) {\n// System.out.println(\"Sending a transaction from. price\" + brokerMsg.getPrice() + \" buy : \" + brokerMsg.isBuy());\n\n\n MessageCreator messageCreator = new MessageCreator() {\n @Override\n public Message createMessage(Session session) throws JMSException {\n\n\n Message msg = session.createTextMessage(brokerMsg.toString());\n msg.setJMSCorrelationID(brokerMsg.getStratId().toString());\n// System.out.println(msg);\n return msg;\n }\n };\n orderService.writeOrder(brokerMsg);\n jmsTemplate.send(\"OrderBroker\", messageCreator);\n }", "@MessageMapping(\"/send/msg\")\n @SendTo(\"/sometopic\")\n public String sendToTopic(String content) {\n return content;\n }", "public interface SendService {\n\n void send(String exchange,String routingKey,String content);\n}", "@Override\n\tpublic void directSend(String exchange, String routeKey, Object data) {\n\n\t}", "@Scheduled(fixedRate = 1000)\n private void send(){\n jmsTemplate.send(\"test.messages\", session -> {\n TextMessage message = session.createTextMessage(Instant.now().toString());\n return message;\n });\n }", "@Test\n public void test() throws IOException {\n template.sendBody(\"direct:startSSH\", \"test\");\n }", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "@GetMapping(\"/send\")\n\tpublic String sendMessage(@RequestParam(\"input\") String message) {\n\t\tproducer.sendMessage(message);\n\t\treturn env.getProperty(\"message.response\");\n\t}", "@Override\n public void configure() throws Exception {\n from(\"direct:populateKafka\")\n // .threads(Integer.parseInt(Config.getProperty(\"threadPoolSize\")), Integer.parseInt(Config.getProperty(\"maxthreadPoolSize\")))\n .process(new Processor() {\n @Override\n public void process(Exchange exchange) throws Exception {\n try {\n exchange.getOut().setHeaders(exchange.getIn().getHeaders());\n DataSource ds = exchange.getIn().getHeader(\"dataSource\", DataSource.class);\n String kafkaPath = \"kafka:\" + Config.getProperty(\"kafkaURI\") + \"?topic=ds\" + ds.getSrcID() + \"&serializerClass=\" + Config.getProperty(\"kafkaSerializationClass\");\n exchange.getOut().setBody(exchange.getIn().getBody());\n exchange.getOut().setHeader(KafkaConstants.PARTITION_KEY, \"1\");\n exchange.getOut().setHeader(\"kPath\", kafkaPath);\n System.out.println(\"Successfully populated Kafka\");\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n })\n .recipientList(header(\"kPath\"));\n\n }", "public void produceMessage(String message) {\n KeyedMessage<String, String> keyedMessage = new KeyedMessage<String, String>(topic, null, message);\n producer.send(keyedMessage);\n }", "@Test\n public void testFinalMessage() throws JAXBException, CamelExecutionException, IOException, InterruptedException {\n startEndpoint.sendBodyAndHeader(fileToString(getClass(), INPUT_MESSAGE_A), \"supplierId\", \"1\");\n mockA.setExpectedMessageCount(1);\n mockB.setExpectedMessageCount(0);\n mockC.setExpectedMessageCount(0);\n mockA.assertIsSatisfied();\n }", "Object routeMessage(Message message) throws IOException;", "@MessageMapping(\"/hello\")\n @SendTo(\"/topic/greetings\")\n public AnotherSimpleMessage publishMessage(SimpleMessage simpleMessage) throws InterruptedException {\n Thread.sleep(1000);\n return new AnotherSimpleMessage(\"Hello \" + simpleMessage.getName());\n }", "public static void Producer(String json) {\n\t\tConnection connection = null;\n\t\tConnectionFactory connectionFactory = new ActiveMQConnectionFactory(\"tcp://localhost:61616\");\n\t\ttry {\n\t\t\tconnection = connectionFactory.createConnection();\n\t\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\tQueue queue = session.createQueue(\"customerMaildetails\");\n\t\t\tMessageProducer producer = session.createProducer(queue);\n\t\t\tString payload = json;\n\t\t\tMessage message = session.createTextMessage(payload);\n\t\t\tSystem.out.println(\"Sending text '\" + payload + \"'\");\n\t\t\tproducer.send(message);\n\t\t\tsession.close();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void configure() throws Exception {\n Properties properties = new Properties();\n properties.load(this.getClass().getClassLoader().getResourceAsStream(\"route.properties\"));\n String ordersFolder = properties.getProperty(\"folder.orders\");\n String postidentFolder = properties.getProperty(\"folder.postident\");\n if(ordersFolder == null || postidentFolder == null) {\n throw new RuntimeException(\"could not read properties for camel route, make sure there\" +\n \" is a file called route.properties in the root or the resoureces folder of your \" +\n \"application that contains the properties folder.orders and folder.postident\");\n }\n\n /*\n * There are two ways of starting the open-account process:\n *\n * - placing an XML file in a hot folder (see route.properties for folder location)\n * - sending a JSON order to a REST web service (see README.txt for instructions)\n */\n // This route handles files placed in the incoming orders folder (see route.properties file)\n // and routes the XML to a JMS queue:\n from(\"file://\" + ordersFolder).\n routeId(\"hot-folder order route\").\n log(\"=======================\").\n log(\"Received order from hot-folder\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"Delivering order to JMS XML queue\").\n to(\"jms:xmlQueue\");\n\n // Order objects that are sent to the REST web service are placed in a JMS queue called\n // orderQueue (see README.txt about setting up the JMS queue). This route listens for\n // incoming messages on that queue, transforms the object to XML using the marshalling\n // feature that is built into camel and delivers the resulting XML to the same queue the\n // incoming XML documents are placed in:\n from(\"jms:orderQueue\").\n routeId(\"order to xml route\").\n log(\"=======================\").\n log(\"received order from orderQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order object to xml\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n marshal(new JaxbDataFormat(Order.class.getPackage().getName())).\n log(\"=======================\").\n log(\"delivering order xml to xmlQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n to(\"jms:xmlQueue\");\n\n /*\n * This route listens for incoming messages on the JMS queue named xmlQueue. When a message\n * arrives, a CDI bean called incomingOrderService is used to extract the data from the XML\n * into a HashMap that will be passed on to the camunda BPM engine when the process instance\n * is started. The HashMap is the same as a variable map that can be passed on to process\n * instances via the camunda BPM API.\n */\n from(\"jms:xmlQueue\").\n routeId(\"start order process route\").\n log(\"=======================\").\n log(\"received order xml from xmlQueue\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"setting order # to '\" + CAMUNDA_BPM_BUSINESS_KEY + \"' property\").\n setProperty(CAMUNDA_BPM_BUSINESS_KEY).xpath(\"//@ordernumber\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order xml to order object\").\n unmarshal(new JaxbDataFormat(Order.class.getPackage().getName())).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"transforming order object to variable map (java.util.Map) as input for the camunda BPM process\").\n process(new OrderToMapProcessor()).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"starting open-account process\").\n to(\"camunda-bpm:start?processDefinitionKey=open-account\").\n log(\"=======================\").\n log(\"open-account process started\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\")\n ;\n\n /*\n * If the order was rejected, we'll send a mail to the customer to inform him that his\n * application will not be processed.\n */\n from(\"direct:inform-customer\").\n routeId(\"inform customer route\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n beanRef(\"emailService\");\n\n /*\n * When the order is approved, it can be passed to the accountService to create an account\n * object and persist it to the database. Since the order was split up into values in a\n * java.util.Map, we'll first pass the map to the MapToOrderProcessor.\n */\n from(\"direct:setup-account\").\n routeId(\"set up account route\").\n log(\"=======================\").\n log(\"transforming process variable map to order object: ${body}\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n process(new MapToOrderProcessor()).\n log(\"=======================\").\n log(\"calling accountService to create account from incoming order\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n beanRef(\"accountService\");\n\n /*\n * Finally, this route waits for incoming postident scans to be placed in a hot folder.\n * When a document is placed there (edit route.properties to configure the location of\n * the folder), the order number is extracted from the file name and used as correlation\n * id to send a signal to the waiting process instance.\n */\n from(\"file://\" + postidentFolder).\n routeId(\"incoming postident route\").\n log(\"=======================\").\n log(\"received postident document\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"extracting order number from file name\").\n process(new Processor() {\n @Override\n public void process(Exchange exchange) throws Exception {\n String businessKey = exchange.getIn().getHeader(\"CamelFileName\").toString().split(\"-\")[1].substring(0, 4);\n exchange.setProperty(CAMUNDA_BPM_BUSINESS_KEY, businessKey);\n }\n }).\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n log(\"correlating document with process instance\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\").\n log(\"=======================\").\n to(\"camunda-bpm://message?processDefinitionKey=open-account&activityId=wait_for_postident\").\n to(\"log:org.camunda.demo.camel.route?level=INFO&showAll=true&multiline=true\");\n }", "@PostMapping(path = \"/send\")\n\tpublic void newMessage(@RequestBody ContentTrackingMessage contentTrackingMessage)\n\t{\n\n\t\tListenableFuture<SendResult<Object, Object>> future = template.send(topic, contentTrackingMessage);\n\n\t\tfuture.addCallback(new ListenableFutureCallback<SendResult<Object, Object>>()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(SendResult<Object, Object> result)\n\t\t\t{\n\t\t\t\tLOGGER.info(\"Sent message='{}' with partition-offset='{}'\", \n\t\t\t\t\t\tresult.getProducerRecord().value(),\n\t\t\t\t\t\tresult.getRecordMetadata().partition() + \"-\" + result.getRecordMetadata().offset() + \"'\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable ex)\n\t\t\t{\n\t\t\t\tLOGGER.info(\"Unable to send message=[\" + contentTrackingMessage + \"] due to : \" + ex.getMessage());\n\t\t\t}\n\n\t\t});\n\n\t}", "public void send(String topic, Object consumerRecord) {\r\n log.info(\"topic name is : \" + topic + \" producerecord is: \" + consumerRecord);\r\n kafkaTemplate.send(topic, consumerRecord);\r\n }", "@Override\n\tpublic void configure() throws Exception {\n\t\t\n\t\tProducerTemplate camelTemplate = getContext().createProducerTemplate();\n\n\t\tCamelHelper.getInstance().setHttpCamelTemplate(camelTemplate);\n\n\t\t//endpoint 설정\n\t\tfrom(\"jetty:http://0.0.0.0:9999\"+\"/testApi\")\n\t\t .routeId(\"HTTP_TEST_API\")\n\t\t .process(testProcessor)\n\t\t;\n\t}", "@Scheduled(every = \"1s\")\n void schedule() {\n if (message != null) {\n final String endpointUri = \"azure-eventhubs:?connectionString=RAW(\" + connectionString.get() + \")\";\n producerTemplate.sendBody(endpointUri, message + (counter++));\n }\n }", "public void sendMessage(Integer bouquetOrderId) {\n try {\n Connection connection = connectionFactory.createConnection();\n Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n MessageProducer producer = session.createProducer(destination);\n producer.setDeliveryMode(DeliveryMode.PERSISTENT);\n TextMessage message = session.createTextMessage();\n message.setText(\"\" + bouquetOrderId);\n producer.send(message);\n logger.warn(\"Sending message: \" + message.getText());\n session.close();\n connection.close();\n } catch (JMSException ex) {\n logger.error(\"Sending message failed : \" + ex);\n }\n }", "@Test\r\n public void testXmlOrderFail() throws Exception {\n getMockEndpoint(\"mock:dead\").expectedMessageCount(1);\r\n\r\n // we do not expect the file to be converted to csv\r\n MockEndpoint file = getMockEndpoint(\"mock:file\");\r\n file.expectedMessageCount(0);\r\n\r\n // and therefore no messages in the 2nd route\r\n MockEndpoint mock = getMockEndpoint(\"mock:queue.order\");\r\n mock.expectedMessageCount(0);\r\n\r\n template.sendBodyAndHeader(\"file://F:/.camel/data/orders\", \"<?xml version=\\\"1.0\\\"?><order>\"\r\n + \"<amount>1</amount><name>Camel in Action</name></order>\", Exchange.FILE_NAME, \"order2.xml\");\r\n\r\n // wait 5 seconds to let this test run\r\n Thread.sleep(5000);\r\n\r\n assertMockEndpointsSatisfied();\r\n }", "public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"spring-rabbitmq-context.xml\");\n\n AmqpTemplate aTemplate = (AmqpTemplate) context.getBean(\"myTemplate\");// getting a reference to the sender bean\n\n List<String> strings = readChangeLogFile();\n\n String routingKey = \"storm.rabbitmq.int.message\";\n\n for (int i = 0; i < 100; i++) {\n for (String msg : strings) {\n aTemplate.convertAndSend(routingKey, msg);\n }\n\n }\n\n }", "@Override\n public void onMessage(Message message) {\n try {\n TextMessage requestMessage = (TextMessage) message;\n\n\n Destination replyDestination = requestMessage.getJMSReplyTo();\n\n // TODO\n // String value =\n // ActiveMQDestination.getClientId((ActiveMQDestination)\n // replyDestination);\n // assertEquals(\"clientID from the temporary destination must be the\n // same\", clientSideClientID, value);\n\n TextMessage replyMessage = serverSession.createTextMessage(\"Hello: \" + requestMessage.getText());\n\n replyMessage.setJMSCorrelationID(requestMessage.getJMSMessageID());\n\n if (dynamicallyCreateProducer) {\n replyProducer = serverSession.createProducer(replyDestination);\n replyProducer.send(replyMessage);\n } else {\n replyProducer.send(replyDestination, replyMessage);\n }\n\n } catch (JMSException e) {\n onException(e);\n }\n }", "private static void sendValue(final ProducerTemplate producerTemplate, final Variant variant) {\n producerTemplate.sendBodyAndHeader(variant, \"await\", true);\n }", "public void publishMessage(String routingKey, String message) throws Exception {\n\t\ttry (Connection connection = rabbitMqConnectionFactory.getConnectionFactory().newConnection()) {\n\t\t\ttry (Channel channel = connection.createChannel()) {\n\n\t\t\t\tchannel.exchangeDeclare(EXCHANGE_NAME, \"topic\");\n\t\t\t\t\n\t\t\t\tchannel.basicPublish(EXCHANGE_NAME, routingKey, null, message.getBytes(\"UTF-8\"));\n\t\t\t\t\n\t\t\t\tLOGGER.info(\"Message \" + message + \" is sent via routing key \" + routingKey);\n\t\t\t}\n\t\t}\n\t}", "CompletableFuture<Exchange> asyncSend(String endpointUri, Processor processor);", "public void sendMessageToRabbitMQ(String message) {\n CachingConnectionFactory connectionFactory = new CachingConnectionFactory(rabbitProperties.getHost(), rabbitProperties.getPort());\n connectionFactory.setUsername(rabbitProperties.getUsername());\n connectionFactory.setPassword(rabbitProperties.getPassword());\n connectionFactory.setVirtualHost(rabbitProperties.getVirtualHost());\n AmqpAdmin admin = new RabbitAdmin(connectionFactory);\n admin.declareQueue(new Queue(\"/topic/tracker-data\"));\n AmqpTemplate template = new RabbitTemplate(connectionFactory);\n template.convertAndSend(\"/topic/tracker-data\", message);\n connectionFactory.destroy();\n simpMessagingTemplate.convertAndSend(\"/topic/tracker-data\", message);\n }", "private void sendOverAMQP(RabbitMQConnectionFactory factory, MessageContext msgContext, RabbitMQMessageSender sender, String targetEPR)\n throws AxisFault {\n try {\n RabbitMQMessage message = new RabbitMQMessage(msgContext);\n sender.send(message, msgContext);\n\n if (message.getReplyTo() != null) {\n processResponse(factory, msgContext, message.getCorrelationId(), message.getReplyTo(), BaseUtils.getEPRProperties(targetEPR));\n }\n\n } catch (AxisRabbitMQException e) {\n handleException(\"Error occurred while sending message out\", e);\n } catch (IOException e) {\n handleException(\"Error occurred while sending message out\", e);\n }\n }", "public void send(EventStore es, Template template);", "void sendExample(String key, String value1, String value2) {\n messageProducer.send(new Key(key), new Value(value1, value2));\n }", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void configure() throws Exception {\n from(\"timer:new-order?delay=0s&period=10s\")\n .bean(\"orderService\", \"generateOrder\")\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Inserted new order ${body.id}\");\n\n // A second route polls the database for new orders and processes them\n fromF(\"jpa:%s?consumeDelete=false&consumer.transacted=true&joinTransaction=true&consumer.namedQuery=pendingOrders\", Order.class.getName())\n .process(exchange -> {\n Order order = exchange.getIn().getBody(Order.class);\n order.setStatus(\"PROCESSED\");\n })\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Processed order #id ${body.id} with ${body.amount} copies of the «${body.description}» book\");\n }", "@Test\n public void testMock() throws InterruptedException {\n\n template.sendBody(\"jms:queue:testQueue\",\"Another mock\");\n template.sendBody(\"jms:queue:testQueue\",\"Camel Mock\");\n\n //TODO: invoke mock's assertIsSatisfied\n }", "CompletableFuture<Exchange> asyncSend(Endpoint endpoint, Processor processor);", "@Bean\n IntegrationFlow producer() {\n MessageSource<String> messageSource = () -> (run.get() ? MessageBuilder\n .withPayload(\"Greetings @ \" + Instant.now().toString() + \".\").build() : null);\n return IntegrationFlows\n .from(messageSource, ps -> ps.poller(pm -> pm.fixedRate(1000L)))\n .channel(channels.output()).get();\n }", "void send(String message, String uri);", "public void configure() {\n /*from(ServiceDefinitions.EP_SWITCHYARD + ServiceDefinitions.SVC_SEND_RESULT)\n // Bei Mail ist Body ein\n // org.apache.camel.component.exec.ExecResult, daher umwandeln\n // in String.\n .convertBodyTo(String.class)\n .log(\"Received message for 'OutgoingResultRoute' : ${body}\")\n .to(ServiceDefinitions.EP_SWITCHYARD + ServiceDefinitions.SVC_CALL_NAVISION);*/\n }", "@Override\n\tpublic void configure() throws Exception {\n\t\tJacksonDataFormat jsonDataFormat = new JacksonDataFormat(Employee.class);\n\t\t\n\t\tintercept().process(new Processor() {\n\t\t\tpublic void process(Exchange exchange) {\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.println(\"interceptor called \" + count + \" times \" + exchange.getIn().getBody());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// using new processor\n//\t\tfrom(\"direct:emailSchedulerNewProcessor\").process(new CreateEmployeeProcessor()).marshal(jsonDataFormat)\n//\t\t\t\t.setHeader(Exchange.HTTP_METHOD, simple(\"POST\"))\n//\t\t\t\t.setHeader(Exchange.CONTENT_TYPE, constant(\"application/json\"))\n//\t\t\t\t.to(\"http4://localhost:8081/postEmailMessageQueue\").process(new CreateEmployeeProcessor());\n\n\t\t// publish\n\t\tfrom(\"direct:postToRestConsumerSingleServer\").marshal(jsonDataFormat)\n\t\t\t\t.setHeader(Exchange.HTTP_METHOD, simple(\"POST\"))\n\t\t\t\t.setHeader(Exchange.CONTENT_TYPE, constant(\"application/json\")) //.onException(Exception.class)\n\t\t\t\t.to(\"http4://localhost:8081/consumer/rest\");\n\t\t\t\n\t\t/*\n\t\t .process(new Processor() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void process(Exchange exchange) throws Exception {\n\t\t\t\t\t\tString outputFromClient1 = exchange.getIn().getBody(String.class);\n\t\t\t\t\t\toutputFromClient1 = outputFromClient1.toUpperCase();\n\t\t\t\t\t\texchange.getIn().setMessageId(outputFromClient1);\n\t\t\t\t\t\tlog.info(\"converted output to upper\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t*/\n\t\t//.log(\"OUT BODY -- : ${body} \");\n\t\t\n\t\t\n\t\t// Exception Handling\n\t\tfrom(\"direct:postToRestConsumerExceptionHandling\").marshal(jsonDataFormat)\n\t\t\t\t.setHeader(Exchange.HTTP_METHOD, simple(\"POST\"))\n\t\t\t\t.setHeader(Exchange.CONTENT_TYPE, constant(\"application/json\"))//.onException(Exception.class)\n\t\t\t\t.to(\"http4://localhost:8081/consumer/rest_TestException\");\n\t}", "public void send(String topic,Object content,String actionType) {\n //maxkey.server.message.queue , if not none\n if(applicationConfig.isProvisionSupport()) {\n ProvisionMessage message = \n \t\tnew ProvisionMessage(\n \t\t\t\tUUID.randomUUID().toString(),\t//message id as uuid\n \t\t\t\ttopic,\t//TOPIC\n \t\t\t\tactionType,\t//action of content\n \t\t\t\tDateUtils.getCurrentDateTimeAsString(),\t//send time\n \t\t\t\tnull, \t//content Object to json message content\n \t\t\t\tcontent\n \t\t\t\t);\n //sand msg to provision topic\n Thread thread = null;\n if(applicationConfig.isProvisionSupport()) {\n \t_logger.trace(\"message...\");\n \tthread = new ProvisioningThread(jdbcTemplate,message);\n \tthread.start();\n }else{\n \t_logger.trace(\"no send message...\");\n }\n }\n }", "public void publishMessage(String message) throws IOException {\n try {\n producer.send(new ProducerRecord<String, String>(topic, 0, \"HELIDON\", message));\n logger.warning(\"Sent new oKafka message: \"+message);\n //producer.commitTransaction();\n //producer.flush();\n } catch (Exception ex) {\n ex.printStackTrace();\n throw new IOException(ex.toString());\n }\n }", "public static void main(String[] args) {\n ConnectionFactory connectionFactory = new ConnectionFactory();\n connectionFactory.setHost(\"localhost\");\n\n try {\n Connection connection = connectionFactory.newConnection();\n Channel channel = connection.createChannel();\n channel.basicQos(3);\n\n channel.exchangeDeclare(EXCHANGE_NAME, EXCHANGE_TYPE);\n // создаем временную очередь со случайным названием\n String queue = channel.queueDeclare().getQueue();\n\n // привязали очередь к EXCHANGE_NAME\n channel.queueBind(queue, EXCHANGE_NAME, \"\");\n\n DeliverCallback deliverCallback = (consumerTag, message) -> {\n System.out.println(\"Creating deduction file for \" + new String(message.getBody()));\n String[] info = new String(message.getBody()).split(\" \");\n try {\n String fileName = DEST_FOLDER + info[0] + \" \" + info[1] + \".pdf\";\n File file = new File(fileName);\n file.getParentFile().getParentFile().mkdirs();\n\n PdfReader pdfReader = new PdfReader(SRC);\n PdfWriter pdfWriter = new PdfWriter(fileName);\n PdfDocument doc = new PdfDocument(pdfReader, pdfWriter);\n PdfAcroForm form = PdfAcroForm.getAcroForm(doc, true);\n Map<String, PdfFormField> fields = form.getFormFields();\n fields.get(\"name\").setValue(info[0]);\n fields.get(\"surname\").setValue(info[1]);\n fields.get(\"age\").setValue(info[4]);\n fields.get(\"passport\").setValue(info[2] + \" \" + info[3]);\n fields.get(\"given\").setValue(info[5]);\n\n doc.close();\n channel.basicAck(message.getEnvelope().getDeliveryTag(), false);\n } catch (IOException e) {\n System.err.println(\"FAILED\");\n channel.basicReject(message.getEnvelope().getDeliveryTag(), false);\n }\n };\n\n channel.basicConsume(queue, false, deliverCallback, consumerTag -> {\n });\n } catch (IOException | TimeoutException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Override\n public void handleDelivery(String consumerTag, Envelope envelope,\n AMQP.BasicProperties properties, byte[] body) throws IOException \n {\n try\n {\n Object obj = getObjectForBytes(body);\n json = returnJson(obj);\n System.out.println(\"The json is \"+json.toString());\n \n } catch (ClassNotFoundException ex)\n {\n Logger.getLogger(JsonTranslator.class.getName()).log(Level.SEVERE, null, ex);\n }finally \n {\n System.out.println(\" [x] Done\");\n publishJsonData();//VERY INOVATIVE\n //DDO NOT KILL THE \n // channel.basicAck(envelope.getDeliveryTag(), false);\n }\n \n }", "private static void startProducer() throws Exception {\n\t\t\n\t\tProperties jndiProps = new Properties();\n\t\tjndiProps.put(\"java.naming.factory.initial\", \"com.sun.jndi.fscontext.RefFSContextFactory\");\n\t\tjndiProps.put(\"java.naming.provider.url\", \"file:///C:/Temp\");\n\t\t\n\t\tInitialContext ctx = null;\n\t\n\t\tctx = new InitialContext(jndiProps);\n\t\tcom.sun.messaging.ConnectionFactory tcf = (com.sun.messaging.ConnectionFactory) ctx.lookup(\"Factory\");\n\t Topic topic = (com.sun.messaging.Topic) ctx.lookup(\"uav topic\");\n\t TopicConnection conn = (TopicConnection) tcf.createTopicConnection();\n\t Session session = (Session) conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t \n\t MessageProducer producer = session.createProducer(topic);\n\t conn.start();\n\t TextMessage myTextMsg = session.createTextMessage();\n\t myTextMsg.setText(\"Hello JMS Subscriber!\");\n System.out.println(\"\\n===Sending Message:===\" + myTextMsg.toString());\n producer.send(myTextMsg);\n \n //Close the session and connection resources.\n session.close();\n conn.close();\n\t\t\n\t}", "public void deliverLocally(RoutingHeader routingHeader) {\n \n }", "public void sendOrder(OrderInfo order) {\n KafkaJsontemplate.send(TOPIC_NAME,order);\n //send to control panel topic for making changes\n KafkaJsontemplate.send(TOPIC_NAME_CHANGE,order);\n\n\n String uri = \"http://localhost:8080/order/send/\";\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_JSON);\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n\n HttpEntity<OrderInfo> request = new HttpEntity<>(order, headers);\n ResponseEntity<OrderInfo> response = restTemplate.postForEntity(uri, request, OrderInfo.class);\n\n if (response.getStatusCode() == HttpStatus.CREATED) {\n log.debug(\"Запрос создан:{}\", response.getBody());\n } else {\n log.debug(\"Request Failed: {}\", response.getStatusCode());\n }\n }", "@Override\n public void configure() throws Exception {\n\n from(\"activemq:split-cola\").to(\"log:mensaje-recivido-de-active-mq\");\n }", "public void send() {\n\t}", "void sendTemplateMessage (EmailObject object) throws Exception;", "public void send(String providedTopic,V msg);", "public void sendMessage ( UUID sender , String message ) {\n\t\texecute ( handle -> handle.sendMessage ( sender , message ) );\n\t}", "@CrossOrigin(origins = \"*\", allowedHeaders = \"*\")\n @MessageMapping(\"/send/message\")\n public void onReceivedMesage(String message){\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\"- \"+message);\n // this.template.convertAndSend(\"/chat2\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\"- \"+message);\n\n // System.err.println(\"msg from client \"+message);\n }", "@Override\n public void onMessage(final Message message) {\n final var objectMessage = (ObjectMessage) message;\n try {\n var orderMessage = (OrderMessage) objectMessage.getObject();\n var orders = createOrder.create(orderMessage);\n jmsContext.createProducer().send(orderCreatedBean, orders);\n } catch (JMSException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n protected void sink(Message message) {\n }", "public static void main(String[] args) {\n\t\tProduce p = new Produce();\n\t\tp.get();\n\t\tp.put();\n\t\tp.send();\n\t}", "public void send(Message msg);", "@Override\n\tpublic void process(Exchange exchange) throws Exception {\n\t\tMap<String, Object> headerData = new HashMap<>();\n headerData.put(RabbitMQConstants.ROUTING_KEY, CESExecutorConfig.RABBIT_SEND_SIGNAL);\n headerData.put(CESExecutorConfig.RABBIT_STATUS, CESExecutorConfig.RABBIT_MSG_PROCESSSELECTOR);\n\t\texchange.getIn().setBody(this.getSerializedOutput(exchange));\n\t\texchange.getIn().setHeaders(headerData);\n\t}", "@GetMapping(\"/publishJson\")\n\tpublic String publishMessage() {\n\t\n\t\tfinal String uri = \"http://localhost:8080/getBooks\";\n\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Object> responseEntity = restTemplate.getForEntity(uri, Object.class);\n \n\t\t// We have changed the Kafka publisher config to handle serialization\n\t\t// TODO: handle deserialising both string and Json together\n\t\t\n\t\tkafkaTemplate.send(topic, responseEntity.getBody() );\n\t\treturn \"Json Data published\";\n\t}", "public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "@Test\n public void testFileComponent() throws InterruptedException {\n fileComponent.expectedMessageCount(0);\n //fileComponent.expectedBodiesReceived(TRANSFORMED_MSG);\n\n dstartProducer.sendBody(MESSAGE);\n\n fileComponent.assertIsSatisfied();\n }", "boolean deliver(String busType, String topic, Object event);", "@Bean\n public MessageProducer inboundMessageHandler() {\n MqttPahoMessageDrivenChannelAdapter adapter =\n new MqttPahoMessageDrivenChannelAdapter(UUID.randomUUID().toString(), mqttPahoClientFactory.get(), \"/newsMessage/notify\");\n adapter.setCompletionTimeout(5000);\n adapter.setConverter(new JSONMqttMessageConvertor(NewsMessage.class));\n adapter.setQos(1);\n adapter.setOutputChannel(mqttEventHandlerInputChannel);\n return adapter;\n }", "@Override\r\n\tpublic void publish(String message) {\n\t\tredisTemplate.convertAndSend(channelTopic.getTopic(), message);\r\n\t}", "@Override\n public void configure() throws Exception\n {\n errorHandler(deadLetterChannel(\"jms:queue:deadLetterQueue?transferExchange=true\"));\n\n /*\n * New User Route\n */\n this.buildRoute(\"edu.bcm.dldcc.big.utility.entity.NewUserLog\", \"\",\n \"newUserTopic\",\n CaTissueRouteBuilder.SHORT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY);\n\n /*\n * Update User Route\n */\n this.buildRoute(\"edu.bcm.dldcc.big.utility.entity.UpdateUserLog\", \"\",\n \"userChangeTopic\",\n CaTissueRouteBuilder.DEFAULT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY);\n\n /*\n * New Site Route\n */\n this.buildRoute(\"edu.bcm.dldcc.big.utility.entity.NewSiteLog\", \"\",\n \"newSiteTopic\",\n CaTissueRouteBuilder.SHORT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY);\n\n /*\n * New Participant Route\n */\n this.buildRoute(\"edu.bcm.dldcc.big.utility.entity.NewParticipantLog\", \"\",\n \"newParticipantTopic\",\n CaTissueRouteBuilder.SHORT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY);\n\n /*\n * Update Consent Route\n */\n this.triggerScoreboard(this.buildRoute(\n \"edu.bcm.dldcc.big.utility.entity.UpdateConsentLog\", \"\",\n \"updateConsentTopic\",\n CaTissueRouteBuilder.DEFAULT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY));\n\n /*\n * New Specimen Route\n */\n this.triggerScoreboard(this.buildRoute(\n \"edu.bcm.dldcc.big.utility.entity.NewSpecimenLog\",\n \"\",\n \"newSpecimenTopic\",\n CaTissueRouteBuilder.DEFAULT_TIMEOUT,\n CaTissueRouteBuilder.SPECIMEN_DELAY));\n\n /*\n * Update Specimen Route\n */\n this.triggerScoreboard(this.buildRoute(\n \"edu.bcm.dldcc.big.utility.entity.UpdateSpecimenLog\", \"\",\n \"updateSpecimenTopic\",\n CaTissueRouteBuilder.DEFAULT_TIMEOUT,\n CaTissueRouteBuilder.SPECIMEN_DELAY\n ));\n\n /*\n * Dynamic Extension Route\n */\n this.triggerScoreboard(this.buildRoute(\n \"edu.bcm.dldcc.big.utility.entity.DynamicExtensionUpdateLog\", \"\",\n \"dynamicExtensionTopic\",\n CaTissueRouteBuilder.DEFAULT_TIMEOUT,\n CaTissueRouteBuilder.DEFAULT_DELAY));\n\n /*\n * Specimen Characteristic Route\n */\n this.triggerScoreboard(from(\n this.getComponentName() + \":\"\n + \"edu.bcm.dldcc.big.utility.entity.SpecimenCharacteristicsLog\"\n + \"?persistenceUnit=\" + this.getInstance().getPersistenceUnit()\n + \"&consumer.delay=\" + CaTissueRouteBuilder.SPECIMEN_DELAY + \n \"&consumeLockEntity=false\").transacted()\n .removeHeaders(\"Camel*\")\n .setHeader(\"instance\", this.constant(this.getInstance().name())));\n\n from(\"jms:queue:annotationUpdateQueue\")\n .aggregate(header(\"JMSCorrelationID\"),\n new MostRecentAggregationStrategy()).completionTimeout(\n CaTissueRouteBuilder.UPDATE_TIMEOUT)\n .to(\"jms:queue:scoreboardQueue\");\n\n from(\"jms:queue:scoreboardQueue\").removeHeaders(\"Camel*\").beanRef(\n \"scoreboard\", \"updateScoreboards\");\n\n }", "@Override\n\tpublic void configure() {\n\t\tfrom(\"switchyard://EnrichService\").log(\"Received message for 'EnrichService' : ${body}\").process(new Processor() {\n\n\t\t\t@Override\n\t\t\tpublic void process(Exchange exchange) throws Exception {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<AdaptationTO> adaptationDirective = exchange.getIn().getHeader(\"adaptationDirective\", List.class);\n\t\t\t\tString message = (String)exchange.getIn().getBody();\n\t\t\t\t\n\t\t\t\tString xslt = (String) adaptationDirective.get(0).getData();\n\t\t\t\tStringReader reader = new StringReader(message);\n\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\ttry {\n\t\t\t\t\tTemplates templates = tFactory.newTemplates(new StreamSource(new StringReader(xslt)));\n\t\t\t\t\tjavax.xml.transform.Transformer transformer = templates.newTransformer();\n\t\t\t\t\ttransformer.transform(new StreamSource(reader), new StreamResult(writer));\n\t\t\t\t\tmessage = writer.toString();\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tadaptationDirective.remove(0);\n\t\t\t\texchange.getIn().setBody(message);\n\t\t\t}\n\t\t}).log(\"Enrich body : ${body}\");\n\t\t;\n\t}", "private <T extends QMessage> void sendTestMsg(T msg) {\n\n\t\ttry {\n\t\t\tString token = KeycloakUtils.getAccessToken(\"http://keycloak.genny.life\", \"genny\", \"genny\",\n\t\t\t\t\t\"056b73c1-7078-411d-80ec-87d41c55c3b4\", \"user1\", \"password1\");\n\t\t\tmsg.setToken(token);\n\n\t\t\t/* get the bridge url to publish the message to webcmd channel */\n\t\t\tString bridgetUrl = ENV_GENNY_BRIDGE_URL + \"/api/service?channel=webdata\";\n\n\t\t\tQwandaUtils.apiPostEntity(bridgetUrl, JsonUtils.toJson(msg), token);\n\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "@RequestMapping(value = \"/deleteBook/{id}\", method = RequestMethod.DELETE)\r\n public ResponseEntity<?> delete(@PathVariable(\"id\") long id) throws Exception{\r\n\t ProducerTemplate pt = camelContext.createProducerTemplate();\r\n\t String destination = \"direct:cm.delete\";\r\n\t\tSystem.out.println(\"Send message to \" + destination);\r\n\t\tpt.sendBody(destination, id);\r\n\t\t\r\n return ResponseEntity.ok().body(\"Book has been deleted successfully.\");\r\n }", "@Override\r\n\tpublic String delivery() {\n\t\treturn \" welcome to DTDC post service \";\r\n\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "@Override\n\tpublic void send(String msg) {\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "protected void sendMessage() throws IOException {\r\n\t\tif (smscListener != null) {\r\n\t\t\tint procCount = processors.count();\r\n\t\t\tif (procCount > 0) {\r\n\t\t\t\tString client;\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tlistClients();\r\n\t\t\t\tif (procCount > 1) {\r\n\t\t\t\t\tSystem.out.print(\"Type name of the destination> \");\r\n\t\t\t\t\tclient = keyboard.readLine();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(0);\r\n\t\t\t\t\tclient = proc.getSystemId();\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tif (proc.getSystemId().equals(client)) {\r\n\t\t\t\t\t\tif (proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Type the message> \");\r\n\t\t\t\t\t\t\tString message = keyboard.readLine();\r\n\t\t\t\t\t\t\tDeliverSM request = new DeliverSM();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\trequest.setShortMessage(message);\r\n\t\t\t\t\t\t\t\tproc.serverRequest(request);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sent.\");\r\n\t\t\t\t\t\t\t} catch (WrongLengthOfStringException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sending failed\");\r\n\t\t\t\t\t\t\t\tevent.write(e, \"\");\r\n\t\t\t\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\t\t\t} catch (PDUException pe) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"This session is inactive.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "public void send(String providedTopic,V msg,K providedKey);", "private void publish(String callerInfo, Enum<?> level, String msg, Object... params) {\n msg = params == null || params.length == 0 ? msg\n : Formatting.formatMessage(msg, params);\n outputStream().print(format(level, msg, null, callerInfo));\n }", "private void pubrecHandler(int messageId) {\n\n LOG.info(\"PUBREC [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n AmqpPubrelMessage amqpPubrelMessage = new AmqpPubrelMessage(messageId);\n\n this.pubEndpoint.publish(amqpPubrelMessage, done -> {\n\n if (done.succeeded()) {\n\n this.rcvEndpoint.settle(messageId);\n }\n });\n }", "public int sendMsg () {\n\t\tSimpleMessage msg;\n\t\t\n\t\tmsg = router.poll(); // Get message at the head of router\n\t\t\n\t\t//Get sender and receiver to pass it to the transport layer\n\t\tNode sender = msg.sender;\n\t\tNode receiver = msg.receiver;\n\t\t\n\t\t// Send message\t\t\n\t\t((Transport)sender.getProtocol(FastConfig.getTransport(pid))).\n\t\tsend(\n\t\t\tsender,\n\t\t\treceiver,\n\t\t\tmsg,\n\t\t\tpid);\n\t\t\t\t\n\t\treturn msg.size;\n\t}", "private void publishHandler(MqttPublishMessage publish) {\n\n final int mqttPacketId = publish.messageId();\n LOG.info(\"PUBLISH [{}] from MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n\n // TODO: simple way, without considering wildcards\n\n // check if a publisher already exists for the requested topic\n if (!this.pubEndpoint.isPublisher(publish.topicName())) {\n\n // create two sender for publishing QoS 0/1 and QoS 2 messages\n ProtonSender senderQoS01 = this.connection.createSender(publish.topicName());\n ProtonSender senderQoS2 = this.connection.createSender(publish.topicName());\n\n this.pubEndpoint.addPublisher(publish.topicName(), new AmqpPublisher(senderQoS01, senderQoS2));\n }\n\n // sending AMQP_PUBLISH\n AmqpPublishMessage amqpPublishMessage =\n new AmqpPublishMessage(null,\n publish.qosLevel(),\n publish.isDup(),\n publish.isRetain(),\n publish.topicName(),\n publish.payload());\n\n pubEndpoint.publish(amqpPublishMessage, mqttPacketId, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n if (delivery != null) {\n\n if (publish.qosLevel() == MqttQoS.AT_LEAST_ONCE) {\n this.mqttEndpoint.publishAcknowledge(mqttPacketId);\n LOG.info(\"PUBACK [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n } else {\n\n this.mqttEndpoint.publishReceived(mqttPacketId);\n LOG.info(\"PUBREC [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n }\n\n }\n }\n\n });\n }", "@MessageMapping(\"chat/updateRoom/{userName}\")\r\n public void updateRoom(@DestinationVariable String userName,@Payload String chatRoomName){\r\n messagingTemplateTest.convertAndSend(\"/topic/chat/\"+userName , chatRoomName);\r\n }", "public void send(String destination, String message, String identifier){\n return;\n }", "@Override\n public void process(Exchange exchange) throws Exception {\n exchange.setException(exception);\n exchange.getIn().setBody(message);\n }", "public void sendMessage()throws Exception{\r\n\r\n\t\ttry{\r\n\r\n\t\t\tintiSettings();\r\n\r\n\t\t\tproducer = new KafkaProducer(prop);\r\n\r\n\t\t\tSystem.out.println(\"Message to be sent from Producer:\");\r\n\t\t\tfor(int i=0;i<messageList.size();i++){\r\n\t\t\t\tSystem.out.println(messageList.get(i));\r\n\t\t\t\tproducer.send(new ProducerRecord(topicName, messageList.get(i)));\r\n\t\t\t}\r\n\t\t}catch(ProducerFencedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(OutOfOrderSequenceException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(AuthorizationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(KafkaException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tproducer.abortTransaction();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tproducer.close();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "@Around(\"annotationPoint()\")\n public void handle(ProceedingJoinPoint joinPoint) throws Throwable {\n RmqClientContext context = (RmqClientContext) SpringContextUtils.getBeanByClass(RmqClientContext.class);\n MethodSignature signature = (MethodSignature) joinPoint.getSignature();\n\n Method realMethod = joinPoint.getTarget().getClass().getDeclaredMethod(signature.getName(),\n signature.getMethod().getParameterTypes());\n\n RmqTransactionProducer producer = context.getTransactionProducers().get(realMethod);\n RmqHandlerMeta rmqHandlerMeta = context.getProducersMeta().get(realMethod);\n\n TransactionMethod outputMessage = rmqHandlerMeta.getTransactionMethod();\n\n Object[] args = joinPoint.getArgs();\n// Object transactionMessage = new Object();\n TransactionParam transactionParam = new TransactionParam(new LinkedList<>());\n for (Object arg : args) {\n if(arg.getClass().equals(rmqHandlerMeta.getTransactionMessageClass())){\n// transactionMessage = arg;\n transactionParam.setMessages(arg);\n }\n transactionParam.getParams().add(arg);\n }\n producer.sendTransactionBeanToTopic(rmqHandlerMeta.getTransactionMethod().topic(), outputMessage.tags(), transactionParam);\n// LOG.info(\"send message to topic:{} , message:{}\", outputMessage.topic(), JSON.toJSONString(transactionMessage));\n }", "protected int route(byte buffer[], int source) {\n \n // Get the message level\n byte messageLevel = getMessageLevel( buffer );\n // get the messageID\n byte messageID[] = getMessageID( buffer );\n \n // Check that the message was not received before\n if( messageIsNew( messageID )){\n \trecordMessageID( messageID );\n }\n else{\n \treturn Constants.SUCCESS;\n }\n \n // If I am not the sender of the message\n // add it to the message queue\n if (messageLevel == Constants.MESSAGE_ALL && source != Constants.SRC_ME){\n // Add message to message queue\n \taddMessageToQueue( buffer );\n }\n else if (messageLevel == Constants.MESSAGE_TARGET){\n \tbyte[] target = getTarget( buffer );\n \tif (target == this.address) {\n \t\t//Add to the message queue\n \t\treturn Constants.SUCCESS; //DO NOT send to all threads.\n \t}\n }\n \n // Send the message to all the threads\n synchronized (this.rwThreads) {\n for (ReadWriteThread aThread : rwThreads) {\n Log.d(TAG, \"Writing to device on thread: \" + aThread.getName());\n aThread.write(buffer);\n }\n }\n \n return Constants.SUCCESS;\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"topic 消息类型开始产生消息 \" + \"生产者: \" + Thread.currentThread().getName());\n\t\t\t\ttry {\n\t\t\t\t\t\t/**第一步 创建连接工厂*/\n\t\t\t\t\t\tfactory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI);\n\t\t\t\t\t\t/**第二步 创建JMS 连接*/\n\t\t\t\t\t\tConnection connection = factory.createConnection();\n\t\t\t\t\t\tconnection.start();\n\t\t\t\t\t\t/** 第三步 创建Session,开启事务 */\n\t\t\t\t\t\tSession session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\t\t\t/** 第四步: 创建topic,Topic是 Destination接口的子接口*/\n\t\t\t\t\t\tTopic topic = session.createTopic(MqConfigConstants.TopicName);\n\t\t\t\t\t\t/** 第五步 创建生产者producer */\n\t\t\t\t\t\tMessageProducer producer = session.createProducer(topic);\n\n\t\t\t\t\t\t/** 设置消息不需要持久化 */\n\t\t\t\t\t\tproducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n\t\t\t\t\t\t//发送文本消息\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t/** 第六步 发送消息 */\n\t\t\t\t\t\t\t\tMessage message = createMessage(session,\"vincent\",27,\"江西省赣州市\");\n\t\t\t\t\t\t\t\tproducer.send(message);\n\t\t\t\t\t\t\t\tsession.commit();//开启事务必须需要提交,消费者才能获取到\n\t\t\t\t\t\t\t\tSystem.out.println(\"发送消息: \" +message.toString() );\n\t\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}", "@RequestMapping(\"/publishTopic/{data}\")\n public String test1(@PathVariable String data) {\n String topicString = \"mqttProducer\";\n mqttPushClient.publish(2, false, topicString, data);\n return \"Success\";\n }", "public void sendTopicResponseToRabbit(String request){\n\n System.out.println(\" [x] Received Request: \" + request);\n for(int i=0; i<listExchangeName.size();i++) // Send all topics\n SendTopic(i,\"Rpi.User.Room.\"+Long.toString(id));\n }", "boolean deliver(CommInfrastructure busType, String topic, Object event);", "private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }", "@Override\n public void channelRead(final ChannelHandlerContext ctx,final Object msg) {\n deliveryService.delivery(ctx,msg);\n }", "public static void SendSMSMessage(String intentName, String message) {\n\n String topic = myProps.getPropertyValue(\"SNSMessageTopic\");\n\n try {\n\n log.warn(\"Creating SNS Message\");\n AmazonSNS snsClient = AmazonSNSClientBuilder.standard()\n .withRegion(Regions.US_EAST_1)\n .build();\n\n //publish to an SNS topic\n String msg = \"Music Man user request failure from : \" + intentName + \", value: \" + message;\n PublishRequest publishRequest = new PublishRequest(topic, msg);\n PublishResult publishResult = snsClient.publish(publishRequest);\n//print MessageId of message published to SNS topic\n log.info(\"MessageId - \" + publishResult.getMessageId());\n\n } catch (Exception e) {\n\n log.error(\"SNS Message exception error: \" + e.getMessage());\n\n }\n\n return;\n\n }", "@RequestMapping(value = \"/publish\", method = RequestMethod.GET)\n\tpublic void publish(Locale locale, Model model, @RequestParam(\"message\") String message) {\n\n\t\tAmazonSNSClient snsClient = new AmazonSNSClient(new ClasspathPropertiesFileCredentialsProvider());\t\t \n\t\tsnsClient.setRegion(Region.getRegion(Regions.AP_NORTHEAST_1));\n\t\t\n\t\t// Publish a message\n\t\tPublishRequest publishRequest = new PublishRequest(topicArn, message);\n\t\tsnsClient.publish(publishRequest);\n\t\t\n\t\tlogger.info(\"Published a message.Message=\" + message);\n\t}" ]
[ "0.69103765", "0.65116394", "0.6469565", "0.6294015", "0.6283581", "0.6162751", "0.61361456", "0.6108017", "0.60506755", "0.6038518", "0.60241956", "0.6012191", "0.59990376", "0.5961635", "0.5922193", "0.5909068", "0.5865023", "0.5858878", "0.58339787", "0.5786504", "0.5781259", "0.5752226", "0.57410026", "0.5730122", "0.57281345", "0.56778705", "0.5651709", "0.56346416", "0.5628048", "0.56077474", "0.55719364", "0.55651784", "0.55651385", "0.55601907", "0.55562186", "0.5547811", "0.5544272", "0.554155", "0.54763013", "0.54385555", "0.54362357", "0.543174", "0.5426011", "0.54184294", "0.5410241", "0.5391592", "0.53653467", "0.5363244", "0.5347203", "0.5335911", "0.53253996", "0.5306829", "0.5301051", "0.5283419", "0.5257176", "0.52516454", "0.524998", "0.52297634", "0.52262247", "0.5217514", "0.5211987", "0.52066934", "0.5203754", "0.51888156", "0.51813024", "0.51592636", "0.51570415", "0.51510066", "0.5150663", "0.5147767", "0.51428485", "0.5131723", "0.51224613", "0.5116314", "0.511203", "0.51103985", "0.51036274", "0.5102612", "0.5101945", "0.5099382", "0.5086687", "0.50848913", "0.5084077", "0.5068599", "0.50645995", "0.5062251", "0.506022", "0.5059508", "0.50578576", "0.50548184", "0.5052656", "0.5050597", "0.5047868", "0.5039394", "0.5039047", "0.5036664", "0.50312275", "0.502782", "0.5026598", "0.502641", "0.5021233" ]
0.0
-1
send the message to the special direct:fileerror endpoint, which will trigger exception handling
@Override public void handleException(final String message, final Exchange originalExchange, final Throwable exception) { send the message to the special direct:file-error endpoint, which // will trigger exception handling // template.send("direct:file-error", new Processor() { @Override public void process(Exchange exchange) throws Exception { // set an exception on the message from the start so the // error handling is triggered exchange.setException(exception); exchange.getIn().setBody(message); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fileSendFailed(IMSession session, String requestId, String fileId, ReasonInfo reason);", "void fileTransferFailed(IMSession session, String requestId, ReasonInfo reason);", "@Override\n\tpublic void fileDeliveryServiceError(int arg0, String arg1, Integer arg2) {\n\t\t\n\t}", "void fileReceiveFailed(IMSession session, String requestId, String fileId, ReasonInfo reason);", "@Override\n public void sendError(int arg0) throws IOException {\n\n }", "public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }", "void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;", "private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}", "@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }", "public void onFailure(Throwable caught) {\n\t\t\tGWT.log(\"Error uploading file\", caught);\t\n\t\t}", "public void sendErrorMessage( int statusCode ) {\r\n\r\n\t\tString httpVersion = HttpdConf.DEFAULT_HTTP_VERSION;\r\n\t\tif ( request != null && request.getHttpVersion() != null )\r\n\t\t\thttpVersion = request.getHttpVersion();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tFile errorFile = new File( ERROR_FILE_PATH + Integer.toString( statusCode ) + \".html\" );\r\n\t\t\tHeaderBuilder builder = new HeaderBuilder();\r\n\t\t\tString headerMessage = builder.buildHeaderBegin( statusCode, httpVersion )\r\n\t\t\t\t\t.buildContentTypeAndLength( errorFile ).toString();\r\n\t\t\twriteHeaderMessage( headerMessage );\r\n\t\t\tserveFile( errorFile );\r\n\r\n\t\t} catch ( ServerException se ) {\r\n\t\t\tse.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}", "@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}", "private void sendOldError(Exception e) {\n }", "@Override\n public void onTransferIOError(TransferDiskIOErrorAlert alert) {\n }", "@Override\n\tpublic void error(Object message) {\n\n\t}", "public void sendError(int i) throws IOException {\n\t\t\n\t}", "public void fireTransferError(Resource resource, int requestType, Exception e) {\n TransferEvent event = new TransferEvent(wagon, resource, e, requestType);\n for (TransferListener listener : listeners) {\n listener.transferError(event);\n }\n }", "public void onReceivedError();", "@Override\n public void onStreamError(Throwable throwable)\n {\n if (throwable instanceof MultiPartIllegalFormatException)\n {\n //If its an illegally formed request, then we send back 400.\n _streamResponseCallback.onError(Messages.toStreamException(RestException.forError(400, \"Illegally formed multipart payload\")));\n return;\n }\n //Otherwise this is an internal server error. R2 will convert this to a 500 for us. As mentioned this should never happen.\n _streamResponseCallback.onError(throwable);\n }", "@Override\n\tpublic FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n\t\tSystem.out.println(\"Error Accessing File\"+file.toAbsolutePath());\n\t\tSystem.out.println(exc.getLocalizedMessage());\n\t\t\n\t\t\n\t\t\n\t\treturn super.visitFileFailed(file, exc);\n\t}", "private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }", "private void action_error(HttpServletRequest request, HttpServletResponse response, String message) {\n\n FailureResult fail = new FailureResult(getServletContext());\n fail.activate(message, request, response);\n }", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "@ExceptionHandler(value=FileNotFound.class)\n\tpublic void resolveException(String ex,HttpServletResponse response) {\n\t\ttry {\n\t\t\tresponse.getOutputStream().println(\"Warning: File vuoto\\nException message: \"+ex);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\n\t}", "@Override\n public void onWriteFailed(byte fileType, byte errCode) {\n }", "@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}", "void uploadFailed(StreamingErrorEvent event);", "private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }", "void onFailureRedirection(String errorMessage);", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void sendError(int i, String s) throws IOException {\n\t\t\n\t}", "@Override\n\tpublic void error(Marker marker, Object message, Throwable t) {\n\n\t}", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "public void sendErrorResponse(MessageExchange exchange) {\n\t\tdoSend(exchange);\n\t}", "protected void fireError(String filename, long contentLength, String message, UploadErrorType uploadErrorType) {\n for (UploadListener uploadListener : uploadListeners) {\n uploadListener.errorNotify(filename, message, uploadErrorType, contentLength);\n }\n }", "private void sendProcessingError(Throwable t, ServletResponse response) {\n String stackTrace = getStackTrace(t); \n \n if (stackTrace != null && !stackTrace.equals(\"\")) {\n try {\n response.setContentType(\"text/html\");\n PrintStream ps = new PrintStream(response.getOutputStream());\n PrintWriter pw = new PrintWriter(ps); \n pw.print(\"<html>\\n<head>\\n<title>Error</title>\\n</head>\\n<body>\\n\"); //NOI18N\n\n // PENDING! Localize this for next official release\n pw.print(\"<h1>We had an error converting the URL to HTTPS</h1>\\n<pre>\\n\"); \n pw.print(stackTrace); \n pw.print(\"</pre></body>\\n</html>\"); //NOI18N\n pw.close();\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n } else {\n try {\n PrintStream ps = new PrintStream(response.getOutputStream());\n t.printStackTrace(ps);\n ps.close();\n response.getOutputStream().close();\n } catch (Exception ex) {\n }\n }\n }", "@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}", "@Override\n\tpublic void streamingServiceError(int arg0, String arg1, Integer arg2) {\n\t\t\n\t}", "public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }", "public void error(Exception e);", "private static void runAndThrow(final String file) {\n String input = readResource(\"failure_\" + file + \".json\", QueryChunkResponseParserTest.class);\n // At the moment the query chunk response parser does not care about the http status code and only\n // prints it as part of the error context, so we can pick whatever we want here.\n HttpResponse header = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.BAD_REQUEST);\n throw QueryChunkResponseParser.errorsToThrowable(input.getBytes(StandardCharsets.UTF_8), header, null);\n }", "public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}", "private void postErrorPage() throws IOException {\n out.println(OK);\n System.out.println(NO);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + ERROR_FILE.length());\n out.println(ENDLINE);\n String htmlLine = ERROR_READER.readLine();\n while (htmlLine != null) {\n out.println(htmlLine);\n htmlLine = ERROR_READER.readLine();\n }\n ERROR_READER.close();\n }", "protected void reply_error(String message) {\n try {\n byte[] err = PushCacheProtocol.instance().errorPacket(message);\n _socket.getOutputStream().write(err, 0, err.length);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void uploadError(String path, String key, String errorMessage) {\n\t\t\t\tsynchronized (this) {\n int row = fileKeys.indexOf(key);\n resultTable.setValueAt(\"error\", row, 2);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}", "@Override\n public void fileNotFound(String path, Throwable cause) {\n headers.put(CONTENT_TYPE, MediaType.getType(\".html\"));\n send404NotFound(ctx, headers, \"404 NOT FOUND\".getBytes(), true);\n }", "void onFailureRedirection(ErrorModel errorModel);", "public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }", "@Override\n public void uploadFailed() {\n }", "@Override\n public void configure() throws Exception {\n onException(IOException.class).handled(true).log(\"IOException occurred due: ${exception.message}\")\n // as we handle the exception we can send it to\n // direct:file-error,\n // where we could send out alerts or whatever we want\n .to(\"direct:file-error\");\n\n // special route that handles file errors\n from(\"direct:file-error\").log(\"File error route triggered to deal with exception ${exception?.class}\")\n // as this is based on unit test just transform a message\n // and send it to a mock\n .transform().simple(\"Error ${exception.message}\").to(\"mock:error\");\n\n // this is the file route that pickup files, notice how we use\n // our custom exception handler on the consumer\n // the exclusiveReadLockStrategy is only configured because this\n // is from an unit test, so we use that to simulate exceptions\n from(fileUri(\n \"?exclusiveReadLockStrategy=#myReadLockStrategy&exceptionHandler=#myExceptionHandler&initialDelay=0&delay=10\"))\n .convertBodyTo(String.class).to(\"mock:result\");\n }", "public void socketError(Exception arg0) {\n\t\t\r\n\t}", "@Override\n \tpublic void onError(Throwable error, Uri uri) {\n \n \t\tBugSenseHandler.sendExceptionMessage(\"uri\", uri.toString(),\n \t\t\t\tnew Exception(error));\n \n \t\tanalytics.sendException(error.getMessage(), error, false);\n \t}", "public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }", "public void downloadFailed(Throwable t);", "public void error(String message);", "public void reportError (String id) throws IOException;", "public static void printWriteFileError() {\n System.out.println(Message.WRITE_FILE_ERROR);\n }", "public void errorOccured(String errorMessage, Exception e);", "@Override\n\tpublic void error(Marker marker, String message, Throwable t) {\n\n\t}", "protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }", "public void onError(Request request, Throwable exception) {\n\t\t\t logger.severe(\"HTTP error occurred\");\n\t\t\t \tdeliveryPoint.onDeliveryProblem(letterBox, 0);\n\t\t\t }", "protected void printError(Exception ex, HttpServletResponse response) {\n int statusCode = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;\n String exceptionName = \"runtime\";\n\n if (ex instanceof CmisRuntimeException) {\n LOG.error(ex.getMessage(), ex);\n } else if (ex instanceof CmisStorageException) {\n LOG.error(ex.getMessage(), ex);\n statusCode = getErrorCode((CmisStorageException) ex);\n exceptionName = ((CmisStorageException) ex).getExceptionName();\n } else if (ex instanceof CmisBaseException) {\n statusCode = getErrorCode((CmisBaseException) ex);\n exceptionName = ((CmisBaseException) ex).getExceptionName();\n } else if (ex instanceof IOException) {\n LOG.warn(ex.getMessage(), ex);\n } else {\n LOG.error(ex.getMessage(), ex);\n }\n\n if (response.isCommitted()) {\n LOG.warn(\"Failed to send error message to client. Response is already committed.\", ex);\n return;\n }\n\n String message = ex.getMessage();\n if (!(ex instanceof CmisBaseException)) {\n message = \"An error occurred!\";\n }\n\n try {\n response.resetBuffer();\n response.setStatus(statusCode);\n response.setContentType(\"text/html\");\n response.setCharacterEncoding(IOUtils.UTF8);\n\n PrintWriter pw = response.getWriter();\n\n pw.print(\"<html><head><title>Apache Chemistry OpenCMIS - \"\n + exceptionName\n + \" error</title>\"\n + \"<style><!--H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} \"\n + \"BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} \"\n + \"HR {color:#3c78b5;height:1px;}--></style></head><body>\");\n pw.print(\"<h1>HTTP Status \" + statusCode + \" - <!--exception-->\" + exceptionName + \"<!--/exception--></h1>\");\n pw.print(\"<p><!--message-->\" + StringEscapeUtils.escapeHtml(message) + \"<!--/message--></p>\");\n\n String st = ExceptionHelper.getStacktraceAsString(ex);\n if (st != null) {\n pw.print(\"<hr noshade='noshade'/><!--stacktrace--><pre>\\n\" + st\n + \"\\n</pre><!--/stacktrace--><hr noshade='noshade'/>\");\n }\n\n pw.print(\"</body></html>\");\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n try {\n response.sendError(statusCode, message);\n } catch (Exception en) {\n // there is nothing else we can do\n }\n }\n }", "@Override\n\tpublic void error(Marker marker, String message, Object p0) {\n\n\t}", "void errorResponse( String error );", "@Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n LOG.warn(\"An IOException occurred while reading a file on path {} with message: {}\", file, exc.getMessage());\n LOG.debug(\"An IOException occurred while reading a file on path {} with message: {}\", file,\n LOG.isDebugEnabled() ? exc : null);\n return FileVisitResult.CONTINUE;\n }", "public void error();", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "private void sendToErrorPage(String errorMessage, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/error.jsp\");\n ErrorBean errorBean = new ErrorBean();\n errorBean.setErrorText(errorMessage);\n request.setAttribute(ERROR_ATTRIBUTE_NAME, errorBean);\n dispatcher.forward(request, response);\n }", "@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}", "@Override\n public void onError(Throwable t, SelectableChannel channel) {\n endpointHandler.onError(t, channel);\n }", "void uploadFailed(long bytes);", "boolean getFileErr();", "@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "public void sendFailed(LinkLayerMessage message) {\n\t\t\n\t}", "protected abstract void error(String err);", "public void requestError(java.lang.String msg){\r\n\t\tIterator <RobotEngineObserver> robOb = this.iterator();\r\n\t\twhile (robOb.hasNext()){\r\n\t\t\trobOb.next().raiseError(msg);\r\n\t\t}\r\n\t}", "public void onRequestFailure(Request request, IOException e) { }", "@Override\n\tpublic void error(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}", "public void httpfailure(String errmsg) {\n\t\t\n\t}", "public void doError (int statuscode, Exception e) {\n\tStringWriter sw = new StringWriter ();\n\tPrintWriter ps = new PrintWriter (sw);\n\te.printStackTrace (ps);\n\tString message = sw.toString ();\n\tthis.statusCode = Integer.toString (statuscode);\n\textraInfo = (extraInfo != null ? \n\t\t extraInfo + e.toString () : \n\t\t e.toString ());\n\tHttpHeader header = null;\n\tif (statuscode == 504) \n\t header = getHttpGenerator ().get504 (e, requestLine);\n\telse \n\t header = getHttpGenerator ().getHeader (\"HTTP/1.0 400 Bad Request\");\n\t\n\tStringBuilder sb = new StringBuilder ();\n\tsb.append (HtmlPage.getPageHeader (this, statuscode + \" \" + \n\t\t\t\t\t header.getReasonPhrase ()) +\n\t\t \"Unable to handle request:<br><b>\" + \n\t\t e.getMessage () +\n\t\t (header.getContent () != null ? \n\t\t \"<br>\" + header.getContent () : \n\t\t \"\") + \n\t\t \"</b><br><xmp>\" + message + \"</xmp></body></html>\\n\");\n\theader.setContent (sb.toString ());\n\tsendAndClose (header);\n }", "public void sendError(String xml, PrintWriter out) throws Exception {\n send(new StringReader(xml), out, m_errorTemplates);\n }", "public void onWriteError(Exception ex, Object item) {\n logger.error(\"Encountered error on write\");\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "@Override\n\tpublic void error(Marker marker, CharSequence message, Throwable t) {\n\n\t}", "public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }", "@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}", "public abstract void OnError(int code);", "@Override\r\n\t\t\tpublic void onErrorResponse(String errorMessage) {\n\r\n\t\t\t}", "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "@Override\n\tpublic void error(String message, Object p0) {\n\n\t}", "public static void sendError(HttpServletResponse res, int status, Throwable e) throws IOException {\n\t\tif(!res.isCommitted()) {\n\t\t\tif(e != null) {\n\t\t\t\tres.sendError(status, e.getMessage());\n\t\t\t} else {\n\t\t\t\tres.sendError(status);\n\t\t\t}\n\t\t}\n\t\tres.getOutputStream().close(); // prevent tomcat error pages\n\t}", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic String getErrorPath() {\n\t\treturn \"/error\";\r\n\t}", "@Override\n\tpublic void onError(TaskItem item) {\n\t\treportFailure((IMediaFile) item.getUserData().get(\"file\"), item.getError());\n\t\titem.setHandler(null);\n\t\titem.setOperation(null);\n\t\titem.getUserData().clear();\n\t}", "void error (String msg) throws RootException;", "@Override\n\tpublic void handlerFault(String msg) {\n\t\tSystem.out.println(\"Emailing the error \" +msg);\n\t}" ]
[ "0.7048146", "0.65944755", "0.65895414", "0.6450782", "0.64036655", "0.63535583", "0.6275763", "0.6192409", "0.61846834", "0.61806947", "0.6171388", "0.6119509", "0.6119509", "0.6068695", "0.6027028", "0.6020476", "0.6010378", "0.60083854", "0.5942467", "0.5936277", "0.5920218", "0.59093964", "0.5898479", "0.5892763", "0.5862088", "0.5833564", "0.5830227", "0.58117616", "0.5789199", "0.57859087", "0.5784448", "0.5784149", "0.5769589", "0.5716231", "0.5711984", "0.5698768", "0.5698268", "0.5698178", "0.5693533", "0.56928253", "0.56813216", "0.56784624", "0.56754583", "0.56701255", "0.5667139", "0.56421196", "0.56404185", "0.56327534", "0.56311506", "0.5598915", "0.5591035", "0.5580198", "0.556969", "0.5568692", "0.5549168", "0.55448246", "0.55394495", "0.5526947", "0.55208445", "0.55134356", "0.5511854", "0.54980904", "0.54932106", "0.5489981", "0.5488093", "0.5481701", "0.54722416", "0.5470171", "0.5465336", "0.5457816", "0.5450637", "0.5449606", "0.54299676", "0.54282415", "0.54248255", "0.5424725", "0.5417365", "0.541494", "0.54062784", "0.5401328", "0.5400743", "0.53943324", "0.539358", "0.5392819", "0.53926444", "0.53924525", "0.5388906", "0.5388476", "0.5381929", "0.53700584", "0.53654563", "0.53618324", "0.535248", "0.5350322", "0.5347452", "0.5344532", "0.534087", "0.53382003", "0.53379214", "0.5334539" ]
0.7132127
0
set an exception on the message from the start so the error handling is triggered
@Override public void process(Exchange exchange) throws Exception { exchange.setException(exception); exchange.getIn().setBody(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "public abstract void setError(String message);", "public void setException(java.lang.CharSequence value) {\n this.Exception = value;\n }", "public VocabularioIOException(String msg)\n {\n message = msg;\n }", "protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}", "public void setException(Exception e){\r\n //build message\r\n String dialog = e+\"\\n\\n\";\r\n StackTraceElement[] trace = e.getStackTrace();\r\n for(int i=0;i<trace.length;i++)\r\n dialog += \" \" + trace[i] + \"\\n\";\r\n //dialog\r\n setMessage(\"Internal error caught.\", dialog);\r\n }", "public AlwaysFailsCheck(String excepmsg) {\n errmsg = excepmsg;\n }", "public SAXException (String message) {\n super(message);\n this.exception = null;\n }", "protected void initError(String message, COMMAND command) {\t\n\t String id = (command != null ? command.getId() : \"no-command\");\t \n\t \n\t COMMAND_DONE done = new COMMAND_DONE(id);\n\t done.setSuccessful(false);\n\t done.setErrorNum(SERVER_INITIALIZATION_ERROR);\n\t done.setErrorString(\"Command: [\"+id+\"]: CAMP::\"+message);\n\t \n\t try { \t\n\t\tif (connection != null)\n\t\t connection.send(done); \n\t } catch (IOException e) {\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Failed to send error: \"+e);\n\t }\n\t \n\t if (handler != null)\n\t\thandler.dispose();\n\t if (connection != null)\n\t\tconnection.close();\n\t connection = null;\n\t command = null;\n\t \n\t}", "public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }", "@Override\n\tpublic void error(CharSequence message) {\n\n\t}", "@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "private void fatal(String message) throws SAXException {\n SAXParseException spe = new SAXParseException(message, this);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }", "@Override\n\tpublic void error(Object message) {\n\n\t}", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "private void errorMessage( String message )\n {\n logger.errorMessage( \"MidiChannel\", message, 0 );\n }", "@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}", "protected void ERROR(String message)\n\t{\n\t\t//allow children to modify output\n\t\tPRINT(message);\n\t\tSystem.exit(1);\n\t}", "@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}", "public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }", "public TransactionAbortedException(String msg) {\n\t\t//EFFECTS: display error message\n\t\tsuper(msg);\n\t}", "private void fail(String message) {\n\t\t// we're pretty dramatic here, if a resource isn't available\n\t\t// we dump the message and exit the game\n\t\tLogger.severe(message);\n\t\tSystem.exit(0);\n\t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public void exception(String message) {\n JOptionPane.showMessageDialog(frame, message, \"exception\", JOptionPane.ERROR_MESSAGE);\n }", "public MessageParseException(String message) {\n super(message);\n }", "public GameEndException(String exception){\n\t\tsuper(exception);\n\t}", "public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }", "public void error(String message);", "@Test\n public void test059() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n String string0 = errorPage0.message(\"0K~@:tT\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public DataDiFineTirocinioNonValidaException(String messaggio) {\r\n super(messaggio);\r\n }", "private void sendOldError(Exception e) {\n }", "public JDBFException (String message){\r\n super(Messages.message(message));\r\n }", "public SmartScriptParserException(String message) {super(message);}", "private static void error(String msg) {\r\n\t\tlogger.severe(msg);\r\n\t\tSystem.exit(0);\r\n\t}", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public SAXException (String message, Exception e)\n {\n super(message);\n this.exception = e;\n }", "@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}", "public AuraUnhandledException(String message) {\n super(message);\n }", "OOPExpectedException expectMessage(String msg);", "public ValueOutOfRangeException(String message) {\n this.message = message;\n }", "abstract void errorLogMessage(String message);", "private void raiseParseProblem(String message, int position) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(expansionString).append(\"\\n\");\n\n for (int i = 0; i < position; i++) {\n\n sb.append(\" \");\n\n }\n\n sb.append(\"^\\n\");\n\n sb.append(message);\n\n throw new VersionExpansionFormatException(expansionString, sb.toString());\n\n }", "public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n StringReader stringReader0 = new StringReader(\"catch\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 106, 0);\n javaCharStream0.maxNextCharInd = (-3000);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@SuppressWarnings(\"unused\")\n protected void error(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isErrorEnabled()) {\n this.getContainer().getLogger().error(msg);\n }\n }", "public sparqles.avro.discovery.DGETInfo.Builder setException(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.Exception = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "void setError();", "private void reportError(final String message) throws ParseException {\n throw new ParseException(_tokenizer.getLine(), _tokenizer.getColumn(), message);\n }", "public void m23078a(String str, Exception exception) {\n }", "public XMLParseException() { super(defaultMessage); }", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "public MyException(String message)\n { super(message); }", "@Override\n public void error(final Object message) {\n this.logger.error(this.prepareDefaultMessage(message));\n }", "public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}", "public PlayException(String message) {\n super(message);\n }", "public SmppException(String s) {\n\t\tsuper(s);\n\t}", "public void error(String string) {\n\t\t\n\t}", "public GotNullException(String message)\n {\n super(message);\n }", "public void onException(JMSException exception)\n {\n System.err.println(\"something bad happended: \" + exception);\n }", "public void errorOccured(String errorMessage, Exception e);", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public void message(String message, Throwable t);", "EnigmaException(String msg) {\n super(msg);\n }", "@Override\n\tpublic void error(String message, Object p0) {\n\n\t}", "public DataControlException(String msg) {\r\n super(msg);\r\n }", "private void setError(String code, String message) {\r\n recentErrorCode = code;\r\n recentErrorMessage = message;\r\n recentServerErrorCode = \"\";\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog && !\"\".equals(message)) {\r\n System.out.println(\"[E!:\" + code + \"] \" + message);\r\n }\r\n }", "public ShopingCartException(String err) {\n\tsuper(err); // call super class constructor\n\tmistake = err; // save message\n }", "public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void requestError(java.lang.String msg){\r\n\t\tIterator <RobotEngineObserver> robOb = this.iterator();\r\n\t\twhile (robOb.hasNext()){\r\n\t\t\trobOb.next().raiseError(msg);\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void setInvalidMess(String errmess) {\n\n\t\t}", "public void addError(String message);", "public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }", "@Override\n\t\t\tpublic void handleMessage(Message mesg) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}", "public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }", "public void error(Exception e);", "public ReaderException( String code ){ super(code); }", "@Test\n public void test078() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n Component component0 = errorPage0.title(\"%n.Is\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n\tpublic void errorOnExecution(final String message) {\n\t\tafterExecution();\n\t}", "public ScheduleException(String msg) {\r\n super(msg);\r\n }", "private void execHandlerFailed( Message msg ) {\n\t\ttoast_short( mMsgFailed );\n\t}", "public ExcelImportException(String message) {\r\n\t\tsuper(message);\r\n\t}", "void verror(String message)\n throws SAXException\n {\n SAXParseException err;\n \n err = new SAXParseException(message, this);\n errorHandler.error(err);\n }", "public OLMSException(String message) {\r\n super(message);\r\n }", "public abstract void showInitError(String s);", "protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);", "public void erroMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_ERRO, msg));\n }", "public static void error(String msg) {\n System.err.println(\"Interpreter error: \" + msg);\n System.exit(-1);\n }", "public LexerException(String message) {\n\t\tsuper(message);\n\t}", "public PreparationException(final String message) {\n\t\tsuper(message);\n\t}", "public ScriptThrownException(String message, Object value) {\n super(message);\n this.value = value;\n }", "public SSAPMessageParseException(String message, Throwable cause) {\n\t\tsuper(message,cause);\n\t}", "private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public void handleException(Exception e) {\r\n \t\te.printStackTrace();\r\n \t\tshowErrorMessage(e.getMessage());\r\n \t}", "public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}", "protected void error(String p_reason, Exception p_exception)\n throws ImporterException\n {\n String[] args = { p_reason };\n throw new ImporterException(\n ImporterException.MSG_INVALID_IMPORT_OPTIONS,\n args, p_exception);\n }" ]
[ "0.6423646", "0.6407004", "0.6401484", "0.6398896", "0.6387856", "0.6356555", "0.6339003", "0.6326945", "0.63138366", "0.6289032", "0.6273553", "0.62424314", "0.62417316", "0.6223299", "0.6209846", "0.6176819", "0.6164047", "0.61614597", "0.6129516", "0.6085996", "0.6085579", "0.60827124", "0.6074822", "0.60544413", "0.60471857", "0.6041847", "0.6036889", "0.6034978", "0.6020415", "0.60165036", "0.6013457", "0.6012883", "0.6005921", "0.600325", "0.5991311", "0.59669715", "0.5958513", "0.59330326", "0.59267855", "0.5915381", "0.59153193", "0.5913616", "0.59075165", "0.58973455", "0.5895003", "0.5893563", "0.5892559", "0.58924514", "0.5891452", "0.5885279", "0.5882042", "0.5868603", "0.5868437", "0.586396", "0.58637214", "0.5848607", "0.5845866", "0.5841635", "0.5837382", "0.58326757", "0.5829419", "0.5826228", "0.58246756", "0.58225274", "0.5820646", "0.5820035", "0.58181787", "0.5812905", "0.58095884", "0.58086514", "0.5807557", "0.57982206", "0.57940406", "0.5790963", "0.5785371", "0.5784", "0.57824683", "0.57760835", "0.57728267", "0.57706225", "0.57677615", "0.5763879", "0.5759938", "0.57547086", "0.5747386", "0.5745071", "0.574257", "0.5742521", "0.57408595", "0.5735704", "0.5735384", "0.57341576", "0.5732533", "0.5732416", "0.57316047", "0.5728803", "0.5720073", "0.57198846", "0.5718761", "0.5715987", "0.5713579" ]
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.true_false); t1=(RadioButton)findViewById(R.id.radioButton1); f1=(RadioButton)findViewById(R.id.radioButton2); t1.setOnClickListener(this); f1.setOnClickListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.79172915", "0.77269113", "0.7693109", "0.7693109", "0.7693109", "0.7693109", "0.7693109", "0.7693109", "0.76372015", "0.76372015", "0.76313853", "0.7618507", "0.7618507", "0.7543325", "0.7540287", "0.7540287", "0.7539959", "0.7527509", "0.7514985", "0.7509102", "0.75008595", "0.7481763", "0.74761945", "0.74694353", "0.74694353", "0.7456283", "0.743798", "0.74251395", "0.7423054", "0.7394566", "0.73708826", "0.7357571", "0.7357571", "0.7352214", "0.73479784", "0.73479784", "0.7333361", "0.7311067", "0.7266883", "0.7260368", "0.72521555", "0.7242029", "0.7214287", "0.7186968", "0.718366", "0.71738285", "0.71690965", "0.7167794", "0.7148569", "0.71404517", "0.7132506", "0.711814", "0.70992744", "0.70987475", "0.70929253", "0.70929253", "0.70861673", "0.7076476", "0.7074429", "0.7070517", "0.7049994", "0.70412904", "0.70390654", "0.70137113", "0.7005338", "0.7004753", "0.7004236", "0.70011914", "0.69940275", "0.69920015", "0.69893605", "0.69837576", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69819766", "0.69797426", "0.6976801", "0.6967447", "0.6967438", "0.69651115", "0.6964137", "0.6961973", "0.6961797", "0.6961309", "0.69479233", "0.694055", "0.6936343", "0.6935147", "0.692919", "0.69268245", "0.6925614" ]
0.0
-1
Creates new form Scientific
public Scientific() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Gradian createGradian();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n TemperatureTxt = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n BloodPressureTxt = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n PulseTxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n DateTxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n SaveBtn = new javax.swing.JButton();\n\n jLabel1.setText(\"Temperature\");\n\n TemperatureTxt.setToolTipText(\"\");\n\n jLabel2.setText(\"Blood Pressure\");\n\n BloodPressureTxt.setToolTipText(\"\");\n\n jLabel3.setText(\"Pulse\");\n\n PulseTxt.setToolTipText(\"\");\n\n jLabel4.setText(\"Date\");\n\n DateTxt.setToolTipText(\"\");\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 255, 255));\n jLabel5.setText(\"Create Vital Signs\");\n\n SaveBtn.setText(\"Save\");\n SaveBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SaveBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TemperatureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(PulseTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(63, 63, 63)\n .addComponent(BloodPressureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(SaveBtn)\n .addComponent(DateTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(230, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(TemperatureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(BloodPressureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(PulseTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(DateTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(46, 46, 46)\n .addComponent(SaveBtn)\n .addContainerGap(82, Short.MAX_VALUE))\n );\n }", "FORM createFORM();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTemperature = new javax.swing.JLabel();\n lblBloodPressure = new javax.swing.JLabel();\n lblPulse = new javax.swing.JLabel();\n lblDate = new javax.swing.JLabel();\n txtTemperature = new javax.swing.JTextField();\n txtBloodPressure = new javax.swing.JTextField();\n txtPulse = new javax.swing.JTextField();\n txtDate = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n btnSave = new javax.swing.JButton();\n\n lblTemperature.setText(\"Temperature\");\n\n lblBloodPressure.setText(\"Blood Pressure\");\n\n lblPulse.setText(\"Pulse\");\n\n lblDate.setText(\"Date\");\n\n txtTemperature.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtTemperatureActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Create Vital Signs\");\n\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(lblPulse)\n .addComponent(lblBloodPressure)\n .addComponent(lblTemperature))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSave)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtTemperature, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)\n .addComponent(txtBloodPressure)\n .addComponent(txtPulse)\n .addComponent(txtDate)))\n .addContainerGap(432, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTemperature)\n .addComponent(txtTemperature, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblBloodPressure)\n .addComponent(txtBloodPressure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addComponent(lblPulse))\n .addComponent(txtPulse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(btnSave)\n .addContainerGap(167, Short.MAX_VALUE))\n );\n }", "public DisciplinaForm() {\n initComponents();\n }", "SintagmaPreposicional createSintagmaPreposicional();", "@Test\n public void test_ScientificNotation_0120() {\n ScientificNotation x = new ScientificNotation(BigInteger.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "@Test\n public void test_ScientificNotation_0130() {\n ScientificNotation x = new ScientificNotation(BigDecimal.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "Etf()\n {\n super();\n extended = 'A';\n price = 2176.33;\n number = 10;\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "private void createSPSSFile()\n\t{\n\t\t//init some variables\n\t\tString variablesText = \"VARIABLE LABELS\\r\\n\";\n\t\tString valuesText = \"\\r\\nVALUE LABELS\\r\\n\";\n\t\tint line = 1;\n\t\t\n\t\t//What weight was selected\n\t\tString language = listBoxLanguages.getItemText(listBoxLanguages.getSelectedIndex());\n\t\t//get a list of questions\n\t\tList<QuestionDef> questions = getQuestions(form.getChildren());\n\t\t//loop over the questions\n\t\tfor(QuestionDef q : questions)\n\t\t{\n\t\t\tString questionName = \"\";\n\t\t\tif(form.getITextMap().containsKey(q.getBinding()))\n\t\t\t{\n\t\t\t\tItextModel iText = form.getITextMap().get(q.getBinding());\n\t\t\t\tquestionName = iText.get(language);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tquestionName = q.getText();\n\t\t\t}\n\t\t\t\n\t\t\tquestionName = questionName.replace(\"\\\"\", \"\\\"\\\"\");\n\t\t\t//if it's too long truncate\n\t\t\tif(questionName.length() > 120)\n\t\t\t{\n\t\t\t\tquestionName = questionName.substring(0, 116) + \"...\";\n\t\t\t}\n\t\t\t//do we need to add the /\n\t\t\tif(line > 1)\n\t\t\t{\n\t\t\t\tvariablesText += \"/\";\n\t\t\t}\n\t\t\t//define the variable label\n\t\t\tvariablesText += q.getBinding() + \" \\\"\" + questionName + \"\\\"\\r\\n\";\n\t\t\t//advance our line count\n\t\t\tline++;\n\t\t\t//now handle the values\n\t\t\t//is this a select question?\n\t\t\tif(q.getDataType() == QuestionDef.QTN_TYPE_LIST_EXCLUSIVE || q.getDataType() == QuestionDef.QTN_TYPE_LIST_MULTIPLE)\n\t\t\t{\n\t\t\t\tString values = \"/\" + q.getBinding();\n\t\t\t\t//loop over the kids\n\t\t\t\tif(q.getOptions() instanceof List<?>)\n\t\t\t\t{\n\t\t\t\t\tList<Object> list = (List<Object>)(q.getOptions());\n\t\t\t\t\tfor(Object o : list)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(o instanceof OptionDef))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tOptionDef option = (OptionDef)o;\n\t\t\t\t\t\t//make sure the value is in there and fail gracefully\n\t\t\t\t\t\tif(!form.getITextMap().containsKey(option.getBinding()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString optionName = form.getITextMap().get(option.getBinding()).get(language);\n\t\t\t\t\t\toptionName = optionName.replace(\"\\\"\", \"\\\"\\\"\");\n\t\t\t\t\t\tif(optionName.length() > 120)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toptionName = optionName.substring(0, 116) + \"...\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues += \" \" + option.getDefaultValue() + \" \\\"\" + optionName + \"\\\"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//make sure there's something there\n\t\t\t\tif(!values.equals(\"/\" + questionName))\n\t\t\t\t{\n\t\t\t\t\tvalues += \"\\r\\n\";\n\t\t\t\t\tvaluesText += values;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//loop ov\n\t\t}\n\t\t//now we'll define the values\n\t\t\n\t\tspssText.setText(variablesText + valuesText);\n\t}", "@SuppressWarnings(\"unchecked\")\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n tfQuantidadeFresco = new javax.swing.JTextField();\n tfQuatidadeSalgado = new javax.swing.JTextField();\n tfPrecoFresco = new javax.swing.JTextField();\n tfPrecoSalgado = new javax.swing.JTextField();\n jbAdd = new javax.swing.JButton();\n tfEspecie = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24));\n jLabel1.setText(\"Dados das Espécies Comercializadas\");\n\n jLabel2.setText(\"Especie:\");\n\n jLabel3.setText(\"Quantidade Fresco:\");\n\n jLabel4.setText(\"Quantidade Salgado:\");\n\n jLabel5.setText(\"Preço Fresco:\");\n\n jLabel6.setText(\"Preço Salgado:\");\n\n tfQuantidadeFresco.setText(\"0\");\n\n tfQuatidadeSalgado.setText(\"0\");\n\n tfPrecoFresco.setText(\"0\");\n\n tfPrecoSalgado.setText(\"0\");\n\n jbAdd.setText(\"ADD\");\n jbAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbAddActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel6)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tfEspecie, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(tfPrecoSalgado, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(tfQuantidadeFresco, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(tfPrecoFresco, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(tfQuatidadeSalgado, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE))\n .addGap(59, 59, 59)\n .addComponent(jbAdd)\n .addGap(103, 103, 103))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tfEspecie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tfQuantidadeFresco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(tfQuatidadeSalgado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tfPrecoFresco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tfPrecoSalgado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jbAdd))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public AddNewSpeciality() {\r\n\t\tsuper(\"Add New Speciality\");\r\n\t\tthis.setLayout(new MigLayout(new LC().fill(), new AC().grow(), new AC().grow()));\r\n\r\n\t\tthis.add(new JLabel(\"Add Speciality\"), new CC().grow().alignX(\"center\"));\r\n\r\n\t\tnewSpeciality = new JTextField(25);\r\n\t\tthis.add(newSpeciality);\r\n\r\n\t\taddNewSpecialityBtn = new JButton(\"Add!\");\r\n\t\taddNewSpecialityBtn.addActionListener(this);\r\n\t\tthis.add(addNewSpecialityBtn);\r\n\r\n\t\tthis.pack();\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setVisible(true);\r\n\t}", "Etf(char extended, double price, int number)\n {\n super();\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "@Test\n public void test_ScientificNotation_0110() {\n ScientificNotation x = new ScientificNotation(0);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "public ScientificCalculate(Label mainLabel) {\n operatorType = Operator.NON;\n operatorAssigned = Operator.NON;\n this.mainLabel = mainLabel;\n }", "private JTextField getHighFrequencyTF() {\n \t\tif (highFrequencyTF == null) {\n \t\t\thighFrequencyTF = new JTextField();\n \t\t\thighFrequencyTF.setText(new Double(cutHighFrequency).toString());\n \t\t\thighFrequencyTF.setPreferredSize(new Dimension(50, 20));\n \t\t}\n \t\treturn highFrequencyTF;\n \t}", "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}", "@Test\n void scCreation() {\n StandardCalc sc = new StandardCalc();\n }", "SUP createSUP();", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "private void createUIComponents() {\n valueTextField = new JTextField();\n FixedService f = new FixedService();\n valueTextField.setText(\"£ \" + f.getPrice(\"Fixed\"));\n valueTextField.setBorder(new EmptyBorder(0, 0, 0, 0));\n }", "private JTextField getLowFrequencyTF() {\n \t\tif (lowFrequencyTF == null) {\n \t\t\tlowFrequencyTF = new JTextField();\n \t\t\tlowFrequencyTF.setText(new Double(cutLowFrequency).toString());\n \t\t\tlowFrequencyTF.setPreferredSize(new Dimension(50, 20));\n \t\t}\n \t\treturn lowFrequencyTF;\n \t}", "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}", "private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "public AddForensicsForm()\r\n\t{\r\n\t\t//sets the layout to border layout as the default layout for a jpanel is flow.\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creates the number format that stops letters being entered into certain textfields\r\n\t\tnumForm = NumberFormat.getIntegerInstance();\r\n\t\tnumForm.setGroupingUsed(false);\r\n\t\tnumForm.setMinimumIntegerDigits(0);\r\n\t\t\r\n\t\t/* Creates the form panel that will hold all the labels and text fields for the form.\r\n\t\t * It is given a grid layout so that each row will be a different section of the form e.g \r\n\t\t * what case it is a part of then on the next line the ID number of the forensic file etc.*/\r\n\t\tform = new JPanel();\r\n\t\tform.setLayout(new GridLayout(0,2,5,5));\r\n\t\tform.setBorder(new CompoundBorder(new EmptyBorder(5,5,5,5), new CompoundBorder(new EtchedBorder(), new EmptyBorder(5,5,5,5))));\r\n\t\t\r\n\t\t/* this is the label and textfield that is used to link the forensic file to the case, this has to be\r\n\t\t * done manually as new forensic files could be added for older cases as well as newer and there is no\r\n\t\t * way to predetermine what case the file is for. */\r\n\t\tevidenceLabel = new JLabel(\"Forensic File for case: \");\r\n\t\tevidenceID = new JFormattedTextField(numForm);\r\n\t\tform.add(evidenceLabel);\r\n\t\tform.add(evidenceID);\r\n\t\t\r\n\t\t/* This is the label and text field that holds the information for the ID of the forensics file\r\n\t\t * as this is unique and assigned automatically the field is set to uneditable by default\r\n\t\t * the assignID method in the forensic class is used to assign a unique ID to the forensic file*/\r\n\t\tforensicLabel = new JLabel(\"Forensics ID: \");\r\n\t\tforensicID = new JFormattedTextField();\r\n\t\tforensicID.setEditable(false);\r\n\t\tf1.assignID();\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\tform.add(forensicLabel);\r\n\t\tform.add(forensicID);\r\n\t\t\r\n\t\t/* This is the label and combobox for biological evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tbioLabel = new JLabel(\"Presence of Biological Evidence:\");\r\n\t\tbioBox = new JComboBox(confirmation);\r\n\t\tform.add(bioLabel);\r\n\t\tform.add(bioBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for print evidence e.g finger prints and toe prints, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tprintsLabel = new JLabel(\"Presence of Finger Prints:\");\r\n\t\tprintsBox = new JComboBox(confirmation);\r\n\t\tform.add(printsLabel);\r\n\t\tform.add(printsBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for Track evidence e.g boot and tire, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttracksLabel = new JLabel(\"Presence of Vehicle/Foot Tracks:\");\r\n\t\ttracksBox = new JComboBox(confirmation);\r\n\t\tform.add(tracksLabel);\r\n\t\tform.add(tracksBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for digital evidence e.g phones and tablets, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tdigitalLabel = new JLabel(\"Presence of Digital Evidence: \");\r\n\t\tdigitalBox = new JComboBox(confirmation);\r\n\t\tform.add(digitalLabel);\r\n\t\tform.add(digitalBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for tool mark evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttoolMarkLabel = new JLabel(\"Presence of tool marks\");\r\n\t\ttoolMarkBox = new JComboBox(confirmation);\r\n\t\tform.add(toolMarkLabel);\r\n\t\tform.add(toolMarkBox);\r\n\t\t\t\t\r\n\t\t/* This is the label and combobox for narcotic evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tnarcoticLabel = new JLabel(\"Presence of Narcotics: \");\r\n\t\tnarcoticBox = new JComboBox(confirmation);\r\n\t\tform.add(narcoticLabel);\r\n\t\tform.add(narcoticBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for firearm evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tfirearmLabel = new JLabel(\"Presence of Firearms: \");\r\n\t\tfirearmBox = new JComboBox(confirmation);\r\n\t\tform.add(firearmLabel);\r\n\t\tform.add(firearmBox);\r\n\t\t\r\n\t\t/* these are the buttons to cancel and sumbit and the panel that holds them\r\n\t\t * Submit uses the inner class listener to perform a function\r\n\t\t * and the cancel button is used by the window handler class to\r\n\t\t * return to the previous menu*/\r\n\t\tbuttons = new JPanel();\r\n\t\tsubmit = new JButton(\"Submit\");\r\n\t\tsubmit.addActionListener(this);\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tbuttons.add(submit);\r\n\t\tbuttons.add(cancel);\r\n\t\t\r\n\t\t//this is the container that holds both the button and form panel.\r\n\t\tcontainer = new JPanel();\r\n\t\tcontainer.setLayout(new GridLayout(0,1));\r\n\t\tcontainer.setBorder(new EmptyBorder(200, 0, 0, 0));\r\n\t\tcontainer.add(form);\r\n\t\tcontainer.add(buttons);\r\n\t\t\r\n\t\t//adds the container to the main panel.\r\n\t\tadd(container, BorderLayout.CENTER);\r\n\t}", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "GeneralTerm createGeneralTerm();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jButtonadd = new javax.swing.JButton();\n ButtonC = new javax.swing.JButton();\n jButtonmul = new javax.swing.JButton();\n jButtonsub = new javax.swing.JButton();\n jButtondiv = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n Button9 = new javax.swing.JButton();\n Button7 = new javax.swing.JButton();\n Button8 = new javax.swing.JButton();\n Button4 = new javax.swing.JButton();\n Button6 = new javax.swing.JButton();\n Button5 = new javax.swing.JButton();\n Button1 = new javax.swing.JButton();\n Button3 = new javax.swing.JButton();\n jButton12 = new javax.swing.JButton();\n Button00 = new javax.swing.JButton();\n jButtondot = new javax.swing.JButton();\n Button0 = new javax.swing.JButton();\n jButtonequls = new javax.swing.JButton();\n Buttonsin = new javax.swing.JButton();\n Buttoncos = new javax.swing.JButton();\n Buttontan = new javax.swing.JButton();\n Buttonround = new javax.swing.JButton();\n Buttonsqr = new javax.swing.JButton();\n Label1 = new javax.swing.JLabel();\n Buttonpow = new javax.swing.JButton();\n Buttonsqrt = new javax.swing.JButton();\n Buttonln = new javax.swing.JButton();\n Buttonsadd = new javax.swing.JButton();\n Buttonsign = new javax.swing.JButton();\n ButtonsinIn = new javax.swing.JButton();\n ButtoncosIn = new javax.swing.JButton();\n ButtontanIn = new javax.swing.JButton();\n ButtonE = new javax.swing.JButton();\n Buttonlog10 = new javax.swing.JButton();\n Buttonpi = new javax.swing.JButton();\n Buttonfact = new javax.swing.JButton();\n jButtoninv = new javax.swing.JButton();\n\n jButton1.setText(\"jButton1\");\n\n jButtonadd.setBackground(new java.awt.Color(204, 204, 204));\n jButtonadd.setText(\"+\");\n jButtonadd.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonadd.setOpaque(false);\n jButtonadd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n //jButtonaddActionPerformed(evt);\n }\n });\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(0, 0, 0));\n setForeground(new java.awt.Color(0, 0, 0));\n\n ButtonC.setBackground(new java.awt.Color(204, 204, 204));\n ButtonC.setText(\"C\");\n ButtonC.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n ButtonC.setOpaque(false);\n ButtonC.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonCActionPerformed(evt);\n }\n });\n\n jButtonmul.setBackground(new java.awt.Color(204, 204, 204));\n jButtonmul.setText(\"*\");\n jButtonmul.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonmul.setOpaque(false);\n jButtonmul.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonmulActionPerformed(evt);\n }\n });\n\n jButtonsub.setBackground(new java.awt.Color(204, 204, 204));\n jButtonsub.setText(\"-\");\n jButtonsub.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonsub.setOpaque(false);\n jButtonsub.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonsubActionPerformed(evt);\n }\n });\n\n jButtondiv.setBackground(new java.awt.Color(204, 204, 204));\n jButtondiv.setText(\"/\");\n jButtondiv.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtondiv.setOpaque(false);\n jButtondiv.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtondivActionPerformed(evt);\n }\n });\n\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n jTextField1.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));\n\n Button9.setBackground(new java.awt.Color(204, 204, 204));\n Button9.setText(\"9\");\n Button9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button9.setOpaque(false);\n Button9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button9ActionPerformed(evt);\n }\n });\n\n Button7.setBackground(new java.awt.Color(204, 204, 204));\n Button7.setText(\"7\");\n Button7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button7.setOpaque(false);\n Button7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button7ActionPerformed(evt);\n }\n });\n\n Button8.setBackground(new java.awt.Color(204, 204, 204));\n Button8.setText(\"8\");\n Button8.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button8.setOpaque(false);\n Button8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button8ActionPerformed(evt);\n }\n });\n\n Button4.setBackground(new java.awt.Color(204, 204, 204));\n Button4.setText(\"4\");\n Button4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button4.setOpaque(false);\n Button4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button4ActionPerformed(evt);\n }\n });\n\n Button6.setBackground(new java.awt.Color(204, 204, 204));\n Button6.setText(\"6\");\n Button6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button6.setOpaque(false);\n Button6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button6ActionPerformed(evt);\n }\n });\n\n Button5.setBackground(new java.awt.Color(204, 204, 204));\n Button5.setText(\"5\");\n Button5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button5.setOpaque(false);\n Button5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button5ActionPerformed(evt);\n }\n });\n\n Button1.setBackground(new java.awt.Color(204, 204, 204));\n Button1.setText(\"1\");\n Button1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button1.setOpaque(false);\n Button1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button1ActionPerformed(evt);\n }\n });\n\n Button3.setBackground(new java.awt.Color(204, 204, 204));\n Button3.setText(\"3\");\n Button3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button3.setOpaque(false);\n Button3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button3ActionPerformed(evt);\n }\n });\n\n jButton12.setBackground(new java.awt.Color(204, 204, 204));\n jButton12.setText(\"2\");\n jButton12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButton12.setOpaque(false);\n jButton12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton12ActionPerformed(evt);\n }\n });\n\n Button00.setBackground(new java.awt.Color(204, 204, 204));\n Button00.setText(\"00\");\n Button00.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button00.setOpaque(false);\n Button00.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button00ActionPerformed(evt);\n }\n });\n\n jButtondot.setBackground(new java.awt.Color(204, 204, 204));\n jButtondot.setText(\".\");\n jButtondot.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtondot.setOpaque(false);\n jButtondot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtondotActionPerformed(evt);\n }\n });\n\n Button0.setBackground(new java.awt.Color(204, 204, 204));\n Button0.setText(\"0\");\n Button0.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Button0.setOpaque(false);\n Button0.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Button0ActionPerformed(evt);\n }\n });\n\n jButtonequls.setBackground(new java.awt.Color(204, 204, 204));\n jButtonequls.setText(\"=\");\n jButtonequls.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonequls.setOpaque(false);\n jButtonequls.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonequlsActionPerformed(evt);\n }\n });\n\n Buttonsin.setBackground(new java.awt.Color(204, 204, 204));\n Buttonsin.setText(\"sin\");\n Buttonsin.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonsin.setOpaque(false);\n Buttonsin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsinActionPerformed(evt);\n }\n });\n\n Buttoncos.setBackground(new java.awt.Color(204, 204, 204));\n Buttoncos.setText(\"cos\");\n Buttoncos.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttoncos.setOpaque(false);\n Buttoncos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtoncosActionPerformed(evt);\n }\n });\n\n Buttontan.setBackground(new java.awt.Color(204, 204, 204));\n Buttontan.setText(\"tan\");\n Buttontan.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttontan.setOpaque(false);\n Buttontan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtontanActionPerformed(evt);\n }\n });\n\n Buttonround.setBackground(new java.awt.Color(204, 204, 204));\n Buttonround.setText(\"rnd\");\n Buttonround.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonround.setOpaque(false);\n Buttonround.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonroundActionPerformed(evt);\n }\n });\n\n Buttonsqr.setBackground(new java.awt.Color(204, 204, 204));\n Buttonsqr.setText(\"x^2\");\n Buttonsqr.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonsqr.setOpaque(false);\n Buttonsqr.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsqrActionPerformed(evt);\n }\n });\n\n Label1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n Label1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n Buttonpow.setBackground(new java.awt.Color(204, 204, 204));\n Buttonpow.setText(\"x^y\");\n Buttonpow.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonpow.setOpaque(false);\n Buttonpow.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonpowActionPerformed(evt);\n }\n });\n\n Buttonsqrt.setBackground(new java.awt.Color(204, 204, 204));\n Buttonsqrt.setText(\"sqrt\");\n Buttonsqrt.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonsqrt.setOpaque(false);\n Buttonsqrt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsqrtActionPerformed(evt);\n }\n });\n\n Buttonln.setBackground(new java.awt.Color(204, 204, 204));\n Buttonln.setText(\"ln\");\n Buttonln.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonln.setOpaque(false);\n Buttonln.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonlnActionPerformed(evt);\n }\n });\n\n Buttonsadd.setBackground(new java.awt.Color(204, 204, 204));\n Buttonsadd.setText(\"+\");\n Buttonsadd.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonsadd.setOpaque(false);\n Buttonsadd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsaddActionPerformed(evt);\n }\n });\n\n Buttonsign.setBackground(new java.awt.Color(204, 204, 204));\n Buttonsign.setText(\"+/-\");\n Buttonsign.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonsign.setOpaque(false);\n Buttonsign.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsignActionPerformed(evt);\n }\n });\n\n ButtonsinIn.setBackground(new java.awt.Color(204, 204, 204));\n ButtonsinIn.setText(\"sinIn\");\n ButtonsinIn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n ButtonsinIn.setOpaque(false);\n ButtonsinIn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonsinInActionPerformed(evt);\n }\n });\n\n ButtoncosIn.setBackground(new java.awt.Color(204, 204, 204));\n ButtoncosIn.setText(\"cosIn\");\n ButtoncosIn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n ButtoncosIn.setOpaque(false);\n ButtoncosIn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtoncosInActionPerformed(evt);\n }\n });\n\n ButtontanIn.setBackground(new java.awt.Color(204, 204, 204));\n ButtontanIn.setText(\"tanIn\");\n ButtontanIn.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n ButtontanIn.setOpaque(false);\n ButtontanIn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtontanInActionPerformed(evt);\n }\n });\n\n ButtonE.setBackground(new java.awt.Color(204, 204, 204));\n ButtonE.setText(\"e\");\n ButtonE.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n ButtonE.setOpaque(false);\n ButtonE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonEActionPerformed(evt);\n }\n });\n\n Buttonlog10.setBackground(new java.awt.Color(204, 204, 204));\n Buttonlog10.setText(\"log\");\n Buttonlog10.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonlog10.setOpaque(false);\n Buttonlog10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Buttonlog10ActionPerformed(evt);\n }\n });\n\n Buttonpi.setBackground(new java.awt.Color(204, 204, 204));\n Buttonpi.setText(\"pi\");\n Buttonpi.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonpi.setOpaque(false);\n Buttonpi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonpiActionPerformed(evt);\n }\n });\n\n Buttonfact.setBackground(new java.awt.Color(204, 204, 204));\n Buttonfact.setText(\"n!\");\n Buttonfact.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n Buttonfact.setOpaque(false);\n Buttonfact.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonfactActionPerformed(evt);\n }\n });\n\n jButtoninv.setBackground(new java.awt.Color(204, 204, 204));\n jButtoninv.setText(\"IN\");\n jButtoninv.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtoninv.setOpaque(false);\n jButtoninv.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtoninvActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(259, 259, 259)\n .addComponent(Label1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(21, 21, 21))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTextField1)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Button9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button4, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button00, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonC, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Buttonsin, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttoncos, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttontan, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonsub, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttonsign, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonE, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Button0, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtondot, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Button8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button3, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Button5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Buttonpow, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsqr, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsqrt, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonmul, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtondiv, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Buttonsadd, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(ButtontanIn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttonfact, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(ButtoncosIn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttonpi, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(ButtonsinIn, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttonlog10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(Buttonround, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Buttonln, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtoninv, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonequls, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addComponent(Label1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(ButtonC, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button9, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button4, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Button00, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Buttoncos, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsin, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Buttontan, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonsub, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsign, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonE, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Button8, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button7, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonpow, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Button5, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button6, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsqr, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Button3, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonsqrt, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Buttonsadd, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonsinIn, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonlog10, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtondiv, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtoncosIn, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonpi, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonmul, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtontanIn, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonfact, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Button0, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtondot, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonround, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Buttonln, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonequls, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtoninv, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n\n pack();\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "private void initialize() {\nframe = new JFrame();\nframe.setBounds(100, 100, 450, 300);\nframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\nframe.getContentPane().setLayout(null);\n\ntextField = new JTextField();\ntextField.setBounds(196, 51, 86, 20);\nframe.getContentPane().add(textField);\ntextField.setColumns(10);\n\nJLabel lblDegerees = new JLabel(\"Degrees\");\nlblDegerees.setBounds(87, 54, 73, 14);\nframe.getContentPane().add(lblDegerees);\nJLabel label = new JLabel(\"\");\nlabel.setBounds(157, 134, 106, 20);\nframe.getContentPane().add(label);\n\nJButton btnNewButton = new JButton(\"To celsius\");\nbtnNewButton.addActionListener(new ActionListener() {\npublic void actionPerformed(ActionEvent e) {\nval=Double.parseDouble(textField.getText());\ndouble c=((val-32)*.555);\n\nString a=String.format(\"%.1f\", c);\nlabel.setText(\" Result= \"+a);\n}\n});\nbtnNewButton.setBounds(60, 202, 119, 23);\nframe.getContentPane().add(btnNewButton);\n\nJButton btnNewButton_1 = new JButton(\"To fahrenhelt\");\nbtnNewButton_1.addActionListener(new ActionListener() {\npublic void actionPerformed(ActionEvent e) {\nval=Double.parseDouble(textField.getText());\ndouble f=(val*1.8)+32;\nString as=String.format(\"%.1f\", f);\nlabel.setText(\" Result= \"+as);\n}\n});\nbtnNewButton_1.setBounds(230, 202, 119, 23);\nframe.getContentPane().add(btnNewButton_1);\n\n\n}", "public SignaturEater()\r\n {\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Createlbl = new javax.swing.JLabel();\n templbl = new javax.swing.JLabel();\n Bplbl = new javax.swing.JLabel();\n pulselbl = new javax.swing.JLabel();\n datelbl = new javax.swing.JLabel();\n temptxt = new javax.swing.JTextField();\n BPtxt = new javax.swing.JTextField();\n pulsetxt = new javax.swing.JTextField();\n datetxt = new javax.swing.JTextField();\n CreateSavetbn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(243, 206, 206));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Createlbl.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n Createlbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Createlbl.setText(\"Create Vital Sign\");\n add(Createlbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 16, 421, -1));\n\n templbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n templbl.setText(\"Temperature:\");\n add(templbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(97, 80, -1, -1));\n\n Bplbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n Bplbl.setText(\"Blood Pressure:\");\n add(Bplbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(82, 127, -1, -1));\n\n pulselbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n pulselbl.setText(\"Pulse:\");\n add(pulselbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 174, -1, -1));\n\n datelbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n datelbl.setText(\"Date:\");\n add(datelbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(162, 221, -1, -1));\n add(temptxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 78, 105, -1));\n add(BPtxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 125, 105, -1));\n add(pulsetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 172, 105, -1));\n add(datetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 219, 105, -1));\n\n CreateSavetbn.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n CreateSavetbn.setText(\"Save\");\n CreateSavetbn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CreateSavetbnActionPerformed(evt);\n }\n });\n add(CreateSavetbn, new org.netbeans.lib.awtextra.AbsoluteConstraints(155, 263, -1, -1));\n }", "Etf(String name, String ticker, char extended, double price, int number)\n {\n super(name, ticker);\n this.extended = extended;\n this.price = price;\n this.number = number;\n }", "public void setScientificName(@NonNull String scientificName) {\n this.scientificName = scientificName;\n }", "static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }", "public Jefatura(String nom,double sue, int agno,int mes,int dia){\r\n \r\n super(nom,sue,agno,mes,dia); \r\n \r\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n mid = Mid.getText();\n bid=Bid.getText();\n days=Integer.parseInt(late.getText());\n if(days > 1 && days <10)\n {\n Fine= 50.0;\n }\n else if( days >10 && days <20)\n {\n Fine=100.0;\n \n \n }\n else if(days >20 && days < 30)\n {\n Fine = 200.0;\n }\n else\n {\n Fine= 0.0;\n }\n Fine=Fine*days;\n add();\n // fine.setText(fine.getText( Fine));\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdouble mile = Double.parseDouble(tmile.getText());\n//\t\t\t\t\tdouble km = Double.parseDouble(tkilometer.getText());\n\t\t\t\t\tdouble p = Double.parseDouble(tpound.getText());\n//\t\t\t\t\tdouble kg = Double.parseDouble(tkilogram.getText());\n\t\t\t\t\tdouble gal = Double.parseDouble(tgallon.getText());\n//\t\t\t\t\tdouble lit = Double.parseDouble(tlitre.getText());\n\t\t\t\t\tdouble f = Double.parseDouble(tfahren.getText());\n//\t\t\t\t\tdouble c = Double.parseDouble(tcelcius.getText());\n\t\t\t\t\t\n\t\t\t\t\tdouble convertedkm = Math.round((mile / 1.6) * 100.0)/100.0 ;\n\t\t\t\t\tdouble convertedkg = Math.round((p / 0.45) *100.0)/100.0;\n\t\t\t\t\tdouble convertedlit = Math.round((gal / 3.78)*100.0)/100.0;\n\t\t\t\t\tdouble convertedc = Math.round(((f - 32) / 1.8)*100.0)/100.0;\n\t\t\t\t\t\n\t\t\t\t\t\n//\t\t\t\t\tdouble convertedmile = km * 1.6;\n//\t\t\t\t\tdouble convertedpound = kg * 0.45;\n//\t\t\t\t\tdouble convertedg = lit * 3.78;\n//\t\t\t\t\tdouble convertedf = (1.8 * c) + 32;\n//\t\t\t\t\t\n\t\t\t\t\ttkilometer.setText(Double.toString(convertedkm));\n\t\t\t\t\ttkilogram.setText(Double.toString(convertedkg));\n\t\t\t\t\ttlitre.setText(Double.toString(convertedlit));\n\t\t\t\t\ttcelcius.setText(Double.toString(convertedc));\n\t\t\t\t\t\n//\t\t\t\t\ttmile.setText(Double.toString(convertedkm));\n//\t\t\t\t\ttpound.setText(Double.toString(convertedpound));\n//\t\t\t\t\ttgallon.setText(Double.toString(convertedg));\n//\t\t\t\t\ttfahren.setText(Double.toString(convertedf));\n\t\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jTextField_stockName = new javax.swing.JTextField();\n jTextField_stockDesc = new javax.swing.JTextField();\n jTextField_purPrice = new javax.swing.JTextField();\n jTextField_custPrice = new javax.swing.JTextField();\n jTextField_newQty = new javax.swing.JTextField();\n jTextField_barCode = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel_Img = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n jTextField_tax = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Stock\");\n setBackground(new java.awt.Color(102, 102, 102));\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"Orbitron\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 102, 102));\n jLabel1.setText(\"New Stock Details \");\n\n jLabel2.setText(\"Stock Name :\");\n\n jLabel3.setText(\"Description :\");\n\n jLabel4.setText(\"Purchase Price per Unit :\");\n\n jLabel5.setText(\"Customer Price per Unit :\");\n\n jLabel6.setText(\"Loaded Qty :\");\n\n jLabel7.setText(\"BarCode :\");\n\n jTextField_purPrice.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTextField_purPriceKeyPressed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Teko SemiBold\", 1, 18)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\n jLabel8.setText(\"Preview Image\");\n\n jButton1.setFont(new java.awt.Font(\"Russo One\", 0, 8)); // NOI18N\n jButton1.setForeground(new java.awt.Color(102, 102, 102));\n jButton1.setText(\"Browse\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel_Img.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel_Img.setForeground(new java.awt.Color(102, 102, 102));\n jLabel_Img.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel_Img.setText(\"None\");\n jLabel_Img.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jButton2.setText(\"Submit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Teko SemiBold\", 1, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(255, 51, 0));\n jButton3.setText(\"X\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"% of GST :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField_stockName, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField_stockDesc, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField_barCode, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextField_tax, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField_newQty, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField_custPrice, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField_purPrice, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3))\n .addComponent(jLabel_Img, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(207, 207, 207)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(jTextField_stockName)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(jTextField_stockDesc)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField_purPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField_custPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField_newQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jTextField_tax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jTextField_barCode, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(jButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_Img, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n );\n\n pack();\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Quantity createQuantity();", "public Exhibitions(String coords,String name, String artisticForm, String price) {\r\n super(coords, name);\r\n this.artisticForm = artisticForm;\r\n this.price = price;\r\n }", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public void setNewValues(){\n questionT = qMean.getText();\n phoneT = pMean.getText();\n doorT = dMean.getText();\n time = simTime.getText();\n simulation.setTime(time);\n simulation.setD(doorT);\n simulation.setP(phoneT);\n simulation.setQ(questionT);\n }", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(new GridLayout(0, 1, 0, 0));\n\t\t\n\t\tJLabel lblDigiteAAltura = new JLabel(\"Digite a altura\");\n\t\tframe.getContentPane().add(lblDigiteAAltura);\n\t\t\n\t\ttextField = new JTextField();\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblDigiteOPeso = new JLabel(\"Digite o peso\");\n\t\tframe.getContentPane().add(lblDigiteOPeso);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\tframe.getContentPane().add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Calcular\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField.getText();\n\t\t\t\ttextField_1.getText();\n\t\t\t\tDouble altura = Double.valueOf(textField.getText());\n\t\t\t\tDouble peso = Double.valueOf(textField_1.getText());\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Seu Indice de massa corporal é: \" + String.format(\"%.2f\", peso / (altura*altura)), null, JOptionPane.INFORMATION_MESSAGE);\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton);\n\t}", "public JDialogParticleAnalysisNew() { }", "public void actionPerformed(ActionEvent e) {\n if (temperatureCOrF.getText().equalsIgnoreCase(\"Celcius\")) {\r\n String fahrenheit;\r\n fahrenheit= temperatureNumber.getText();\r\n double temp = Double.parseDouble(fahrenheit);\r\n output = (5 * (temp-32.0))/9;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Celcius temp: \"+ output+ \" degrees\");\r\n } \r\n \r\n else if (temperatureCOrF.getText().equalsIgnoreCase(\"fahrenheit\")) {\r\n String celcius;\r\n celcius= temperatureNumber.getText();\r\n double temp = Double.parseDouble(celcius);\r\n output = (temp * 1.8)+32.0;\r\n output = Math.round(output *100) / 100.0;\r\n JOptionPane.showMessageDialog(null, \"The equivalent Fahrenheit temp: \"+ output+ \" degrees\");\r\n }\r\n \r\n else {\r\n JOptionPane.showMessageDialog(null, \"invalid temp Scale entered\");\r\n\r\n \r\n }\r\n \r\n \r\n }", "private void createDog() {\n String weight = this.weight.getText();\n try {\n int intWeight = Integer.parseInt(weight);\n backToGui();\n } catch (NumberFormatException ex) {\n createFrame(\"Weight Input Not Valid\");\n } catch (WeightException w) {\n createFrame(\"Weight must be between 0 and 200\");\n }\n revalidate();\n repaint();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Input\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tlblNewLabel.setBounds(65, 23, 81, 23);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(138, 23, 150, 23);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Input Scale\");\r\n\t\tlblNewLabel_1.setBounds(10, 91, 69, 23);\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblOutputScale = new JLabel(\"Output Scale\");\r\n\t\tlblOutputScale.setBounds(338, 91, 69, 23);\r\n\t\tframe.getContentPane().add(lblOutputScale);\r\n\t\t\r\n\t\tButtonGroup G1=new ButtonGroup();\r\n\t\tButtonGroup G2=new ButtonGroup();\r\n\t\tJRadioButton rdbtnNewRadioButton = new JRadioButton(\"Celcius\");\r\n\t\trdbtnNewRadioButton.setBounds(10, 139, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnNewRadioButton);\r\n\t\t\r\n\t\tJRadioButton rdbtnFah = new JRadioButton(\"Fahrenheit\");\r\n\t\trdbtnFah.setBounds(10, 169, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnFah);\r\n\t\t\r\n\t\tJRadioButton rdbtnKelvin = new JRadioButton(\"Kelvin\");\r\n\t\trdbtnKelvin.setBounds(10, 198, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnKelvin);\r\n\t\t\r\n\t\tJRadioButton radioButton_2 = new JRadioButton(\"Celcius\");\r\n\t\tradioButton_2.setBounds(298, 139, 109, 23);\r\n\t\tframe.getContentPane().add(radioButton_2);\r\n\t\t\r\n\t\tJRadioButton rdbtnFahrenheit = new JRadioButton(\"Fahrenheit\");\r\n\t\trdbtnFahrenheit.setBounds(298, 169, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnFahrenheit);\r\n\t\t\r\n\t\tJRadioButton rdbtnKelvin_1 = new JRadioButton(\"Kelvin\");\r\n\t\trdbtnKelvin_1.setBounds(298, 198, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnKelvin_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"\");\r\n\t\tlblNewLabel_3.setBounds(156, 228, 87, 18);\r\n\t\tframe.getContentPane().add(lblNewLabel_3);\r\n\t\t\r\n\t\tG1.add(rdbtnNewRadioButton);\r\n\t\tG1.add(rdbtnFah);\r\n\t\tG1.add(rdbtnKelvin);\r\n\t\tG2.add(radioButton_2);\r\n\t\tG2.add(rdbtnFahrenheit);\r\n\t\tG2.add(rdbtnKelvin_1);\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"\");\r\n\t\tlblNewLabel_4.setBounds(331, 50, 46, 14);\r\n\t\tframe.getContentPane().add(lblNewLabel_4);\r\n\t\t\r\n\t\t\r\n\t\trdbtnNewRadioButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t\t G2.clearSelection(); \r\n\t \r\n\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t});\r\n\t\tradioButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfloat a,r;\r\n\t\t\t\t if (rdbtnNewRadioButton.isSelected()) { \r\n\t\t\t\t\t \r\n\t\t\t\t\t lblNewLabel_3.setText(textField.getText()); \r\n\t }\r\n\t\t\t\t else if(rdbtnFah.isSelected()) {\r\n\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t r=(a-32)*5/9;\r\n\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t }\r\n\t\t\t else if(rdbtnKelvin.isSelected()) {\r\n\t\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t\t r=a-273.15f;\r\n\t\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t \r\n\t\t\t\t \r\n\t\t\t}\r\n\t\t\t \r\n\r\n\t\t\t});\r\n\t\t\r\n\t\trdbtnFah.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tG2.clearSelection();\r\n\t\t\t}\r\n\r\n\t\t\t});\r\n\t\trdbtnFahrenheit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfloat a,r;\r\n\t\t\t\t if (rdbtnFah.isSelected()) { \r\n\t\t\t\t\t \r\n\t\t\t\t\t lblNewLabel_3.setText(textField.getText()); \r\n\t }\r\n\t\t\t\t else if(rdbtnNewRadioButton.isSelected()) {\r\n\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t r=a*9/5+32;\r\n\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t }\r\n\t\t\t else if(rdbtnKelvin.isSelected()) {\r\n\t\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t\t r=(a-273.15f) * 9/5 + 32;\r\n\t\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t}\r\n\r\n\t\t\t});\r\n\t\trdbtnKelvin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tG2.clearSelection();\r\n\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\r\n\t\trdbtnKelvin_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfloat a,r;\r\n\t\t\t\t if (rdbtnKelvin.isSelected()) { \r\n\t\t\t\t\t \r\n\t\t\t\t\t lblNewLabel_3.setText(textField.getText()); \r\n\t }\r\n\t\t\t\t else if(rdbtnFah.isSelected()) {\r\n\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t r=(a-32)*5/9+273.15f;\r\n\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t }\r\n\t\t\t else if(rdbtnNewRadioButton.isSelected()) {\r\n\t\t\t\t\t\t a=Float.parseFloat(textField.getText());\r\n\t\t\t\t\t\t r=a+273.15f;\r\n\t\t\t\t\t\t lblNewLabel_3.setText(String.valueOf(r));\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t});\r\n\t\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Output\");\r\n\t\tlblNewLabel_2.setBounds(85, 228, 61, 23);\r\n\t\tframe.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString title = textTitle.getText();\n\t\t\t\tString producer = txtProducer.getText();\n\t\t\t\tString price = txtPricePerBox.getText();\n\t\t\t\tString quantity = txtQuantityPerBox.getText();\n\t\t\t\t\n\t\t\t\tif(title.isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Title is empty\");\n\t\t\t\t\treturn;\t\n\t\t\t\t}\n\t\t\t\tif(producer.isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Producer is empty\");\n\t\t\t\t\treturn;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(price.isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Price is empty\");\n\t\t\t\t\treturn;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(quantity.isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Quntity is empty\");\n\t\t\t\t\treturn;\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Pharmacy p = new Pharmacy(0, title, address);\n\t\t\t\tMedicine m = new Medicine(0,title,producer,Double.parseDouble(price),Integer.parseInt(quantity));\n\t\t\t\tboolean res = MedicineDataContext.getInstance().addMedicine(m);\n\t\t\t\t\n\t\t\t\tif(res){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"S U C C\");\n\t\t\t\t\tNewMedicineWindow.this.setVisible(false);\n\t\t\t\t\tNewMedicineWindow.this.dispose();\n\t\t\t\t}\n\t\t\t}", "public void createExpense(ExpenseBE expenseBE) {\n\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\n }", "public static void addNewSupplier() {\r\n\t\tSystem.out.println(\"Please enter the following supplier details:\");\r\n\r\n\t\tSystem.out.println(\"Supplier Name:\");\r\n\r\n\t\tString supName = Validation.stringNoIntsValidation();\r\n\r\n\t\tSystem.out.println(\"---Supplier Address details---\");\r\n\r\n\r\n\t\tAddress supAddress = addAddress();\r\n\r\n\t\tint numOfEnums = EnumSet.allOf(SupRegion.class).size();\r\n\r\n\t\tPrintMethods.printEnumList(numOfEnums);\r\n\r\n\t\tSystem.out.println(\"\\nPlease choose the region of your supplier:\");\r\n\r\n\t\tint regionChoice = Validation.listValidation(numOfEnums);\r\n\r\n\t\tSupRegion supRegion = SupRegion.values()[regionChoice-1];\r\n\r\n\r\n\t\tArrayList<Product> supProducts = addProduct();\r\n\t\t\r\n\t\tFeedback tempFeedback = new Feedback(null, null, null);\r\n\t\tArrayList<Feedback> supFeedback = new ArrayList<Feedback>();\r\n\t\tsupFeedback.add(tempFeedback);\r\n\r\n\t\tRandom supCodeRandom = new Random(100);\r\n\t\tint supCode = supCodeRandom.nextInt();\r\n\r\n\t\tSupplier tempSupplier = new Supplier(supCode, supName, supAddress, supRegion, supProducts, supFeedback);\r\n\r\n\t\tPart02Tester.supArray.add(tempSupplier);\r\n\t}", "QualityRisk createQualityRisk();", "@Test\n public void testSetNumberDouble() {\n factory.setNumber(0.25).setCurrency(\"EUR\");\n assertEquals(Geldbetrag.valueOf(\"0.25 EUR\"), factory.create());\n }", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public Theory(double n){\r\n\t\tthis.n= n;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "Elevage createElevage();", "private void initialize() {\n setFrame(new JFrame());\n getFrame().setBounds(100, 100, 310, 270);\n getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n getFrame().getContentPane().setLayout(null);\n\n JLabel lblTitle = new JLabel(\"Crear nuevo profesor\");\n lblTitle.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 13));\n lblTitle.setBounds(10, 11, 264, 16);\n getFrame().getContentPane().add(lblTitle);\n\n JLabel lblNombre = new JLabel(\"Nombre\");\n lblNombre.setBounds(10, 36, 46, 14);\n getFrame().getContentPane().add(lblNombre);\n\n textNombre = new JTextField();\n textNombre.setBounds(66, 33, 86, 20);\n getFrame().getContentPane().add(textNombre);\n textNombre.setColumns(10);\n\n JLabel lbDni = new JLabel(\"DNI\");\n lbDni.setBounds(10, 61, 46, 14);\n getFrame().getContentPane().add(lbDni);\n\n textDni = new JTextField();\n textDni.setBounds(66, 58, 86, 20);\n getFrame().getContentPane().add(textDni);\n textDni.setColumns(10);\n\n JLabel lblEdad = new JLabel(\"Edad\");\n lblEdad.setBounds(10, 86, 46, 14);\n getFrame().getContentPane().add(lblEdad);\n\n textEdad = new JTextField();\n textEdad.setBounds(66, 83, 86, 20);\n getFrame().getContentPane().add(textEdad);\n textEdad.setColumns(10);\n\n JLabel lbCurso = new JLabel(\"Curso\");\n lbCurso.setBounds(10, 111, 46, 14);\n getFrame().getContentPane().add(lbCurso);\n\n textCurso = new JTextField();\n textCurso.setBounds(66, 108, 86, 20);\n getFrame().getContentPane().add(textCurso);\n textCurso.setColumns(10);\n\n JLabel lblSueldo = new JLabel(\"Sueldo\");\n lblSueldo.setBounds(10, 136, 46, 14);\n getFrame().getContentPane().add(lblSueldo);\n\n textSueldo = new JTextField();\n textSueldo.setBounds(66, 133, 86, 20);\n getFrame().getContentPane().add(textSueldo);\n textSueldo.setColumns(10);\n\n JLabel lblNewLabel = new JLabel(\"Todos los campos son obligatorios\");\n lblNewLabel.setForeground(Color.RED);\n lblNewLabel.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 11));\n lblNewLabel.setBounds(10, 161, 264, 14);\n getFrame().getContentPane().add(lblNewLabel);\n\n JButton btnCrear = new JButton(\"Crear profesor\");\n btnCrear.setForeground(Color.WHITE);\n btnCrear.setBackground(Color.DARK_GRAY);\n btnCrear.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnCrear.addActionListener(new ActionListener() {\n\n /**\n * Al presionar el boton 'btnCrear' este crea un objeto de tipo Profesor y\n * accede la informacion dentreo de cada JTextField() asignanco al objeto creado\n * estos valores obtenidos.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = new Profesor();\n p.setNombre(textNombre.getText().toUpperCase());\n p.setDni(textDni.getText().toUpperCase());\n p.setEdad(Integer.parseInt(textEdad.getText()));\n p.setCurso(Integer.parseInt(textCurso.getText()));\n p.setSueldo(Integer.parseInt(textSueldo.getText()));\n try {\n Ficheros.guardar(p, Ficheros.D_PROFESORES);\n } catch (IOException e2) {\n System.out.println(\"Fichero no encontrado - guardarAlumno()\");\n }\n }\n });\n btnCrear.setBounds(10, 186, 119, 33);\n getFrame().getContentPane().add(btnCrear);\n\n JButton btnMostrar = new JButton(\"Mostrar profesores\");\n btnMostrar.setForeground(Color.WHITE);\n btnMostrar.setBackground(Color.DARK_GRAY);\n btnMostrar.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnMostrar.setBounds(139, 186, 145, 33);\n btnMostrar.addActionListener(new ActionListener() {\n /**\n * Muestra los profesores almacenados en los ficheros desde Class Ficheros.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = null;\n System.out.println(\"---- Profesores ----\");\n Ficheros.leerFicheros(p, Ficheros.D_PROFESORES);\n }\n });\n getFrame().getContentPane().add(btnMostrar);\n }", "public SurchargeCalculator() {\r\n initComponents();\r\n try {\r\n \tboolean prod = AppConfig.isProduction();\r\n \tif (prod) {\r\n \t\tbtnSaveSimulation.setVisible(false);\r\n \t}\r\n }\r\n catch (Exception e) {\r\n }\r\n }", "private JTextField getJTextField2222() {\r\n\t\tif (jTextField2222 == null) {\r\n\t\t\tjTextField2222 = new JTextField();\r\n\t\t\tjTextField2222.setBounds(new Rectangle(186, 112, 33, 20));\r\n\t\t\tjTextField2222.setText(\"0.05\");\r\n\t\t}\r\n\t\treturn jTextField2222;\r\n\t}", "Secuencia createSecuencia();", "public SmartFormater() {\n\t\t\tsimpleFormats[0] = new DecimalFormat(\"###0\");\n\t\t\tsimpleFormats[1] = new DecimalFormat(\"###0.#\");\n\t\t\tsimpleFormats[2] = new DecimalFormat(\"###0.##\");\n\t\t\tsimpleFormats[3] = new DecimalFormat(\"###0.###\");\n\t\t\tsimpleFormats[4] = new DecimalFormat(\"###0.####\");\n\n\t\t\tscientificFormats[0] = new DecimalFormat(\"#.E0\");\n\t\t\tscientificFormats[1] = new DecimalFormat(\"#.#E0\");\n\t\t\tscientificFormats[2] = new DecimalFormat(\"#.##E0\");\n\t\t\tscientificFormats[3] = new DecimalFormat(\"#.###E0\");\n\t\t\tscientificFormats[4] = new DecimalFormat(\"#.####E0\");\n\t\t}", "private void jButton_SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_SaveActionPerformed\n // TODO add your handling code here:\n saveToFile();\n //new FittingCriteria(this.digPopGUIInformation, this.currentMarkovChainId).setVisible(true);\n new StepThree(this.digPopGUIInformation).setVisible(true);\n dispose();\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\tdouble celsius;\r\n\t\tcelsius = Double.parseDouble(temp.getText());//Recuperation de la valeur dans le champ de texte\r\n\t\tcelsius = (celsius * (1.8)) + 32;//Conversion celsius a fahrenheit\r\n\t\tfar.setText(\"\"+celsius+\" Fahrenheit\");\r\n\t//Modifie le texte Fahrenheit pou le modifier et afficher la temperature en Fahrenheit\r\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Statistics();\n\t\t\t\t\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(name.equals(\"\") ||price.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Nu au fost completate toate casutele pentru a se putea realiza CREATE!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.createMenuItem(nou);\n\t\t\t\tview.updateList(name);\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu se poate adauga produsul deoarece acesta EXISTA deja!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString[] v=new String[6];\r\n\t\t\t\tv[0] =String.valueOf(DBInsert.getMaxNum(Login.c,\"product\",\"p_num\")+1);\r\n\t\t\t\tv[1] =tfName.getText();\r\n\t\t\t\tv[2] =tfPrice.getText();\r\n\t\t\t\tv[3] =tfPrimeCost.getText();\r\n\t\t\t\tv[4] = (String)vSupplier.get(cbSupplier.getSelectedIndex());\r\n\t\t\t\tv[5] =tfType.getText();\r\n\t\t\t\tDBInsert.DBInsert(Login.c, \"product\", strCols, v);\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"상품 등록 완료\");\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\t\tnew Add_Lecturer();\n\t\t\t\t\t\n\t\t\t\t}", "public AwardAmountFNADistributionForm() {\r\n initComponents();\r\n }", "Calcul createCalcul();", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }", "@Test\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.numberInput(\"2CVo`z1\", (CharSequence) \"2CVo`z1\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }", "public void CrearGrafico() {\r\n String ret = \"\";\r\n String NombreClase = this.generic.getClass().getSimpleName();\r\n ret += \"public \" + NombreClase + \" Crear\" + NombreClase + \"(int Serie) {\\n\";\r\n System.out.println(\"public static \" + NombreClase + \" Crear\" + NombreClase + \"(int Serie) {\");\r\n Field[] declaredFields = this.DeclaredFields;\r\n int NumVariables = this.DeclaredFields.length;\r\n for (int i = 0; i < NumVariables; i++) {\r\n boolean notParseable = false;\r\n String Tipo = declaredFields[i].getType().getSimpleName();\r\n String Dato = declaredFields[i].getName();\r\n switch (Tipo) {\r\n case \"int\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(\"(int) \" + this.SpinnerName + this.NumSpinners + \".getValue();\");\r\n NumSpinners++;\r\n break;\r\n case \"double\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(\"Double.parseDouble(\" + this.getDoubleTextFieldName() + \".getText()\" + \")\");\r\n break;\r\n case \"String\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(this.StrTextFieldName + \".getText();\");\r\n break;\r\n case \"boolean\":\r\n notParseable = false;\r\n System.out.print(\"int op = \");\r\n System.out.println(\"JOptionPane.showConfirmDialog(null, \\\"\" + Dato + \"?\\\");\");\r\n System.out.println(Tipo + \" \" + Dato + \" = \" + \"(op==0);\");\r\n break;\r\n case \"Date\":\r\n notParseable = false;\r\n System.out.println(Tipo + \" \" + Dato + \" = new Date();\");\r\n break;\r\n default:\r\n notParseable = false;\r\n break;\r\n }\r\n // char 34 es ( \" ), tuve que usar char porque no se como poner comillas en los souts...\r\n if (notParseable) {\r\n System.out.print((char) 34);\r\n System.out.print(Dato + \": \");\r\n System.out.print((char) 34);\r\n System.out.println(\"));\");\r\n }\r\n }\r\n NumVariables = this.SuperDeclaredFields.length;\r\n for (int i = 0; i < NumVariables; i++) {\r\n boolean notParseable = false;\r\n String Tipo = this.SuperDeclaredFields[i].getType().getSimpleName();\r\n String Dato = this.SuperDeclaredFields[i].getName();\r\n switch (Tipo) {\r\n case \"int\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(\"(int) \" + this.SpinnerName + this.NumSpinners + \".getValue();\");\r\n NumSpinners++;\r\n break;\r\n case \"double\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(\"Double.parseDouble(\" + this.getDoubleTextFieldName() + \".getText()\" + \");\");\r\n break;\r\n case \"String\":\r\n System.out.print(Tipo + \" \" + Dato + \" = \");\r\n System.out.println(this.StrTextFieldName + \".getText();\");\r\n break;\r\n case \"boolean\":\r\n notParseable = false;\r\n System.out.print(\"int op = \");\r\n System.out.println(\"JOptionPane.showConfirmDialog(null, \\\"\" + Dato + \"?\\\");\");\r\n System.out.println(Tipo + \" \" + Dato + \" = \" + \"(op==0);\");\r\n break;\r\n case \"Date\":\r\n notParseable = false;\r\n System.out.println(Tipo + \" \" + Dato + \" = new Date();\");\r\n break;\r\n default:\r\n notParseable = false;\r\n break;\r\n }\r\n // char 34 es ( \" ), tuve que usar char porque no se como poner comillas en los souts...\r\n if (notParseable) {\r\n System.out.print((char) 34);\r\n System.out.print(Dato + \": \");\r\n System.out.print((char) 34);\r\n System.out.println(\"));\");\r\n }\r\n }\r\n\r\n System.out.print(NombreClase + \" c = new \" + NombreClase + \"(\");\r\n /*\r\n -------------OJO----------------------\r\n Aqui no pude hacer que tirara los valores que queria en el orden que es, si alguien quiere Arreglarlo, digame.\r\n En la parte que es: \r\n \r\n NombreClase c = new NombreClase();\r\n \r\n Poner Ctrl+Space y enter en medio de los parentesis y Netbeans Automaticamente hace el que tiene mas sentido\r\n --------------------------------------\r\n */\r\n System.out.println(\");\");\r\n System.out.println(\"return c;\");\r\n System.out.println(\"}\");\r\n System.out.println(\"\");\r\n }", "public void term()\n \t{\n \t\tTechEditWizardData data = wizard.getTechEditData();\n \t\tdata.setGateLength(TextUtils.atof(length.getText()));\n\t\tdata.setGateWidth(TextUtils.atof(width.getText()));\n \t\tdata.setGateContactSpacing(TextUtils.atof(contactSpacing.getText()));\n \t\tdata.setGateSpacing(TextUtils.atof(spacing.getText()));\n \t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}", "static public Thief createThief () {\n System.out.println(\"Enter the name of your thief : \");\n Scanner sc = new Scanner(System.in);\n String nameCharacter = sc.next();\n\n // enter and get the HP value of the character\n System.out.println(\"Enter the healpoint of your thief : \");\n Scanner scan = new Scanner(System.in);\n String healPointCharacter = scan.next();\n int hpCharacter = Integer.parseInt(healPointCharacter);\n\n // get the power value\n System.out.println(\"Enter the power of your thief : \");\n Scanner sca = new Scanner(System.in);\n String powerCharacter = sca.next();\n int pcCharacter = Integer.parseInt(powerCharacter);\n\n\n // get the initiative (turn order)\n System.out.println(\"Enter the initiative of your thief : \");\n Scanner scann = new Scanner(System.in);\n String initiativeCharacter = scann.next();\n int iniCharacter = Integer.parseInt(initiativeCharacter);\n\n System.out.println(\"Enter the critical hit probability of your thief : \");\n Scanner scanS = new Scanner(System.in);\n String criticalDamage = scann.next();\n int ccDmg = Integer.parseInt(criticalDamage);\n\n Thief createThief = new Thief(nameCharacter, pcCharacter, hpCharacter, iniCharacter, ccDmg);\n System.out.println(\"Your thief has been created with success!\");\n\n return createThief;\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n salary = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n totalDeductions = new javax.swing.JTextField();\n totalSalary = new javax.swing.JTextField();\n jSeparator2 = new javax.swing.JSeparator();\n actualSalary = new javax.swing.JTextField();\n terminationPayment = new javax.swing.JTextField();\n health = new javax.swing.JTextField();\n bonuses = new javax.swing.JTextField();\n pension = new javax.swing.JTextField();\n addRegistry = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel13 = new javax.swing.JLabel();\n date = new com.toedter.calendar.JDateChooser();\n jLabel14 = new javax.swing.JLabel();\n panelVariable = new javax.swing.JPanel();\n labelTotalIncomes = new javax.swing.JLabel();\n totalIncomes = new javax.swing.JTextField();\n labelTransportAssistance = new javax.swing.JLabel();\n transportAssistance = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n jSeparator5 = new javax.swing.JSeparator();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Salario básico\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 360, 100, 30));\n\n salary.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salaryActionPerformed(evt);\n }\n });\n add(salary, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 360, 144, 40));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Cesantias\");\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 110, 99, 30));\n add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 800, 15));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Total Ingresos y Deducciones del mes de marzo\");\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 60, 490, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"Bonos \");\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 190, 99, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel5.setText(\"Pension\");\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 190, 99, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel6.setText(\"Salud\");\n add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 150, 99, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel7.setText(\"Deducciones\");\n add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 110, 99, 30));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"Ingresos\");\n add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel9.setText(\"Total Deducciones\");\n add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 240, 110, 30));\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel10.setText(\"Devengado Actual\");\n add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 150, 120, 30));\n\n totalDeductions.setEditable(false);\n totalDeductions.setBackground(new java.awt.Color(0, 204, 51));\n totalDeductions.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n totalDeductions.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(totalDeductions, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 240, 130, 30));\n\n totalSalary.setEditable(false);\n totalSalary.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n totalSalary.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(totalSalary, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 360, 240, 40));\n add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 330, 800, 10));\n\n actualSalary.setEditable(false);\n actualSalary.setBackground(new java.awt.Color(0, 204, 51));\n actualSalary.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n actualSalary.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(actualSalary, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 150, 130, 30));\n\n terminationPayment.setEditable(false);\n terminationPayment.setBackground(new java.awt.Color(0, 204, 51));\n terminationPayment.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n terminationPayment.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(terminationPayment, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 150, 130, 30));\n\n health.setEditable(false);\n health.setBackground(new java.awt.Color(0, 204, 51));\n health.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n health.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(health, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 150, 130, 30));\n\n bonuses.setEditable(false);\n bonuses.setBackground(new java.awt.Color(0, 204, 51));\n bonuses.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n bonuses.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n add(bonuses, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 190, 130, 30));\n\n pension.setEditable(false);\n pension.setBackground(new java.awt.Color(0, 204, 51));\n pension.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n pension.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pension.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pensionActionPerformed(evt);\n }\n });\n add(pension, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 190, 130, 30));\n\n addRegistry.setBackground(new java.awt.Color(0, 204, 51));\n addRegistry.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/icons8_Clock_64px_1.png\"))); // NOI18N\n addRegistry.setText(\"Agregar Jornada\");\n addRegistry.setBorderPainted(false);\n addRegistry.setFocusPainted(false);\n addRegistry.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addRegistryActionPerformed(evt);\n }\n });\n add(addRegistry, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 440, 220, 60));\n\n jButton2.setBackground(new java.awt.Color(0, 204, 51));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/icons8_Money_Bag_48px.png\"))); // NOI18N\n jButton2.setText(\" Ingresos Adicionales\");\n jButton2.setBorderPainted(false);\n jButton2.setFocusPainted(false);\n jButton2.setMargin(new java.awt.Insets(2, 10, 2, 10));\n add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 440, 230, 60));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel13.setText(\"$\");\n add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, 20, 30));\n\n date.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n datePropertyChange(evt);\n }\n });\n date.addVetoableChangeListener(new java.beans.VetoableChangeListener() {\n public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {\n dateVetoableChange(evt);\n }\n });\n add(date, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 50, 110, 30));\n\n jLabel14.setText(\"Fecha de pago\");\n add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 80, -1, -1));\n\n panelVariable.setBackground(new java.awt.Color(255, 255, 255));\n panelVariable.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n labelTotalIncomes.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n labelTotalIncomes.setText(\"Total Ingresos\");\n panelVariable.add(labelTotalIncomes, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, 99, 30));\n\n totalIncomes.setEditable(false);\n totalIncomes.setBackground(new java.awt.Color(0, 204, 51));\n totalIncomes.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n totalIncomes.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n panelVariable.add(totalIncomes, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 60, 130, 30));\n\n labelTransportAssistance.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n labelTransportAssistance.setText(\"Auxilio de transporte\");\n panelVariable.add(labelTransportAssistance, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 20, 120, 30));\n\n transportAssistance.setEditable(false);\n transportAssistance.setBackground(new java.awt.Color(0, 204, 51));\n transportAssistance.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n transportAssistance.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n panelVariable.add(transportAssistance, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 20, 130, 30));\n\n add(panelVariable, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 220, 300, 100));\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel11.setText(\"Neto a recibir: \");\n add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 360, 110, 30));\n\n jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);\n add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 20, 300));\n\n jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);\n add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 30, 20, 300));\n add(jSeparator5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 800, 240));\n }", "public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n instRateClassTypesController.saveFormData();\r\n instituteRatesController.saveFormData(); \r\n }", "public Theory(double n) {\r\n this.n = n;\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\tGameSpec gs = new GameSpec();\n\t\t\t\tgs.minFishRelease = (int) Integer.parseInt(mintim.getText());\n\t\t\t\tgs.maxFishRelease = (int) Integer.parseInt(maxtim.getText());\n\t\t\t\tgs.good.soundFile = goodSoundTF.getText();\n\t\t\t\tgs.bad.soundFile = badSoundTF.getText();\n\t\t\t\tgs.stereo = (soundtype.getSelectedItem().toString().equals(\"Stereo\"));\n\t\t\t\tgs.good.throbRate = (int) Integer.parseInt(goodVisualHzTF.getText());\n\t\t\t\tgs.bad.throbRate = (int) Integer.parseInt(badVisualHzTF.getText());\t\n\t\t\t\tgs.maxThrobSize = (int) Integer.parseInt(maxSizeTF.getText());\n\t\t\t\tgs.minThrobSize = (int) Integer.parseInt(minSizeTF.getText());\n\t\t\t\tgs.backgroundSpeed = (double) Double.parseDouble(backgroundSpeed.getText());\n\t\t\t\tgs.channelWidth = (int) Integer.parseInt(cWidth.getText());\n\t\t\t\tString volumeLevel = (vol.getSelectedItem()).toString();\n\t\t\t if (volumeLevel.equals(\"low\")) {\n\t\t\t \tgs.bgSound = \"water1.wav\";\n\t\t\t }else if (volumeLevel.equals(\"med\")){\n\t\t\t \tgs.bgSound = \"water2.wav\";\n\t\t\t } else {\n\t\t\t \tgs.bgSound = \"water3.wav\";\n\t\t\t }\n\t\t\t gs.bgSound = \"sounds/background/\" + gs.bgSound;\n\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\tint numberOfFish = Integer.parseInt(numactors.getText());\n\t\t\t\tSystem.out.println(gs.toScript());\n\t\t\t\tsgen.generate(gs,numberOfFish);\n\t\t\t\t\n\t\t\t\t// here we generate a report for the user, so they know what's happening\n\t\t\t\tjtextarea.append(gs.toScript());\n\t\t\t\tjtextarea.append(\"GENERATE \"+numberOfFish+\" events\\n\");\n\t\t\t\t\n\n\t\t\t}", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t String number = tfNumber.getText();\n\t\t Float a = new Float(number);\n\t\t \n\t\t boolean allRight = new TestJDBC().amend_money(name, a);\n\t\t if(allRight) {\n\t\t \tnew Gui().customer_frame(name);\n\t\t \tJFrame f2 = Judge.showOK(number+\"yuan havd been added in your acount!\");\n\t\t \tf2.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t \tf2.setVisible(true);\n\t\t }else {\n\t\t \tnew Gui().customer_frame(name);\n\t\t \tJFrame f2 = Judge.showNO(\"Fail to add money,there must be something wrong!\");\n\t\t \tf2.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t \tf2.setVisible(true);\n\t\t }\n\t\t f1.dispose();\n\t\t \n\t\t\t}", "@When(\"The User clicks on Create Universal Image button and Enters valid data in the popup and Clicks on Submit Button\")\n\t\tpublic void ee() throws InterruptedException, FileNotFoundException, IOException {\n\t homePage.UIaddpage();\n\t homePage.UTCreate();\n\t // homePage.UIaddsbmitpage();\n\t\t}", "public ValidFrequencyForm() {\r\n initComponents();\r\n }", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n keep = true;\n t1.addNewEntry(String.format(\"%.4g\", Math.toDegrees(phi)), String.format(\"%.4g\", Math.toDegrees(alpha)), String.format(\"%.4g\",rho),regimed, String.format(\"%.4g\", Math.toDegrees(phii[1])), String.format(\"%.4g\", Math.toDegrees(phii[2])), String.format(\"%.4g\", Math.toDegrees(phii[3])), String.format(\"%.4g\", Math.toDegrees(deltai[1])), String.format(\"%.4g\", Math.toDegrees(deltai[2])), String.format(\"%.4g\", Math.toDegrees(deltai[3])), gammapo, sense, phipo, deltao, vectorN, vectorvg); dial.dispose();\n }", "private javax.swing.JTextField getRestantesTF() {\n\t\tif(restantesTF == null) {\n\t\t\trestantesTF = new javax.swing.JTextField();\n\t\t\trestantesTF.setPreferredSize(new java.awt.Dimension(30,20));\n\t\t\trestantesTF.setEditable(false);\n\t\t\trestantesTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\trestantesTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\trestantesTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\trestantesTF.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\trestantesTF.setFocusable(false);\n\t\t}\n\t\treturn restantesTF;\n\t}", "@Test\n public void test00() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass('u', 4.9E-324);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }", "private void srediFormu() {\n NumberFormatter formatter = new NumberFormatter(NumberFormat.getInstance());\n\n formatter.setMinimum(1);\n formatter.setMaximum(10000000);\n formatter.setAllowsInvalid(false);\n\n jftxtMinVrednost.setFormatterFactory(new DefaultFormatterFactory(formatter));\n jftfMaksVrednost.setFormatterFactory(new DefaultFormatterFactory(formatter));\n\n List<PoslovniPartner> lpp = new ArrayList<>();\n try {\n lpp = Kontroler.vratiInstancu().vratiPoslovnePartnere();\n } catch (Exception ex) {\n ex.printStackTrace();\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Greška\", JOptionPane.ERROR_MESSAGE);\n }\n jcbPartner.setModel(new DefaultComboBoxModel(lpp.toArray()));\n jcbPartner.addItem(\"Svi partneri\");\n jcbPartner.setSelectedItem(\"Svi partneri\");\n\n List<Faktura> lf = new ArrayList<>();\n try {\n lf = Kontroler.vratiInstancu().vratiFakture();\n } catch (Exception ex) {\n ex.printStackTrace();\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Greška\", JOptionPane.ERROR_MESSAGE);\n }\n jtblFakture.setModel(new FakturaTableModel(lf));\n }", "private void makeFrame() {\n\t\tframe = new JFrame(calc.getTitle());\n\n\t\tJPanel contentPane = (JPanel) frame.getContentPane();\n\t\tcontentPane.setLayout(new BorderLayout(8, 8));\n\t\tcontentPane.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tdisplay = new JTextField();\n\t\tdisplay.setEditable(false);\n\t\tcontentPane.add(display, BorderLayout.NORTH);\n\n\t\tJPanel buttonPanel = new JPanel(new GridLayout(6, 5));\n\n\t\taddButton(buttonPanel, \"A\");\n\t\taddButton(buttonPanel, \"B\");\n\t\taddButton(buttonPanel, \"C\");\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\tJCheckBox check = new JCheckBox(\"HEX\");\n\t\tcheck.addActionListener(this);\n\t\tbuttonPanel.add(check);\n\n\t\taddButton(buttonPanel, \"D\");\n\t\taddButton(buttonPanel, \"E\");\n\t\taddButton(buttonPanel, \"F\");\n\t\taddButton(buttonPanel, \"(\");\n\t\taddButton(buttonPanel, \")\");\n\n\t\taddButton(buttonPanel, \"7\");\n\t\taddButton(buttonPanel, \"8\");\n\t\taddButton(buttonPanel, \"9\");\n\t\taddButton(buttonPanel, \"AC\");\n\t\taddButton(buttonPanel, \"^\");\n\n\t\taddButton(buttonPanel, \"4\");\n\t\taddButton(buttonPanel, \"5\");\n\t\taddButton(buttonPanel, \"6\");\n\t\taddButton(buttonPanel, \"*\");\n\t\taddButton(buttonPanel, \"/\");\n\n\t\taddButton(buttonPanel, \"1\");\n\t\taddButton(buttonPanel, \"2\");\n\t\taddButton(buttonPanel, \"3\");\n\t\taddButton(buttonPanel, \"+\");\n\t\taddButton(buttonPanel, \"-\");\n\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\taddButton(buttonPanel, \"0\");\n\t\tbuttonPanel.add(new JLabel(\" \"));\n\t\taddButton(buttonPanel, \"=\");\n\n\t\tcontentPane.add(buttonPanel, BorderLayout.CENTER);\n\n\t\tframe.pack();\n\t\thexToggle();\n\n\t}" ]
[ "0.57130283", "0.57082766", "0.56855476", "0.5638844", "0.5638245", "0.55960983", "0.55570817", "0.5548502", "0.5503879", "0.54953736", "0.5449211", "0.5391196", "0.5387345", "0.53680634", "0.536524", "0.5232981", "0.5214856", "0.52116054", "0.5206734", "0.5206535", "0.5171493", "0.515473", "0.5132002", "0.51212496", "0.5092813", "0.50906277", "0.5087401", "0.5082326", "0.50559646", "0.50220686", "0.50002515", "0.49965218", "0.49890292", "0.49802154", "0.49702564", "0.49665558", "0.49569935", "0.49513054", "0.4951158", "0.494692", "0.4945793", "0.49405605", "0.4936789", "0.49289444", "0.49248725", "0.4922919", "0.49115142", "0.49040887", "0.4904084", "0.48986426", "0.48932353", "0.4890251", "0.48881242", "0.4886678", "0.4885061", "0.48836634", "0.48740548", "0.48740405", "0.4870643", "0.48644286", "0.48601905", "0.48571333", "0.48523808", "0.48500824", "0.48482916", "0.4847316", "0.48414662", "0.48362687", "0.48352832", "0.48298028", "0.48267722", "0.4820079", "0.4818348", "0.48080796", "0.4804762", "0.48030835", "0.47999305", "0.47974068", "0.47958383", "0.47948176", "0.47874448", "0.4786417", "0.4774523", "0.4765798", "0.475738", "0.4747194", "0.47364262", "0.47350344", "0.47332382", "0.47326264", "0.47324333", "0.4731621", "0.4729602", "0.47287557", "0.47199017", "0.4714214", "0.47137666", "0.47122088", "0.47116113", "0.47114965" ]
0.72361034
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); jButton10 = new javax.swing.JButton(); jButton11 = new javax.swing.JButton(); jButton12 = new javax.swing.JButton(); jButton13 = new javax.swing.JButton(); jButton14 = new javax.swing.JButton(); jButton15 = new javax.swing.JButton(); jButton16 = new javax.swing.JButton(); jButton17 = new javax.swing.JButton(); jButton18 = new javax.swing.JButton(); jButton19 = new javax.swing.JButton(); jButton20 = new javax.swing.JButton(); jButton21 = new javax.swing.JButton(); jButton22 = new javax.swing.JButton(); jButton23 = new javax.swing.JButton(); jButton24 = new javax.swing.JButton(); jButton25 = new javax.swing.JButton(); jButton26 = new javax.swing.JButton(); jButton27 = new javax.swing.JButton(); jButton28 = new javax.swing.JButton(); jButton29 = new javax.swing.JButton(); jButton30 = new javax.swing.JButton(); jButton31 = new javax.swing.JButton(); jButton32 = new javax.swing.JButton(); jButton33 = new javax.swing.JButton(); jButton34 = new javax.swing.JButton(); jButton35 = new javax.swing.JButton(); jtextd = new javax.swing.JTextField(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } }); jButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton1.setText("<-"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton2.setText("Sqrt"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton3.setText("+"); jButton4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton4.setText("C"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jButton5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton5.setText("7"); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jButton6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton6.setText("8"); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jButton7.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton7.setText("9"); jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); jButton8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton8.setText("-"); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); jButton9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton9.setText("4"); jButton9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton9ActionPerformed(evt); } }); jButton10.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton10.setText("5"); jButton10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ActionPerformed(evt); } }); jButton11.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton11.setText("6"); jButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton11ActionPerformed(evt); } }); jButton12.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton12.setText("*"); jButton12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton12ActionPerformed(evt); } }); jButton13.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton13.setText("1"); jButton13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton13ActionPerformed(evt); } }); jButton14.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton14.setText("2"); jButton14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton14ActionPerformed(evt); } }); jButton15.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton15.setText("3"); jButton15.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton15ActionPerformed(evt); } }); jButton16.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton16.setText("/"); jButton16.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton16ActionPerformed(evt); } }); jButton17.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton17.setText("0"); jButton17.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton17ActionPerformed(evt); } }); jButton18.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton18.setText("."); jButton18.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton18ActionPerformed(evt); } }); jButton19.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton19.setText("+/-"); jButton19.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton19ActionPerformed(evt); } }); jButton20.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton20.setText("="); jButton20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton20ActionPerformed(evt); } }); jButton21.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton21.setText("Log"); jButton21.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton21ActionPerformed(evt); } }); jButton22.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton22.setText("Sin"); jButton22.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton22ActionPerformed(evt); } }); jButton23.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton23.setText("Sinh"); jButton23.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton23ActionPerformed(evt); } }); jButton24.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton24.setText("pi"); jButton24.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton24ActionPerformed(evt); } }); jButton25.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton25.setText("Cos"); jButton25.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton25ActionPerformed(evt); } }); jButton26.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton26.setText("Cosh"); jButton26.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton26ActionPerformed(evt); } }); jButton27.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton27.setText("Tanh"); jButton27.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton27ActionPerformed(evt); } }); jButton28.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton28.setText("Tan"); jButton28.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton28ActionPerformed(evt); } }); jButton29.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton29.setText("X^Y"); jButton29.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton29ActionPerformed(evt); } }); jButton30.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton30.setText("Cosh"); jButton31.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton31.setText("/"); jButton31.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton31ActionPerformed(evt); } }); jButton32.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton32.setText("x^2"); jButton32.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton32ActionPerformed(evt); } }); jButton33.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton33.setText("Rund"); jButton33.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton33ActionPerformed(evt); } }); jButton34.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton34.setText("x^3"); jButton34.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton34ActionPerformed(evt); } }); jButton35.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton35.setText("cbrt"); jButton35.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton35ActionPerformed(evt); } }); jtextd.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jtextd.setText("0"); jtextd.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jtextdKeyTyped(evt); } }); jMenu1.setText("File"); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMenuBar1.add(jMenu2); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(9, 9, 9) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(79, 79, 79) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jButton34, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton35, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton29, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton28, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jButton33) .addGap(0, 0, Short.MAX_VALUE)))))) .addComponent(jtextd, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(38, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(24, 24, 24) .addComponent(jtextd, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton27, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton28, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton29, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton16, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton30, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton34, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton35, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton33, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7319037", "0.7290621", "0.7290621", "0.7290621", "0.7285163", "0.72480375", "0.72130316", "0.7207723", "0.7195822", "0.7189463", "0.7183591", "0.71580946", "0.7147075", "0.70924276", "0.70795405", "0.7056352", "0.6986753", "0.6976759", "0.6954958", "0.69533294", "0.6944831", "0.69417095", "0.6934517", "0.6930924", "0.6926761", "0.69241685", "0.6923851", "0.69112706", "0.6910913", "0.689217", "0.689193", "0.6890017", "0.68896353", "0.6888143", "0.68825865", "0.6881063", "0.6880471", "0.6877822", "0.68752986", "0.6873734", "0.68713146", "0.6859294", "0.6856707", "0.685489", "0.6854541", "0.68543345", "0.68526614", "0.68516856", "0.68516856", "0.6842822", "0.6836592", "0.6836195", "0.68277925", "0.6827518", "0.68260497", "0.682339", "0.68222433", "0.6816619", "0.6815844", "0.68096834", "0.6808133", "0.68078655", "0.6807532", "0.68070555", "0.6802426", "0.6794083", "0.679347", "0.6791848", "0.6790225", "0.6788846", "0.67884487", "0.6787538", "0.67819446", "0.6766094", "0.676505", "0.6764832", "0.67562455", "0.6754961", "0.67515653", "0.6750421", "0.6742601", "0.673875", "0.67371166", "0.6735209", "0.6732373", "0.6727282", "0.6726048", "0.6719771", "0.67154175", "0.6714355", "0.671359", "0.67079127", "0.670646", "0.670331", "0.6700197", "0.669957", "0.6698499", "0.6697054", "0.6693929", "0.6690299", "0.66896695" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public final void addSession(MediaSession2 mediaSession2) { if (mediaSession2 == null) { throw new IllegalArgumentException("session shouldn't be null"); } if (mediaSession2.isClosed()) { throw new IllegalArgumentException("session is already closed"); } Object object = this.mLock; synchronized (object) { MediaSession2 mediaSession22 = this.mSessions.get(mediaSession2.getId()); if (mediaSession22 == null) { this.mSessions.put(mediaSession2.getId(), mediaSession2); mediaSession2.setForegroundServiceEventCallback(this.mForegroundServiceEventCallback); return; } if (mediaSession22 != mediaSession2) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("Session ID should be unique, ID="); stringBuilder.append(mediaSession2.getId()); stringBuilder.append(", previous="); stringBuilder.append(mediaSession22); stringBuilder.append(", session="); stringBuilder.append(mediaSession2); Log.w((String)TAG, (String)stringBuilder.toString()); } return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "public void testLoadOrder() throws Exception {\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "protected void runBeforeIteration() {}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void additionalProcessing() {\n\t}", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55352986", "0.54846853", "0.54517305", "0.5427093", "0.5361349", "0.53086495", "0.52838886", "0.5268295", "0.5230213", "0.5192516", "0.5191097", "0.5187557", "0.5169812", "0.51422596", "0.51422596", "0.5109392", "0.50674933", "0.5067241", "0.50656694", "0.5062073", "0.50467134", "0.5040023", "0.5038879", "0.50244874", "0.4963161", "0.4961667", "0.4924397", "0.4921947", "0.4920439", "0.49107638", "0.49072307", "0.49038374", "0.49036717", "0.4903643", "0.4902819", "0.48871425", "0.48821703", "0.48821107", "0.48818406", "0.48783368", "0.48696676", "0.486303", "0.4862747", "0.48605606", "0.48494318", "0.4835505", "0.48304483", "0.48290712", "0.48289344", "0.48254424", "0.4824652", "0.48138678", "0.48119736", "0.48062184", "0.48016068", "0.479951", "0.47934556", "0.47874808", "0.47770607", "0.4776007", "0.4773354", "0.47611165", "0.4753641", "0.47530508", "0.47494543", "0.47480455", "0.47466555", "0.4745705", "0.4743189", "0.47431177", "0.47411", "0.47387075", "0.47336107", "0.47212094", "0.47175875", "0.47087836", "0.47077122", "0.47076577", "0.47071108", "0.46985713", "0.46968967", "0.4694388", "0.4694119", "0.46930385", "0.46917376", "0.4690902", "0.4689285", "0.4688211", "0.46872315", "0.46846798", "0.46787405", "0.4669167", "0.4668555", "0.46674022", "0.46639723", "0.46629333", "0.4656558", "0.46530226", "0.4652856", "0.46519482", "0.46516082" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
MediaSessionManager getMediaSessionManager() { Object object = this.mLock; synchronized (object) { return this.mMediaSessionManager; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "public abstract void sort() throws RemoteException;", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void additionalProcessing() {\n\t}", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }" ]
[ "0.553629", "0.5485726", "0.545214", "0.54271656", "0.53611046", "0.5311041", "0.5285095", "0.52706826", "0.5231508", "0.51921177", "0.5191973", "0.51887107", "0.5167941", "0.5143742", "0.5143742", "0.510949", "0.5068143", "0.50666034", "0.50647956", "0.506322", "0.50485307", "0.5041773", "0.5040561", "0.50252926", "0.49631795", "0.49629343", "0.4924765", "0.4921089", "0.49202555", "0.4910533", "0.49069986", "0.49046317", "0.49041894", "0.4903584", "0.49034888", "0.48879996", "0.4881676", "0.48814648", "0.48813775", "0.4878399", "0.48709473", "0.48638636", "0.4862549", "0.48602974", "0.48516005", "0.48352793", "0.48316696", "0.48303637", "0.48301777", "0.4827043", "0.4823996", "0.48144525", "0.4813147", "0.480688", "0.4803005", "0.48015058", "0.4793946", "0.4787548", "0.4777012", "0.4775355", "0.47730866", "0.4759443", "0.47543785", "0.47520083", "0.47505012", "0.47483432", "0.47478876", "0.4746697", "0.47440347", "0.47419998", "0.47407952", "0.47405377", "0.4735462", "0.47216165", "0.4718239", "0.47105592", "0.47103328", "0.47071844", "0.47068495", "0.4699048", "0.46972883", "0.4695742", "0.4695403", "0.46931428", "0.46917427", "0.4691164", "0.46900597", "0.46896142", "0.46883616", "0.46829316", "0.46784303", "0.4670536", "0.46699816", "0.46666563", "0.4663815", "0.46633393", "0.46567222", "0.46545067", "0.46526894", "0.4652647", "0.46516338" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public final List<MediaSession2> getSessions() { ArrayList<MediaSession2> arrayList = new ArrayList<MediaSession2>(); Object object = this.mLock; synchronized (object) { arrayList.addAll(this.mSessions.values()); return arrayList; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55357516", "0.54847836", "0.54518634", "0.54286635", "0.5360879", "0.53091925", "0.5284715", "0.52695996", "0.5230102", "0.51923716", "0.5191439", "0.5188387", "0.5168468", "0.5143426", "0.5143426", "0.5109729", "0.5067646", "0.5067495", "0.50652677", "0.50624096", "0.50475657", "0.504159", "0.5039589", "0.5023407", "0.49634466", "0.49618208", "0.49246252", "0.4922103", "0.49197698", "0.4910022", "0.49072972", "0.49047247", "0.49039972", "0.49034607", "0.4902983", "0.48878896", "0.48826107", "0.48818517", "0.48814562", "0.4878475", "0.48703066", "0.4863222", "0.48625475", "0.48603472", "0.48494518", "0.4834991", "0.4830422", "0.48295477", "0.4829231", "0.48264366", "0.48240313", "0.48131904", "0.48126644", "0.48068938", "0.48018298", "0.47999585", "0.4794659", "0.4787341", "0.47765303", "0.47759804", "0.47734603", "0.4759445", "0.4753895", "0.47537467", "0.47498325", "0.474726", "0.47471562", "0.47469893", "0.47443613", "0.47425935", "0.47408098", "0.47390231", "0.47334972", "0.47216344", "0.4717768", "0.4710605", "0.47090322", "0.47073102", "0.47069296", "0.46988246", "0.4697132", "0.46945944", "0.46944532", "0.46923304", "0.46919137", "0.46914142", "0.46890688", "0.46890038", "0.46877262", "0.46830624", "0.46787974", "0.46696475", "0.46691507", "0.46673903", "0.4664319", "0.46634987", "0.46566254", "0.4653818", "0.4653315", "0.46522555", "0.4651373" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public IBinder onBind(Intent object) { if (!SERVICE_INTERFACE.equals(object.getAction())) return null; object = this.mLock; synchronized (object) { return this.mStub; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55357516", "0.54847836", "0.54518634", "0.54286635", "0.5360879", "0.53091925", "0.5284715", "0.52695996", "0.5230102", "0.51923716", "0.5191439", "0.5188387", "0.5168468", "0.5143426", "0.5143426", "0.5109729", "0.5067646", "0.5067495", "0.50652677", "0.50624096", "0.50475657", "0.504159", "0.5039589", "0.5023407", "0.49634466", "0.49618208", "0.49246252", "0.4922103", "0.49197698", "0.4910022", "0.49072972", "0.49047247", "0.49039972", "0.49034607", "0.4902983", "0.48878896", "0.48826107", "0.48818517", "0.48814562", "0.4878475", "0.48703066", "0.4863222", "0.48625475", "0.48603472", "0.48494518", "0.4834991", "0.4830422", "0.48295477", "0.4829231", "0.48264366", "0.48240313", "0.48131904", "0.48126644", "0.48068938", "0.48018298", "0.47999585", "0.4794659", "0.4787341", "0.47765303", "0.47759804", "0.47734603", "0.4759445", "0.4753895", "0.47537467", "0.47498325", "0.474726", "0.47471562", "0.47469893", "0.47443613", "0.47425935", "0.47408098", "0.47390231", "0.47334972", "0.47216344", "0.4717768", "0.4710605", "0.47090322", "0.47073102", "0.47069296", "0.46988246", "0.4697132", "0.46945944", "0.46944532", "0.46923304", "0.46919137", "0.46914142", "0.46890688", "0.46890038", "0.46877262", "0.46830624", "0.46787974", "0.46696475", "0.46691507", "0.46673903", "0.4664319", "0.46634987", "0.46566254", "0.4653818", "0.4653315", "0.46522555", "0.4651373" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public void onCreate() { super.onCreate(); Object object = this.mLock; synchronized (object) { MediaSession2ServiceStub mediaSession2ServiceStub; this.mStub = mediaSession2ServiceStub = new MediaSession2ServiceStub(this); mediaSession2ServiceStub = new Intent((Context)this, ((Object)((Object)this)).getClass()); this.mStartSelfIntent = mediaSession2ServiceStub; this.mNotificationManager = (NotificationManager)this.getSystemService("notification"); this.mMediaSessionManager = (MediaSessionManager)this.getSystemService("media_session"); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "public void testLoadOrder() throws Exception {\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "protected void runBeforeIteration() {}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void additionalProcessing() {\n\t}", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55352986", "0.54846853", "0.54517305", "0.5427093", "0.5361349", "0.53086495", "0.52838886", "0.5268295", "0.5230213", "0.5192516", "0.5191097", "0.5187557", "0.5169812", "0.51422596", "0.51422596", "0.5109392", "0.50674933", "0.5067241", "0.50656694", "0.5062073", "0.50467134", "0.5040023", "0.5038879", "0.50244874", "0.4963161", "0.4961667", "0.4924397", "0.4921947", "0.4920439", "0.49107638", "0.49072307", "0.49038374", "0.49036717", "0.4903643", "0.4902819", "0.48871425", "0.48821703", "0.48821107", "0.48818406", "0.48783368", "0.48696676", "0.486303", "0.4862747", "0.48605606", "0.48494318", "0.4835505", "0.48304483", "0.48290712", "0.48289344", "0.48254424", "0.4824652", "0.48138678", "0.48119736", "0.48062184", "0.48016068", "0.479951", "0.47934556", "0.47874808", "0.47770607", "0.4776007", "0.4773354", "0.47611165", "0.4753641", "0.47530508", "0.47494543", "0.47480455", "0.47466555", "0.4745705", "0.4743189", "0.47431177", "0.47411", "0.47387075", "0.47336107", "0.47212094", "0.47175875", "0.47087836", "0.47077122", "0.47076577", "0.47071108", "0.46985713", "0.46968967", "0.4694388", "0.4694119", "0.46930385", "0.46917376", "0.4690902", "0.4689285", "0.4688211", "0.46872315", "0.46846798", "0.46787405", "0.4669167", "0.4668555", "0.46674022", "0.46639723", "0.46629333", "0.4656558", "0.46530226", "0.4652856", "0.46519482", "0.46516082" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public void onDestroy() { super.onDestroy(); Object object = this.mLock; synchronized (object) { Iterator<MediaSession2> iterator = this.getSessions().iterator(); do { if (!iterator.hasNext()) { this.mSessions.clear(); this.mNotifications.clear(); // MONITOREXIT [2, 3, 4] lbl9 : MonitorExitStatement: MONITOREXIT : var1_1 this.mStub.close(); return; } this.removeSession(iterator.next()); } while (true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "public abstract void sort() throws RemoteException;", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void additionalProcessing() {\n\t}", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }" ]
[ "0.553629", "0.5485726", "0.545214", "0.54271656", "0.53611046", "0.5311041", "0.5285095", "0.52706826", "0.5231508", "0.51921177", "0.5191973", "0.51887107", "0.5167941", "0.5143742", "0.5143742", "0.510949", "0.5068143", "0.50666034", "0.50647956", "0.506322", "0.50485307", "0.5041773", "0.5040561", "0.50252926", "0.49631795", "0.49629343", "0.4924765", "0.4921089", "0.49202555", "0.4910533", "0.49069986", "0.49046317", "0.49041894", "0.4903584", "0.49034888", "0.48879996", "0.4881676", "0.48814648", "0.48813775", "0.4878399", "0.48709473", "0.48638636", "0.4862549", "0.48602974", "0.48516005", "0.48352793", "0.48316696", "0.48303637", "0.48301777", "0.4827043", "0.4823996", "0.48144525", "0.4813147", "0.480688", "0.4803005", "0.48015058", "0.4793946", "0.4787548", "0.4777012", "0.4775355", "0.47730866", "0.4759443", "0.47543785", "0.47520083", "0.47505012", "0.47483432", "0.47478876", "0.4746697", "0.47440347", "0.47419998", "0.47407952", "0.47405377", "0.4735462", "0.47216165", "0.4718239", "0.47105592", "0.47103328", "0.47071844", "0.47068495", "0.4699048", "0.46972883", "0.4695742", "0.4695403", "0.46931428", "0.46917427", "0.4691164", "0.46900597", "0.46896142", "0.46883616", "0.46829316", "0.46784303", "0.4670536", "0.46699816", "0.46666563", "0.4663815", "0.46633393", "0.46567222", "0.46545067", "0.46526894", "0.4652647", "0.46516338" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
void onPlaybackActiveChanged(MediaSession2 mediaSession2, boolean bl) { MediaNotification mediaNotification = this.onUpdateNotification(mediaSession2); if (mediaNotification == null) { return; } Object object = this.mLock; synchronized (object) { this.mNotifications.put(mediaSession2, mediaNotification); } int n = mediaNotification.getNotificationId(); mediaSession2 = mediaNotification.getNotification(); if (!bl) { this.mNotificationManager.notify(n, (Notification)mediaSession2); return; } this.startForegroundService(this.mStartSelfIntent); this.startForeground(n, (Notification)mediaSession2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55357516", "0.54847836", "0.54518634", "0.54286635", "0.5360879", "0.53091925", "0.5284715", "0.52695996", "0.5230102", "0.51923716", "0.5191439", "0.5188387", "0.5168468", "0.5143426", "0.5143426", "0.5109729", "0.5067646", "0.5067495", "0.50652677", "0.50624096", "0.50475657", "0.504159", "0.5039589", "0.5023407", "0.49634466", "0.49618208", "0.49246252", "0.4922103", "0.49197698", "0.4910022", "0.49072972", "0.49047247", "0.49039972", "0.49034607", "0.4902983", "0.48878896", "0.48826107", "0.48818517", "0.48814562", "0.4878475", "0.48703066", "0.4863222", "0.48625475", "0.48603472", "0.48494518", "0.4834991", "0.4830422", "0.48295477", "0.4829231", "0.48264366", "0.48240313", "0.48131904", "0.48126644", "0.48068938", "0.48018298", "0.47999585", "0.4794659", "0.4787341", "0.47765303", "0.47759804", "0.47734603", "0.4759445", "0.4753895", "0.47537467", "0.47498325", "0.474726", "0.47471562", "0.47469893", "0.47443613", "0.47425935", "0.47408098", "0.47390231", "0.47334972", "0.47216344", "0.4717768", "0.4710605", "0.47090322", "0.47073102", "0.47069296", "0.46988246", "0.4697132", "0.46945944", "0.46944532", "0.46923304", "0.46919137", "0.46914142", "0.46890688", "0.46890038", "0.46877262", "0.46830624", "0.46787974", "0.46696475", "0.46691507", "0.46673903", "0.4664319", "0.46634987", "0.46566254", "0.4653818", "0.4653315", "0.46522555", "0.4651373" ]
0.0
-1
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
public final void removeSession(MediaSession2 mediaSession2) { MediaNotification mediaNotification; if (mediaSession2 == null) { throw new IllegalArgumentException("session shouldn't be null"); } Object object = this.mLock; synchronized (object) { if (this.mSessions.get(mediaSession2.getId()) != mediaSession2) { return; } this.mSessions.remove(mediaSession2.getId()); mediaNotification = this.mNotifications.remove(mediaSession2); } mediaSession2.setForegroundServiceEventCallback(null); if (mediaNotification != null) { this.mNotificationManager.cancel(mediaNotification.getNotificationId()); } if (this.getSessions().isEmpty()) { this.stopForeground(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void updateEliminations() {\n\n }", "private PerfectMergeSort() {}", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "private void optimiseEVProfile()\n\t{\n\t}", "private void runBest() {\n }", "public void mergeSort() throws Exception{\n\t\tif(this.qtd<=1)\n\t\t\tthrow new Exception(\"Nada para ordenar\");\n\t\tthis.sort(0,this.qtd-1);\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "public SortMergeIterator() throws QueryPlanException, DatabaseException {\n super();\n throw new UnsupportedOperationException(\"hw3: TODO\");\n }", "private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "@Override\n public int getPriority() {\n return 75;\n }", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "public void testLoadOrder() throws Exception {\n }", "@Override // java.util.Comparator\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {\n /*\n r5 = this;\n androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6\n androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7\n androidx.recyclerview.widget.RecyclerView r5 = r6.view\n r0 = 0\n r1 = 1\n if (r5 != 0) goto L_0x000c\n r2 = r1\n goto L_0x000d\n L_0x000c:\n r2 = r0\n L_0x000d:\n androidx.recyclerview.widget.RecyclerView r3 = r7.view\n if (r3 != 0) goto L_0x0013\n r3 = r1\n goto L_0x0014\n L_0x0013:\n r3 = r0\n L_0x0014:\n r4 = -1\n if (r2 == r3) goto L_0x001d\n if (r5 != 0) goto L_0x001b\n L_0x0019:\n r0 = r1\n goto L_0x0037\n L_0x001b:\n r0 = r4\n goto L_0x0037\n L_0x001d:\n boolean r5 = r6.immediate\n boolean r2 = r7.immediate\n if (r5 == r2) goto L_0x0026\n if (r5 == 0) goto L_0x0019\n goto L_0x001b\n L_0x0026:\n int r5 = r7.viewVelocity\n int r1 = r6.viewVelocity\n int r5 = r5 - r1\n if (r5 == 0) goto L_0x002f\n L_0x002d:\n r0 = r5\n goto L_0x0037\n L_0x002f:\n int r5 = r6.distanceToItem\n int r6 = r7.distanceToItem\n int r5 = r5 - r6\n if (r5 == 0) goto L_0x0037\n goto L_0x002d\n L_0x0037:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int\");\n }", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private void analyzeWithEarlyAbort(Transformation<?> transformation) {\n \n // We have only checked k-anonymity so far\n minimalClassSizeFulfilled = (currentNumOutliers <= suppressionLimit);\n \n // Abort early, if only k-anonymity was specified\n if (classBasedCriteria.length == 0 && sampleBasedCriteria.length == 0) {\n privacyModelFulfilled = minimalClassSizeFulfilled;\n return;\n }\n \n // Abort early, if k-anonymity sub-criterion is not fulfilled\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (minimalClassSize != Integer.MAX_VALUE && !minimalClassSizeFulfilled) {\n privacyModelFulfilled = false;\n return;\n }\n \n // Iterate over all classes\n currentNumOutliers = 0;\n HashGroupifyEntry entry = hashTableFirstEntry;\n while (entry != null) {\n \n // Check for anonymity\n int anonymous = isPrivacyModelFulfilled(transformation, entry);\n \n // Determine outliers\n if (anonymous != -1) {\n \n // Note: If d-presence exists, it is stored at criteria[0] by convention.\n // If it fails, isAnonymous(entry) thus returns 1.\n // Tuples from the public table that have no matching candidates in the private table\n // and that do not fulfill d-presence cannot be suppressed. In this case, the whole\n // transformation must be considered to not fulfill the privacy criteria.\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (privacyModelContainsDPresence && entry.count == 0 && anonymous == 1) {\n this.privacyModelFulfilled = false;\n return;\n }\n currentNumOutliers += entry.count;\n \n // Break as soon as too many classes are not anonymous\n // CAUTION: This leaves GroupifyEntry.isNotOutlier and currentOutliers in an inconsistent state\n // for non-anonymous transformations\n if (currentNumOutliers > suppressionLimit) {\n this.privacyModelFulfilled = false;\n return;\n }\n }\n \n // We only suppress classes that are contained in the research subset\n entry.isNotOutlier = entry.count != 0 ? (anonymous == -1) : true;\n \n // Next class\n entry = entry.nextOrdered;\n }\n \n this.analyzeSampleBasedCriteria(transformation, true);\n this.privacyModelFulfilled = (currentNumOutliers <= suppressionLimit);\n }", "public static void specialSets() {\n\t\tSystem.out.printf(\"%12s%15s%15s%10s%10s%10s%10s%n\",\"Size\",\"Range\",\"Pre-Sort Type\",\"Insertion\",\"Selectuon\",\"Quick\",\"Merge\");\n\t\tint[] array;\n\t\t//200K\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 200000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Sorted array\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Sorted\");\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//Reverse Sorted\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-200k\",\"Reverse Sorted\");\n\t\tint[] temp = new int[array.length];\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\ttemp[i] = array[array.length -1 -i];\n\t\t}\n\t\tfourSorts(temp);\n\t\tSystem.out.println();\n\t\t//Range 1-20\n\t\tSystem.out.printf(\"%12d%15s%15s\",200000,\"1-20\",\"N/A\");\n\t\tarray = generateArray(200000, 1, 20);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t}", "protected void thoroughInspection() {}", "public interface ExceptionSorter\r\n{\r\n\r\n\r\n /**\r\n * Evaluates a <code>java.sql.SQLException</code> to determine if\r\n * the error was fatal\r\n * \r\n * @param e the <code>java.sql.SQLException</code>\r\n * \r\n * @return whether or not the exception is vatal.\r\n */\r\n boolean isExceptionFatal(SQLException e);\r\n}", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "private void updateClusterList(EventPacket<BasicEvent> ae, int t) {\n pruneList.clear();\n for (Cluster c : clusters) {\n int t0 = c.getLastEventTimestamp();\n// int t1=ae.getLastTimestamp();\n int timeSinceSupport = t - t0;\n if (timeSinceSupport == 0) {\n continue; // don't kill off cluster spawned from first event\n }\n boolean killOff = false;\n if (clusterLifetimeIncreasesWithAge) {\n int age = c.getLifetime();\n int supportTime = clusterLifetimeWithoutSupportUs;\n if (age < clusterLifetimeWithoutSupportUs) {\n supportTime = age;\n }\n if (timeSinceSupport > supportTime) {\n killOff = true;\n// System.out.println(\"pruning unsupported \"+c);\n }\n } else {\n if (timeSinceSupport > clusterLifetimeWithoutSupportUs) {\n killOff = true;\n// System.out.println(\"pruning unzupported \"+c);\n }\n }\n boolean hitEdge = c.hasHitEdge();\n if (t0 > t || killOff || timeSinceSupport < 0 || hitEdge) {\n // ordinarily, we discard the cluster if it hasn't gotten any support for a while, but we also discard it if there\n // is something funny about the timestamps\n pruneList.add(c);\n }\n// if(t0>t1){\n// log.warning(\"last cluster timestamp is later than last packet timestamp\");\n// }\n }\n clusters.removeAll(pruneList);\n // merge clusters that are too close to each other.\n // this must be done interatively, because merging 4 or more clusters feedforward can result in more clusters than\n // you start with. each time we merge two clusters, we start over, until there are no more merges on iteration.\n // for each cluster, if it is close to another cluster then merge them and start over.\n// int beforeMergeCount=clusters.size();\n boolean mergePending;\n Cluster c1 = null;\n Cluster c2 = null;\n do {\n mergePending = false;\n int nc = clusters.size();\n outer:\n for (int i = 0; i < nc; i++) {\n c1 = clusters.get(i);\n for (int j = i + 1; j < nc; j++) {\n c2 = clusters.get(j); // getString the other cluster\n if (c1.distanceTo(c2) < (c1.getRadius() + c2.getRadius())) {\n // if distance is less than sum of radii merge them\n // if cluster is close to another cluster, merge them\n mergePending = true;\n break outer; // break out of the outer loop\n }\n }\n }\n if (mergePending && c1 != null && c2 != null) {\n pruneList.add(c1);\n pruneList.add(c2);\n clusters.remove(c1);\n clusters.remove(c2);\n clusters.add(new Cluster(c1, c2));\n// System.out.println(\"merged \"+c1+\" and \"+c2);\n }\n } while (mergePending);\n // update all cluster sizes\n // note that without this following call, clusters maintain their starting size until they are merged with another cluster.\n if (isHighwayPerspectiveEnabled()) {\n for (Cluster c : clusters) {\n c.setRadius(defaultClusterRadius);\n }\n }\n // update paths of clusters\n numVisibleClusters = 0;\n for (Cluster c : clusters) {\n c.updatePath(ae);\n if (c.isVisible()) {\n numVisibleClusters++;\n }\n }\n }", "public abstract void sort() throws RemoteException;", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances((String) null, arrayList0, 1);\n attribute0.enumerateValues();\n double[] doubleArray0 = new double[18];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n Discretize discretize0 = new Discretize();\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances1);\n discretize0.batchFinished();\n System.setCurrentTimeMillis(2);\n Filter.useFilter(instances0, discretize0);\n Locale.getISOLanguages();\n discretize0.input(sparseInstance0);\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.findNumBins(102);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 102\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "@Test\n public void testNoTopUpTasksWithHighPriority() throws Exception {\n\n // SETUP: Set a Task to High Priority\n SchedStaskTable lSchedStask1 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 101 ) );\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask1.update();\n\n SchedStaskTable lSchedStask2 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 102 ) );\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask2.update();\n\n SchedStaskTable lSchedStask3 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 400 ) );\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask3.update();\n\n SchedStaskTable lSchedStask4 = SchedStaskTable.findByPrimaryKey( new TaskKey( 4650, 500 ) );\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"HIGH\" ) );\n lSchedStask4.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had no results\n assertEquals( 0, iDataSet.getRowCount() );\n\n // TEARDOWN: Undo the setup changes\n lSchedStask1.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask1.update();\n\n lSchedStask2.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask2.update();\n\n lSchedStask3.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask3.update();\n\n lSchedStask4.setTaskPriority( new RefTaskPriorityKey( 4650, \"LOW\" ) );\n lSchedStask4.update();\n }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "public void testOrdinaryRun() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n printExceptions(es);\n assertEquals(\"Should have processed 190 entries in normal run\",\n TOTAL_RECORDS, processed);\n assertEquals(\"Should not have seen any exceptions in normal run\",\n 0, es.length);\n }", "@Test\n public void testVeryLargeAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + VERY_LARGE_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 270000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1784773968, 204243323, 628170461, 1985159279, 296467636, \"P\", \"HEuxNvH\", 402773817, 2047180536},\n 1L, 1784773968L, 204243323, 628170461, 1985159279L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + VERY_LARGE_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 55161L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(), new Object[]{\n 1361199163, 178133991, 296467636, 788414092, 1719301234, \"P\", \"MaztCmmxxgguBUxPti\", 1284373442, 752388855\n }, 1L, 1361199163L, 178133991, 296467636, 788414092L, 1L);\n }", "protected void arrangeBestOrder ()\n \t{\n \t\tObject[] duplLoans = null;\n \t\ttry\n \t\t{\n \t\t\tduplLoans = theLoanList.popFirstDuplicates();\n \t\t}\n \t\tcatch (NoSuchElementException ex)\n \t\t{\n \t\t\tlog.error(\"The list of duplicate loan lists is empty\");\n \t\t\treturn;\n \t\t}\n \n \t\tDuplicateLoanDataVO bestSourceLoan = null;\n \t\tDuplicateLoanDataVO firstDataVO = null;\n \t\tDuplicateLoanDataVO nextDataVO = null;\n \t\tString xmlValue = null;\n \t\tString apsId1 = null;\n \t\tString providerType1 = null;\n \t\tString apsId2 = null;\n \t\tString providerType2 = null;\n \n \t\tfor (int ndx = 1; ndx < duplLoans.length; ndx++)\n \t\t{\n \t\t\tfirstDataVO = (DuplicateLoanDataVO)duplLoans[0];\n \t\t\tnextDataVO = (DuplicateLoanDataVO)duplLoans[ndx];\n \n \t\t\tapsId1 = firstDataVO.getAwardId();\n \t\t\tproviderType1 = firstDataVO.getProviderType();\n \t\t\tapsId2 = nextDataVO.getAwardId();\n \t\t\tproviderType2 = nextDataVO.getProviderType();\n \n \t\t\tif (apsId1 == null)\n \t\t\t{\n \t\t\t\tapsId1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tfirstDataVO.setAwardId(apsId1);\n \t\t\t}\n \n \t\t\tif (providerType1 == null)\n \t\t\t{\n \t\t\t\tproviderType1 = XMLParser.getNodeValue(firstDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tfirstDataVO.setProviderType(providerType1);\n \t\t\t}\n \n \t\t\tif (apsId2 == null)\n \t\t\t{\n \t\t\t\tapsId2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"APSUniqueAwardID\");\n \t\t\t\tnextDataVO.setAwardId(apsId2);\n \t\t\t}\n \n \t\t\tif (providerType2 == null)\n \t\t\t{\n \t\t\t\tproviderType2 = XMLParser.getNodeValue(nextDataVO.getDocument(), \"DataProviderType\");\n \t\t\t\tnextDataVO.setProviderType(providerType2);\n \t\t\t}\n \n \t\t\tif (log.isDebugEnabled())\n \t\t\t{\n \t\t\t\tlog.debug(\"Comparing Award ID: \" + apsId1 + \" with provider type '\" + providerType1 +\n \t\t\t\t \"' to Award ID: \" + apsId2 + \" with provider type '\" + providerType2 + \"' \");\n \t\t\t}\n \n \t\t\tbestSourceLoan = determineBestSource(firstDataVO, nextDataVO);\n \t\t\tif (bestSourceLoan != null && bestSourceLoan == nextDataVO)\n \t\t\t{\n \t\t\t\t// we need to rearrange things so that the \"best\" is at\n \t\t\t\t// the \"head\" of the array (element 0).\n \n \t\t\t\tDuplicateLoanDataVO best = (DuplicateLoanDataVO)duplLoans[ndx];\n \t\t\t\tduplLoans[ndx] = duplLoans[0];\n \t\t\t\tduplLoans[0] = best;\n \n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = nextDataVO.getAwardId();\n \t\t\t\t\tString providerType = nextDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is now the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tif (log.isDebugEnabled())\n \t\t\t\t{\n \t\t\t\t\tString apsId = firstDataVO.getAwardId();\n \t\t\t\t\tString providerType = firstDataVO.getProviderType();\n \t\t\t\t\tlog.debug(\"Award ID: \" + apsId + \" with provider type '\" + providerType + \"' is still the 'best' source\");\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\ttheLoanList.pushLastDuplicates(duplLoans);\n \t}", "void sort(int a[]) throws Exception {\n }", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public void optimiseForDb() {\n \tif (CollectionUtils.isNotEmpty(this.allocation)) {\n\t \tList<Allocation> alloc = Lists.newArrayList(this.allocation)\n\t \t\t\t.stream()\n\t \t\t\t.filter(a -> a.account != null && a.getPercentage() != 0.0)\n\t \t\t\t.collect(Collectors.toList());\n\t \tif (alloc.size() != this.allocation.size()) {\n\t \t\tLOG.info(\"{} optimised\", this); //$NON-NLS-1$\n\t \t\tthis.allocation.clear();\n\t \t\tthis.allocation.addAll(alloc);\n\t \t}\n\t \tif (CollectionUtils.isEmpty(alloc)) {\n\t \t\tLOG.info(\"{} empty, cleared\", this); //$NON-NLS-1$\n\t \t\t// de-allocate any empty list. They are a waste of space in the database\n\t \t\tthis.allocation = null;\n\t \t}\n \t} else {\n \t\t// de-allocate any empty list. They are a waste of space in the database\n \t\tthis.allocation = null;\n \t}\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "@Override\n public boolean isGoodForTop()\n {\n return false;\n }", "@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Test\r\n\tpublic void driverTop5MoreVisitedPrivateExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop5MoreVisitedPrivateExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "private void removeInvalidFromPool()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_1st_oldest;//index of the oldest individual\r\n\t\tint idx_2nd_oldest;//index of the 2nd oldest individual\r\n\t\tint idx_to_remove;//index of an chromosome which has to be removed\r\n\t\tint idx_current;//index of currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tint max_num_errors;//maximum numbers of stored errors among checked chromosomes\r\n\t\tdouble error_1st_oldest;//average error of the oldest individual\r\n\t\tdouble error_2nd_oldest;//average error of the 2nd oldest individual\r\n\t\tdouble max_error;//largest error among the oldest individuals\r\n\t\tVector<Integer> idx_oldest;//indices of all chromosomes with a life span larger than a predefined threshold\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\t//if the maturity pool is full and none of the genotypes could be removed above because of module outputs\r\n\t\t//then remove one of the oldest individuals according to the errors\r\n\t\tif(_pool_of_bests.size()==_size_pool_of_bests)\r\n\t\t{\r\n\t\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\t\r\n\t\t\t//find all oldest genotypes\r\n\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t{\r\n\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_oldest.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//1) find the worst oldest gentypes with a span above a threshold\r\n\t\t\t//2) do not remove a single genotype without comparison;\r\n\t\t\t// it could have very high performance\r\n\t\t\tif(idx_oldest.size() > 1)\r\n\t\t\t{\r\n\t\t\t\tidx_to_remove = idx_oldest.get(0);\r\n\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\tfor(i=idx_to_remove+1; i<idx_oldest.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\t\tif(max_error < _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_current;\r\n\t\t\t\t\t\tmax_error = _pool_of_bests.get(idx_to_remove)._error.getAverageError();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//remove the worst of two oldest genotypes if none of genotypes had span above the threshold\r\n\t\t\t{\r\n\t\t\t\t//find the oldest and 2nd oldest individuals\r\n\t\t\t\tidx_1st_oldest = -1;\r\n\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\tidx_1st_oldest = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//find the 2nd oldest individuals\r\n\t\t\t\tidx_2nd_oldest = -1;\r\n\t\t\t\tif(size_mature_pool > 1)//the 2nd oldest individual exists if there are 2 or more individuals\r\n\t\t\t\t{\r\n\t\t\t\t\tmax_num_errors = 0;\r\n\t\t\t\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i!=idx_1st_oldest)//the oldest individual should be ignored\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//\"[0]\" because the number of errors is equal for all sub-individuals of the same individual\r\n\t\t\t\t\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\t\t\t\t\tif(max_num_errors < num_errors)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tmax_num_errors = num_errors;\r\n\t\t\t\t\t\t\t\tidx_2nd_oldest = i;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//compare performances of both oldest genotypes using their average errors;\r\n\t\t\t\terror_1st_oldest = _pool_of_bests.get(idx_1st_oldest)._error.getAverageError();\r\n\t\t\t\tif(idx_2nd_oldest!=-1)\r\n\t\t\t\t{\r\n\t\t\t\t\terror_2nd_oldest = _pool_of_bests.get(idx_2nd_oldest)._error.getAverageError();\r\n\r\n\t\t\t\t\tif(error_1st_oldest < error_2nd_oldest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_2nd_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse//a single individual must always be replaced\r\n\t\t\t\t{\r\n\t\t\t\t\tidx_to_remove = idx_1st_oldest;\r\n\t\t\t\t}\r\n\t\t\t}//are there genotypes with life span above a threshold?\r\n\t\t\t\r\n\t\t\t_pool_of_bests.remove(idx_to_remove);\r\n\t\t}//is maturity pool full?\r\n\t}", "@Test(timeout = 4000)\n public void test06() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[0];\n try { \n Filter.batchFilterFile(discretize0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // No first input file given.\n // \n // Filter options:\n // \n // -unset-class-temporarily\n // \\tUnsets the class index temporarily before the filter is\n // \\tapplied to the data.\n // \\t(default: no)\n // -B <num>\n // \\tSpecifies the (maximum) number of bins to divide numeric attributes into.\n // \\t(default = 10)\n // -M <num>\n // \\tSpecifies the desired weight of instances per bin for\n // \\tequal-frequency binning. If this is set to a positive\n // \\tnumber then the -B option will be ignored.\n // \\t(default = -1)\n // -F\n // \\tUse equal-frequency instead of equal-width discretization.\n // -O\n // \\tOptimize number of bins using leave-one-out estimate\n // \\tof estimated entropy (for equal-width discretization).\n // \\tIf this is set then the -B option will be ignored.\n // -R <col1,col2-col4,...>\n // \\tSpecifies list of columns to Discretize. First and last are valid indexes.\n // \\t(default: first-last)\n // -V\n // \\tInvert matching sense of column indexes.\n // -D\n // \\tOutput binary attributes for discretized attributes.\n // -Y\n // \\tUse bin numbers rather than ranges for discretized attributes.\n // \n // General options:\n // \n // -h\n // \\tGet help on available options.\n // -i <filename>\n // \\tThe file containing first input instances.\n // -o <filename>\n // \\tThe file first output instances will be written to.\n // -r <filename>\n // \\tThe file containing second input instances.\n // -s <filename>\n // \\tThe file second output instances will be written to.\n // -c <class index>\n // \\tThe number of the attribute to use as the class.\n // \\t\\\"first\\\" and \\\"last\\\" are also valid entries.\n // \\tIf not supplied then no class is assigned.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "@Override\n public int getPriority() {\n return 1;\n }", "@Test\r\n\tpublic void driverTop3GuidesLessExhibitions() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateTop3GuidesLessExhibitions((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "synchronized public void aggregateLoans ()\n \t{\n \t\tfor (int iter = theLoanList.numberOfDuplicateLists(); iter > 0; iter--)\n \t\t{\n \t\t\tarrangeBestOrder();\n \t\t}\n \t}", "public SortingAndPagingDescriptor() {\r\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "protected void runBeforeIteration() {}", "protected boolean test2() { // testing all policies thru random sequence of page \r\n // (multiple) accesses and check for page faults and BHR\r\n \r\n System.out.print(\"\\n Starting Test 2 (testing all policies; should show difference from policy to policy)... \\n\");\r\n System.out.print(\"\\n Also, SHOULD show different values of BHR's for policies in each round... \\n\");\r\n System.out.print(\"\\n Lower # of page faults --> better replacement poliy... \\n\");\r\n System.out.println(\"\\n higher BHR values --> better replacement poliy... \\n\");\r\n \r\n\r\n // we choose this number to ensure #pages > #bufpool\r\n // will use a seq of page nums to pin and unpin\r\n boolean status = PASS;\r\n \r\n int numPages = Minibase.BufferManager.getNumUnpinned(); //buf frames\r\n int numDiskPages = numPages*BUF_SIZE_MULTIPLIER;\r\n \r\n //*System.out.print(\"numPages: buf and disk: \" + numPages + \" and \" + numDiskPages+\"\\n\");\r\n Page pg = new Page();\r\n PageId pid;\r\n PageId firstPid = new PageId();\r\n System.out.println(\" - Allocate all pages\\n\");\r\n try {\r\n firstPid = Minibase.BufferManager.newPage(pg, numDiskPages); //starting at 9\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not allocate \" + numDiskPages);\r\n System.err.print(\" new pages in the database.\\n\");\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n // unpin that first page... to simplify our loop\r\n try {\r\n Minibase.BufferManager.unpinPage(firstPid, UNPIN_CLEAN);\r\n } catch (Exception e) {\r\n System.err.print(\"*** Could not unpin the first new page.\\n\");\r\n e.printStackTrace();\r\n status = FAIL;\r\n }\r\n\r\n\r\n // now nothing is pinned; numPages in buffers and numDiskPages on disk\r\n \r\n System.out.print(\" - load pages in random order (as well as pin) to generate hits and page faults: \\n\");\r\n pid = new PageId();\r\n \r\n //just do round robin and see whether it makes a diff between LRU and clock\r\n System.out.println(\"entering round robin stage ...\\n\");\r\n int rpid;\r\n int rPage;\r\n Random randomPage = new Random();\r\n Random iter = new Random();\r\n Random pin = new Random();\r\n iter.setSeed(1347); //prime num\r\n pin.setSeed(1938);\r\n int it = MAX_ITERATIONS*BUF_SIZE_MULTIPLIER;\r\n for (int j = 1; j <= it; j++){\r\n \r\n for ( int i=0; i < numDiskPages; i++){\r\n \r\n pid.pid = firstPid.pid + i;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Round Robin for \"+it+\" iterations\"); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n\r\n // randomly load pages, pin them and unpin them a large number of times\r\n // load pages in some order to generate page faults\r\n Random seq = new Random();\r\n seq.setSeed(999331); //another prime num;\r\n pin.setSeed(iter.nextInt(13447)+1);\r\n randomPage.setSeed(13); //another prime num; \r\n \r\n for (int j = 1; j <= MAX_ITERATIONS; j++){\r\n \r\n \r\n for ( int i=1; i <= seq.nextInt(MAX_SEQUENCE)+1; i++){\r\n \r\n rpid = randomPage.nextInt(numDiskPages)+1;\r\n pid.pid = firstPid.pid + rpid;\r\n \r\n for (int k = 1; k <= pin.nextInt(MAX_PIN_COUNT)+1; k++){\r\n try {\r\n Minibase.BufferManager.pinPage(pid, pg, PIN_DISKIO);\r\n \r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not pin new page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n } \r\n \r\n // Copy the page number + 99999 onto each page. It seems\r\n // unlikely that this bit pattern would show up there by\r\n // coincidence.\r\n int data = pid.pid + 99999;\r\n Convert.setIntValue(data, 0, pg.getData()); \r\n \r\n try {\r\n Minibase.BufferManager.unpinPage(pid, UNPIN_DIRTY);\r\n } catch (Exception e) {\r\n status = FAIL;\r\n System.err.print(\"*** Could not unpin dirty page \" + pid.pid + \"\\n\");\r\n e.printStackTrace();\r\n }\r\n } \r\n \r\n }\r\n if (status == PASS){ \r\n //invoke print \r\n System.out.println(\" Test 2: Iteration: \"+j); \r\n Minibase.BufferManager.printBhrAndRefCount();\r\n System.out.print(\"\\n++++++++++++++++++++++++++==============\\n\");\r\n } \r\n }\r\n \r\n if (status == PASS){\r\n System.out.println(\" Test 2 completed successfully.\\n\"); \r\n System.out.println(\"\\n compare page faults for each policy\\n\");\r\n }\r\n return status;\r\n }", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void testAdaptivePruningWithBadBubble() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n final SeqVertex F = new SeqVertex(\"F\");\n final SeqVertex G = new SeqVertex(\"G\");\n final SeqVertex H = new SeqVertex(\"H\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, E, F, G, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, F, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, G, E);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), E, C);\n\n if (variantPresent) {\n graph.addVertices(H);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, H, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_LOG_ODDS_THRESHOLD,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(H));\n }\n }\n }", "boolean getOptimiseAEForDROPref();", "@Override\n\tpublic int calculateEffort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "protected void additionalProcessing() {\n\t}", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "protected void onInit() {\n order = new Entry[threshold];\n }", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersNegativeLimitJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNegativeLimit, expectedNegativeLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "void forceStats(long operations, long hits);", "private void somethingIsWrongWithMergeSort() {\n try {\n Sorting.mergesort(\n null, (new Zombie(null, 0, 0).getNameComparator()));\n fail(\"You didn't even throw the exception for the array.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n try {\n Sorting.mergesort(horde, null);\n fail(\"You didn't even throw the exception for the comparator.\");\n } catch (IllegalArgumentException e) {\n assertNotNull(\n \"Good job throwing the exception...but you need a message!\",\n e.getMessage());\n }\n }", "@Override\n @Test\n public void testQuery_invalidAdvancedRankingWithChildrenRankingSignals() throws Exception { }", "@Override\n\tpublic String enableBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int run(String[] args) throws Exception\n\t{\n\t\tgetConf().setInt(\"io.sort.mb\", 100);\t\t\n\t\t//getConf().setInt(\"mapred.tasktracker.map.tasks.maximum\", 1)\n\n\n\t\t// Create a new JobConf\n\t\tJobConf job = new JobConf(getConf(), this.getClass());\n\t\tFileSystem fSystem = FileSystem.get(getConf());\n\t\t\n\t\tfinal float spillper = job.getFloat(\"io.sort.spill.percent\",(float)0.8);\n\t\tfinal float recper = job.getFloat(\"io.sort.record.percent\",(float)0.05);\n\t\tfinal int sortmb = job.getInt(\"io.sort.mb\", 100);\n\t\tif (spillper > (float)1.0 || spillper < (float)0.0) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.spill.percent\\\": \" + spillper);\n\t\t}\n\t\tif (recper > (float)1.0 || recper < (float)0.01) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.record.percent\\\": \" + recper);\n\t\t}\n\t\tif ((sortmb & 0x7FF) != sortmb) {\n\t\t\tthrow new IOException(\"Invalid \\\"io.sort.mb\\\": \" + sortmb);\n\t\t}\n\t\t//sorter = ReflectionUtils.newInstance(\n\t\t//\tjob.getClass(\"map.sort.class\", QuickSort.class, IndexedSorter.class), job);\n\t\t\n\t\t\n\t\tUtil.pf(\"io.sort.mb = \" + sortmb);\n\t\t// buffers and accounting\n\t\tint maxMemUsage = sortmb << 20;\n\t\tUtil.pf(\"MMU = %d\", maxMemUsage);\n\t\t\n\t\tint recordCapacity = (int)(maxMemUsage * recper);\n\t\trecordCapacity -= recordCapacity % RECSIZE;\n\t\tbyte[] kvbuffer = new byte[maxMemUsage - recordCapacity];\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(args.length == 0 || (!\"yest\".equals(args[0]) && !TimeUtil.checkDayCode(args[0])))\n\t\t{\n\t\t\tUtil.pf(\"\\nUsage: DbSliceInterestMain <daycode>\\n\");\t\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\tString daycode = (\"yest\".equals(args[0]) ? TimeUtil.getYesterdayCode() : args[0]);\n\t\tString logfile = (args.length >= 2 ? args[1] : null);\n\t\t\n\t\tMap<String, String> optargs = Util.getClArgMap(args);\n\t\tInteger maxfile = (optargs.containsKey(\"maxfile\") ? Integer.valueOf(optargs.get(\"maxfile\")) : Integer.MAX_VALUE);\n\t\t\n\t\t// align\n\t\t{\n\t\t\tText a = new Text(\"\");\t\t\t\n\t\t\tLongWritable lw = new LongWritable(0);\n\t\t\tHadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), null,\n\t\t\t\t\ta, a, a, a);\t\t\t\n\t\t\t//HadoopUtil.alignJobConf(job, true, new DbLookupSlicer(), new HadoopUtil.EmptyReducer(), new SmartPartitioner(),\n\t\t\t//\t\ta, a, a, a);\n\t\t}\n\t\t\n\t\t// checkStagingInfo(daycode);\n\t\t\n\t\t//System.exit(1);\n\t\t\n\t\t// Inputs are :\n\t\t{\n\t\t\tList<Path> pathlist = Util.vector();\n\t\t\tList<String> patterns = Util.vector();\n\t\t\t\n\t\t\t// patterns.add(Util.sprintf(\"/data/bid_all/%s/casale/*.log.gz\", \"2012-02-24\"));\n\t\t\tpatterns.add(Util.sprintf(\"/data/bid_all/%s/*/*.log.gz\", daycode));\n\t\t\tpatterns.add(Util.sprintf(\"/data/no_bid/%s/*/*.log.gz\", daycode));\n\t\t\t\n\t\t\tfor(String onepatt : patterns)\n\t\t\t{\n\t\t\t\tList<Path> sublist = HadoopUtil.getGlobPathList(fSystem, onepatt);\n\t\t\t\t\n\t\t\t\tfor(Path subpath : sublist)\n\t\t\t\t{\n\t\t\t\t\tif(pathlist.size() < maxfile)\n\t\t\t\t\t\t{ pathlist.add(subpath); }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUtil.pf(\"\\nFound %d Big Data Log Files\", pathlist.size());\n\t\t\t\n\t\t\tFileInputFormat.setInputPaths(job, pathlist.toArray(new Path[] {} ));\t\n\t\t}\n\t\t\t\t\n\t\tPath outputPath = new Path(Util.sprintf(\"/userindex/dbslice/%s/\", daycode));\n\t\tfSystem.delete(outputPath, true);\n\t\tUtil.pf(\"\\nUsing directory %s\", outputPath);\n\t\tFileOutputFormat.setOutputPath(job, outputPath);\t\t\t\n\t\t\n\t\tUtil.pf(\"\\nCalling TESTMEM DbSlice-Main for %s\", daycode);\n\t\t\n\t\t// Specify various job-specific parameters \n\t\t// job.setJobName(getJobName(daycode));\n\t\tjob.setJobName(\"DB TEST MEM\");\n\t\t\n\t\tUtil.pf(\"Running DbSlice, memory info is : \");\n\t\tUtil.showMemoryInfo();\n\t\t\n\t\t// This job is basically light on the reducers, shouldn't be an issue to use a lot of them.\n\t\t// job.setNumReduceTasks(listenCodeMap.size()); \n\t\t//job.setPartitionerClass(SliceInterestSecond.SlicePartitioner.class);\n\t\t\n\t\t// Submit the job, then poll for progress until the job is complete\n\t\tRunningJob jobrun = JobClient.runJob(job);\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }", "@Test public void testWithSegmentation() throws IOException\n {\n final File inDir = tempDir.toFile();\n final File outDir = tempDir.toFile();\n // Copy HDD file.\n try(final Reader r = DDNExtractorTest.getETVEGLLHDD2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_HDD)))\n { cpReaderToWriter(r, w); }\n }\n // Copy sample household data file.\n try(final Reader r = ETVParseTest.getNBulkSH2016H1CSVReader())\n {\n try(final FileWriter w = new FileWriter(new File(inDir, ETVSimpleDriverNBulkInputs.INPUT_FILE_NKWH)))\n { cpReaderToWriter(r, w); }\n }\n // Copy valve logs (from compressed to uncompressed form in, in this case).\n try(final Reader r = HDDUtil.getGZIPpedASCIIResourceReader(ETVParseTest.class, ETVParseTest.VALVE_LOG_SAMPLE_DIR + \"/2d1a.json.gz\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, \"3015.json\")))\n { cpReaderToWriter(r, w); }\n }\n // Create (trivial) grouping...\n try(final Reader r = new StringReader(\"5013,3015\"))\n {\n try(final FileWriter w = new FileWriter(new File(inDir, OTLogActivityParse.LOGDIR_PATH_TO_GROUPING_CSV)))\n { cpReaderToWriter(r, w); }\n }\n\n // Ensure no old result files hanging around...\n final File basicResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_BASIC);\n basicResultFile.delete(); // Make sure no output file.\n assertFalse(\"output file should not yet exist\", basicResultFile.isFile());\n final File basicFilteredResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_FILTERED_BASIC);\n basicFilteredResultFile.delete(); // Make sure no output file.\n assertFalse(\"output filtered file should not yet exist\", basicFilteredResultFile.isFile());\n final File segmentedResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_SEGMENTED);\n segmentedResultFile.delete(); // Make sure no output file.\n assertFalse(\"output segmented file should not yet exist\", segmentedResultFile.isFile());\n final File summaryResultFile = new File(outDir, ETVSimpleDriverNBulkInputs.OUTPUT_STATS_FILE_MULITHOUSEHOLD_SUMMARY);\n summaryResultFile.delete(); // Make sure no output file.\n assertFalse(\"output summary file should not yet exist\", summaryResultFile.isFile());\n // Do the computation...\n ETVSimpleDriverNBulkInputs.doComputation(inDir, outDir);\n // Check results.\n assertTrue(\"output file should now exist\", basicResultFile.isFile());\n assertTrue(\"output filtered file should now exist\", basicFilteredResultFile.isFile());\n assertTrue(\"output segmented file should now exist\", segmentedResultFile.isFile());\n assertTrue(\"output summary file should now exist\", summaryResultFile.isFile());\n final String expected =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.5532478,1.3065631,0.62608224,156,\\n\";\n final String actualBasic = new String(Files.readAllBytes(basicResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualBasic);\n final String actualFilteredBasic = new String(Files.readAllBytes(basicFilteredResultFile.toPath()), \"ASCII7\");\n assertEquals(expected, actualFilteredBasic);\n final String expectedS =\n \"\\\"house ID\\\",\\\"slope energy/HDD\\\",\\\"baseload energy\\\",\\\"R^2\\\",\\\"n\\\",\\\"efficiency gain if computed\\\"\\n\" +\n \"\\\"5013\\\",1.138506,5.764153,0.24607657,10,1.9855182\\n\";\n final String actualSegmented = new String(Files.readAllBytes(segmentedResultFile.toPath()), \"ASCII7\");\n//System.out.println(actualSegmented);\n assertEquals(expectedS, actualSegmented);\n final String expectedSummary =\n ETVHouseholdGroupSimpleSummaryStatsToCSV.headerCSV + '\\n' +\n \"1,1,10,0.24607657,0.0,1.138506,0.0,1.9855182,0.0\\n\";\n final String actualSummary = new String(Files.readAllBytes(summaryResultFile.toPath()), \"ASCII7\");\nSystem.out.println(actualSummary);\n assertEquals(expectedSummary, actualSummary);\n // TODO: verify textual report if any?\n }", "@Override\n \tpublic int priority() {\n \t\treturn 10;\n \t}", "public static void main(String[] args) throws IOException, SQLException, InterruptedException {\r\n System.setOut(new PrintStream(new FileOutputStream(new File(\"log.txt\"))));\r\n\r\n if (Config.DB.NUCLEAR_OPTION) {\r\n String myDearestWarning = \"NUCLEAR_OPTION ENABLED... RUN FOR YOUR FUCKIN LIFE (i.e. ask yourself if you ABSOLUTELY need this)\\n\" +\r\n \"THIS OPTION SHOULD BE USED ONLY FOR TESTING. IT WILL DELETE THESE TABLES TO START A FRESH DEDUPLICATION/MERGE:\\n\" +\r\n \"articles, articles_authors, authors, authors_organizes, journals, merge_logs, organizes\\n\" +\r\n \"YOU HAVE 20 SECONDS TO THINK ABOUT YOUR LIFE...\";\r\n\r\n System.out.println(myDearestWarning);\r\n System.err.println(myDearestWarning);\r\n\r\n Thread.sleep(20000);\r\n }\r\n\r\n long start = System.nanoTime();\r\n\r\n IndexElastic.indexCrawledISIAndScopus();\r\n\r\n importAllScopus();\r\n\r\n IndexElastic.indexAvailableArticles();\r\n IndexElastic.indexAvailableJournals();\r\n IndexElastic.indexAvailableOrganizations();\r\n\r\n int maxIDOfISI = DataUtl.getMaxIDOfTable(Config.DB.INPUT, \"isi_documents\");\r\n if (Config.START_IMPORT_ISI_FROM > maxIDOfISI) {\r\n throw new RuntimeException(\"Config.START_IMPORT_ISI_FROM is larger than the current max ID of isi_documents.\");\r\n }\r\n\r\n for (int i = Config.START_IMPORT_ISI_FROM; i <= maxIDOfISI; ++i) {\r\n\r\n try {\r\n List<Deduplicator.Match> matches = Deduplicator.deduplicate(Article.ISI, i);\r\n\r\n if (matches.size() != 0) {\r\n writeLogToDB(matches);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n Sluginator.slugifyAll();\r\n\r\n long elapsed = System.nanoTime() - start;\r\n\r\n IndexElastic.cleanTemporaryIndices();\r\n\r\n System.out.println(\"All took \" + elapsed + \" nanoseconds\");\r\n }", "public static void main(String[] args) {\n List<SortBase<Integer>> list = Arrays.asList(new Select<>(), new Insert<>(), new Shell<>(), new MergeImpl2<>(), new Quick<>(),new HeapSort<>());\n for (SortBase<Integer> sort : list) {\n StdOut.print(sort.getClass().getSimpleName()+\"\\n\");\n sort.testCorrectness(new Integer[]{3, 2, 1, 5, 7, 8, 32, 12, 0, -4, -12});\n }\n }", "private void sort() {\n\t\trunPassZero();\n\t\tList<TupleReaderBinary> buffers = new ArrayList<>();\n\t\tList<Tuple> sortStage = new ArrayList<>();\n\t\tassert (readerBucketID == 0);\n\t\tassert (writerBucketID == 0);\n\t\tassert (passNumber == 1);\n\t\tassert (currentGroup == 1);\n\t\toutputBuffer.clear();\n\n\t\t// assign buffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tbuffers.add(null);\n\t\t\tassignBuffer(buffers, i);\n\t\t\tsortStage.add(null);\n\t\t}\n\n\t\tassert (buffers.size() == numInputBuffers);\n\t\tassert (sortStage.size() == numInputBuffers);\n\n\t\t// read from buffers into list of size numInputBuffers\n\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t}\n\n\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode\n\t\t\t\t+ \"_\" + passNumber + \"_\" + writerBucketID);\n\n\t\twhile (true) {\n\t\t\tif (!findAndReplaceSmallest(buffers, sortStage)) {\n\t\t\t\tprevPrevTotalBuckets = prevTotalBuckets;\n\t\t\t\tprevTotalBuckets = writerBucketID + 1;\n\t\t\t\tflushOutputBuffer();\n\t\t\t\toutputWriter.close();\n\n\t\t\t\t// We are done! Return\n\t\t\t\tif (prevTotalBuckets == 1) {\n\t\t\t\t\tdeleteTempFiles();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\twriterBucketID = 0;\n\t\t\t\treaderBucketID = 0;\n\t\t\t\twriterFlushes = 0;\n\t\t\t\tdeleteTempFiles();\n\t\t\t\tpassNumber++;\n\t\t\t\tcurrentGroup = 1;\n\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tassignBuffer(buffers, i);\n\t\t\t\t\tsortStage.add(null);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < numInputBuffers; i++) {\n\t\t\t\t\tsortStage.set(i, readFromBuffer(buffers, i));\n\t\t\t\t}\n\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\n\t}", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void sortByDefault() {\r\n\t\tcomparator = null;\r\n\t}", "public static void main(String[] args) throws Exception {\r\n if (args != null && args.length == 3) {\r\n BufferPool pool = new BufferPool(args[0],\r\n Integer.parseInt(args[1]));\r\n Sort sort = new Sort(pool);\r\n sort.sort();\r\n pool.flush();\r\n FileWriter fStream = new FileWriter(args[2], true);\r\n BufferedWriter buffWrite = new BufferedWriter(fStream);\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.write(\"File: \" + args[0] + '\\n');\r\n buffWrite.write(\"Hits: \" + pool.hits() + '\\n');\r\n buffWrite.write(\"Reads: \" + pool.reads() + '\\n');\r\n buffWrite.write(\"Writes: \" + pool.writes() + '\\n');\r\n buffWrite.write(\"Time in ms: \" + sort.getRunTime() + '\\n');\r\n buffWrite.write(\"-----------------------------------\\n\");\r\n buffWrite.close();\r\n }\r\n else {\r\n System.out.println(\"Wrong args\");\r\n }\r\n }", "public static void main(String[] args) throws Exception{\n testSort();\n }", "public static void main(String[] args) {\n\r\n\t\t int[] arr = generateRandomArrayWithRandomNum();\r\n\t int checksSelectionSort = 0;\r\n\t int checksBubbleSort = 0;\r\n\t int checksMergeSort = 0;\r\n\t int checksQuickSort = 0;\r\n\t int[] copyArr = new int[1000];\r\n\t for (int x = 0; x < 20; x++) {\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksSelectionSort += doSelectionSort(arr);\r\n\r\n\t \r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksBubbleSort += bubbleSort(copyArr);\r\n\t System.arraycopy(arr, 0, copyArr, 0, 1000);\r\n\t checksMergeSort += new mergeSort().sort(arr);\r\n\t System.arraycopy(copyArr, 0, arr, 0, 1000);\r\n\t checksQuickSort += new quickSort().sort(copyArr);\r\n\t }\r\n\t System.out.println(\"Analysis Of Sorting algorithms \");\r\n\t System.out.println(\"Selection Sort : \"+checksSelectionSort/20);\r\n\t System.out.println(\"Bubble Sort : \"+checksBubbleSort/20);\r\n\t System.out.println(\"Merge Sort : \"+checksMergeSort/20);\r\n\t System.out.println(\"Quick Sort : \"+checksQuickSort/20);\r\n\r\n\t \r\n\t }", "@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }", "@Test\n public void testTopUpTasksOutsidePlanningYield() throws Exception {\n\n // SETUP: Data Setup for running the Function\n EvtSchedDeadTable lEvtSchedDead =\n EvtSchedDeadTable.findByPrimaryKey( new EventDeadlineKey( \"4650:500:0:23\" ) );\n lEvtSchedDead.setIntervalQt( 0.0 );\n lEvtSchedDead.update();\n\n // ACTION: Execute the Query\n execute( DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 5, 4650, 100 );\n\n // TEST: Confirm the Data had only 3 tasks. Top-up task fall outsidte planning yield should\n // not be found\n assertEquals( 3, iDataSet.getRowCount() );\n\n iDataSet.addSort( \"sched_id\", true );\n\n // assigned task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 101 ), \"ASSIGNEDTASK101\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // assign task with deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 102 ), \"ASSIGNEDTASK102\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE,\n DateUtils.parseDateTimeString( \"25-MAY-2007 21:30\" ),\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 4650, \"REQ\", \"CHECK\",\n DateUtils.parseDateTimeString( \"15-MAY-2007 01:00\" ), 0.0, null, null, null, null,\n null );\n\n // loose task with no deadline\n iDataSet.next();\n testRow( new TaskKey( 4650, 400 ), \"LOOSETASK\", new AircraftKey( 4650, 100 ),\n new AssemblyKey( 4650, \"ASCD\" ), \"Aircraft\", RefSchedPriorityKey.NONE, null,\n new RefTaskPriorityKey( 4650, \"LOW\" ), 0, 0, \"REQ\", null, null, 0.0, null, null, null,\n null, null );\n\n // TEARDOWN: Undo the setup changes\n lEvtSchedDead.setIntervalQt( 15000.0 );\n }", "public void performSuppression() {\n \n for (int row = 0; row < dataOutput.getNumRows(); row++) {\n if (privacyModelDefinesSubset == null || privacyModelDefinesSubset.contains(row)) {\n final int hash = dataOutput.hashCode(row);\n final int index = hash & (hashTableBuckets.length - 1);\n HashGroupifyEntry m = hashTableBuckets[index];\n while ((m != null) && ((m.hashcode != hash) || !dataOutput.equalsIgnoringOutliers(row, m.row))) {\n m = m.next;\n }\n if (m == null) {\n throw new RuntimeException(\"Invalid state! Group the data before suppressing records!\");\n }\n if (!m.isNotOutlier || this.isCompletelyGeneralized(m)) {\n dataOutput.or(row, Data.OUTLIER_MASK);\n m.isNotOutlier = false;\n }\n } else {\n dataOutput.or(row, Data.OUTLIER_MASK);\n }\n }\n }", "private Sort() { }", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n public void processClusterInvalidationsNext() {\n }", "@Override\r\n\tprotected void processCost() throws SGSException {\n\r\n\t}", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "@Test\n public void mergeSortWithSv2() throws Exception {\n ClusterFixtureBuilder builder = ClusterFixture.builder(dirTestWatcher);\n try (ClusterFixture cluster = builder.build();\n ClientFixture client = cluster.clientFixture()) {\n List<QueryDataBatch> results = client.queryBuilder().physicalResource(\"xsort/one_key_sort_descending_sv2.json\").results();\n assertEquals(500_000, client.countResults(results));\n validateResults(client.allocator(), results);\n }\n }" ]
[ "0.55357516", "0.54847836", "0.54518634", "0.54286635", "0.5360879", "0.53091925", "0.5284715", "0.52695996", "0.5230102", "0.51923716", "0.5191439", "0.5188387", "0.5168468", "0.5143426", "0.5143426", "0.5109729", "0.5067646", "0.5067495", "0.50652677", "0.50624096", "0.50475657", "0.504159", "0.5039589", "0.5023407", "0.49634466", "0.49618208", "0.49246252", "0.4922103", "0.49197698", "0.4910022", "0.49072972", "0.49047247", "0.49039972", "0.49034607", "0.4902983", "0.48878896", "0.48826107", "0.48818517", "0.48814562", "0.4878475", "0.48703066", "0.4863222", "0.48625475", "0.48603472", "0.48494518", "0.4834991", "0.4830422", "0.48295477", "0.4829231", "0.48264366", "0.48240313", "0.48131904", "0.48126644", "0.48068938", "0.48018298", "0.47999585", "0.4794659", "0.4787341", "0.47765303", "0.47759804", "0.47734603", "0.4759445", "0.4753895", "0.47537467", "0.47498325", "0.474726", "0.47471562", "0.47469893", "0.47443613", "0.47425935", "0.47408098", "0.47390231", "0.47334972", "0.47216344", "0.4717768", "0.4710605", "0.47090322", "0.47073102", "0.47069296", "0.46988246", "0.4697132", "0.46945944", "0.46944532", "0.46923304", "0.46919137", "0.46914142", "0.46890688", "0.46890038", "0.46877262", "0.46830624", "0.46787974", "0.46696475", "0.46691507", "0.46673903", "0.4664319", "0.46634987", "0.46566254", "0.4653818", "0.4653315", "0.46522555", "0.4651373" ]
0.0
-1
/ Loose catch block WARNING void declaration Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation Lifted jumps to return sites
public /* synthetic */ void lambda$connect$0$MediaSession2Service$MediaSession2ServiceStub(Bundle object, int n, int n2, Controller2Link controller2Link, int n3) { void var1_12; block35 : { int n4; block36 : { MediaSession2Service mediaSession2Service; Object object2; int n6; int n5; block34 : { block33 : { n5 = 1; n6 = 1; mediaSession2Service = (MediaSession2Service)((Object)this.mService.get()); if (mediaSession2Service != null) break block33; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Service isn't available"); } if (!true) return; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Notifying the controller of its disconnection"); } try { controller2Link.notifyDisconnected(0); return; } catch (RuntimeException runtimeException) { // empty catch block } return; } object2 = object.getString("android.media.key.PACKAGE_NAME"); int n7 = n == 0 ? object.getInt("android.media.key.PID") : n; n4 = n5; MediaSessionManager.RemoteUserInfo remoteUserInfo = new MediaSessionManager.RemoteUserInfo((String)object2, n7, n2); n4 = n5; object2 = object.getBundle("android.media.key.CONNECTION_HINTS"); if (object2 == null) { n4 = n5; Log.w((String)MediaSession2Service.TAG, (String)"connectionHints shouldn't be null."); n4 = n5; object2 = Bundle.EMPTY; } else { n4 = n5; if (MediaSession2.hasCustomParcelable((Bundle)object2)) { n4 = n5; Log.w((String)MediaSession2Service.TAG, (String)"connectionHints contain custom parcelable. Ignoring."); n4 = n5; object2 = Bundle.EMPTY; } } n4 = n5; n4 = n5; MediaSession2.ControllerInfo controllerInfo = new MediaSession2.ControllerInfo(remoteUserInfo, mediaSession2Service.getMediaSessionManager().isTrustedForMediaControl(remoteUserInfo), controller2Link, (Bundle)object2); n4 = n5; if (DEBUG) { n4 = n5; n4 = n5; object2 = new StringBuilder(); n4 = n5; ((StringBuilder)object2).append("Handling incoming connection request from the controller="); n4 = n5; ((StringBuilder)object2).append(controllerInfo); n4 = n5; Log.d((String)MediaSession2Service.TAG, (String)((StringBuilder)object2).toString()); } n4 = n5; object2 = mediaSession2Service.onGetSession(controllerInfo); if (object2 != null) break block34; n4 = n5; if (DEBUG) { n4 = n5; n4 = n5; object = new StringBuilder(); n4 = n5; ((StringBuilder)object).append("Rejecting incoming connection request from the controller="); n4 = n5; ((StringBuilder)object).append(controllerInfo); n4 = n5; Log.d((String)MediaSession2Service.TAG, (String)((StringBuilder)object).toString()); } if (!true) return; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Notifying the controller of its disconnection"); } try { controller2Link.notifyDisconnected(0); return; } catch (RuntimeException runtimeException) { // empty catch block } return; } n4 = n5; mediaSession2Service.addSession((MediaSession2)object2); n4 = 0; ((MediaSession2)object2).onConnect(controller2Link, n, n2, n3, (Bundle)object); if (!false) return; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Notifying the controller of its disconnection"); } try { controller2Link.notifyDisconnected(0); return; } catch (RuntimeException runtimeException) { return; } catch (Throwable throwable) { n = n4; break block35; } catch (Exception exception) { n = 0; break block36; } catch (Exception exception) { n = n6; break block36; } catch (Throwable throwable) { n = 1; break block35; } catch (Exception exception) { n = n6; } } n4 = n; Log.w((String)MediaSession2Service.TAG, (String)"Failed to add a session to session service", (Throwable)object); if (n == 0) return; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Notifying the controller of its disconnection"); } try { controller2Link.notifyDisconnected(0); return; } catch (RuntimeException runtimeException) { return; } catch (Throwable throwable) { n = n4; } } if (n == 0) throw var1_12; if (DEBUG) { Log.d((String)MediaSession2Service.TAG, (String)"Notifying the controller of its disconnection"); } try { controller2Link.notifyDisconnected(0); throw var1_12; } catch (RuntimeException runtimeException) { // empty catch block } throw var1_12; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "void m5770d() throws C0841b;", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "public void swrap() throws NoUnusedObjectExeption;", "public synchronized void close() {\n /*\n r4 = this;\n monitor-enter(r4);\n r1 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ IllegalArgumentException -> 0x0009 }\n if (r0 != 0) goto L_0x000e;\n L_0x0007:\n monitor-exit(r4);\n return;\n L_0x0009:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n L_0x000e:\n r0 = new java.util.ArrayList;\t Catch:{ all -> 0x000b }\n r2 = r4.k;\t Catch:{ all -> 0x000b }\n r2 = r2.values();\t Catch:{ all -> 0x000b }\n r0.<init>(r2);\t Catch:{ all -> 0x000b }\n r2 = r0.iterator();\t Catch:{ all -> 0x000b }\n L_0x001d:\n r0 = r2.hasNext();\t Catch:{ all -> 0x000b }\n if (r0 == 0) goto L_0x0038;\n L_0x0023:\n r0 = r2.next();\t Catch:{ all -> 0x000b }\n r0 = (com.whatsapp.util.bl) r0;\t Catch:{ all -> 0x000b }\n r3 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n if (r3 == 0) goto L_0x0036;\n L_0x002f:\n r0 = com.whatsapp.util.bl.b(r0);\t Catch:{ IllegalArgumentException -> 0x0044 }\n r0.b();\t Catch:{ IllegalArgumentException -> 0x0044 }\n L_0x0036:\n if (r1 == 0) goto L_0x001d;\n L_0x0038:\n r4.h();\t Catch:{ all -> 0x000b }\n r0 = r4.m;\t Catch:{ all -> 0x000b }\n r0.close();\t Catch:{ all -> 0x000b }\n r0 = 0;\n r4.m = r0;\t Catch:{ all -> 0x000b }\n goto L_0x0007;\n L_0x0044:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x000b }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.close():void\");\n }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public void m9741j() throws cf {\r\n }", "int a(java.lang.String r8, com.google.ho r9, java.lang.StringBuilder r10, boolean r11, com.google.ae r12) {\n /*\n r7 = this;\n r1 = 0;\n r0 = r8.length();\t Catch:{ RuntimeException -> 0x0009 }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r1;\n L_0x0008:\n return r0;\n L_0x0009:\n r0 = move-exception;\n throw r0;\n L_0x000b:\n r2 = new java.lang.StringBuilder;\n r2.<init>(r8);\n r0 = J;\n r3 = 25;\n r0 = r0[r3];\n if (r9 == 0) goto L_0x001c;\n L_0x0018:\n r0 = r9.a();\n L_0x001c:\n r0 = r7.a(r2, r0);\n if (r11 == 0) goto L_0x0025;\n L_0x0022:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x0040 }\n L_0x0025:\n r3 = com.google.aw.FROM_DEFAULT_COUNTRY;\t Catch:{ RuntimeException -> 0x0042 }\n if (r0 == r3) goto L_0x005e;\n L_0x0029:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x003e }\n r1 = 2;\n if (r0 > r1) goto L_0x0044;\n L_0x0030:\n r0 = new com.google.ao;\t Catch:{ RuntimeException -> 0x003e }\n r1 = com.google.dk.TOO_SHORT_AFTER_IDD;\t Catch:{ RuntimeException -> 0x003e }\n r2 = J;\t Catch:{ RuntimeException -> 0x003e }\n r3 = 26;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x003e }\n r0.<init>(r1, r2);\t Catch:{ RuntimeException -> 0x003e }\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x003e:\n r0 = move-exception;\n throw r0;\n L_0x0040:\n r0 = move-exception;\n throw r0;\n L_0x0042:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x003e }\n L_0x0044:\n r0 = r7.a(r2, r10);\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r12.a(r0);\t Catch:{ RuntimeException -> 0x004e }\n goto L_0x0008;\n L_0x004e:\n r0 = move-exception;\n throw r0;\n L_0x0050:\n r0 = new com.google.ao;\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\n r2 = J;\n r3 = 24;\n r2 = r2[r3];\n r0.<init>(r1, r2);\n throw r0;\n L_0x005e:\n if (r9 == 0) goto L_0x00d2;\n L_0x0060:\n r0 = r9.L();\n r3 = java.lang.String.valueOf(r0);\n r4 = r2.toString();\n r5 = r4.startsWith(r3);\n if (r5 == 0) goto L_0x00d2;\n L_0x0072:\n r5 = new java.lang.StringBuilder;\n r3 = r3.length();\n r3 = r4.substring(r3);\n r5.<init>(r3);\n r3 = r9.X();\n r4 = r7.o;\n r6 = r3.g();\n r4 = r4.a(r6);\n r6 = 0;\n r7.a(r5, r9, r6);\n r6 = r7.o;\n r3 = r3.f();\n r3 = r6.a(r3);\n r6 = r4.matcher(r2);\t Catch:{ RuntimeException -> 0x00ca }\n r6 = r6.matches();\t Catch:{ RuntimeException -> 0x00ca }\n if (r6 != 0) goto L_0x00af;\n L_0x00a5:\n r4 = r4.matcher(r5);\t Catch:{ RuntimeException -> 0x00cc }\n r4 = r4.matches();\t Catch:{ RuntimeException -> 0x00cc }\n if (r4 != 0) goto L_0x00bb;\n L_0x00af:\n r2 = r2.toString();\t Catch:{ RuntimeException -> 0x00ce }\n r2 = r7.a(r3, r2);\t Catch:{ RuntimeException -> 0x00ce }\n r3 = com.google.dz.TOO_LONG;\t Catch:{ RuntimeException -> 0x00ce }\n if (r2 != r3) goto L_0x00d2;\n L_0x00bb:\n r10.append(r5);\t Catch:{ RuntimeException -> 0x00d0 }\n if (r11 == 0) goto L_0x00c5;\n L_0x00c0:\n r1 = com.google.aw.FROM_NUMBER_WITHOUT_PLUS_SIGN;\t Catch:{ RuntimeException -> 0x00d0 }\n r12.a(r1);\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00c5:\n r12.a(r0);\n goto L_0x0008;\n L_0x00ca:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00cc }\n L_0x00cc:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00ce }\n L_0x00ce:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x00d0 }\n L_0x00d0:\n r0 = move-exception;\n throw r0;\n L_0x00d2:\n r12.a(r1);\n r0 = r1;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, com.google.ho, java.lang.StringBuilder, boolean, com.google.ae):int\");\n }", "public void zzcr() throws {\n /*\n r5 = this;\n r0 = zzagr;\n monitor-enter(r0);\n r1 = r5.zzagu;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x0009:\n r1 = r5.zzags;\t Catch:{ Throwable -> 0x001b }\n if (r1 == 0) goto L_0x001e;\n L_0x000d:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n if (r2 == 0) goto L_0x001e;\n L_0x0011:\n r2 = r5.zzagp;\t Catch:{ Throwable -> 0x001b }\n r2.connect();\t Catch:{ Throwable -> 0x001b }\n r3 = 1;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n L_0x0019:\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n return;\n L_0x001b:\n r4 = move-exception;\n monitor-exit(r0);\t Catch:{ Throwable -> 0x001b }\n throw r4;\n L_0x001e:\n r3 = 0;\n r5.zzagu = r3;\t Catch:{ Throwable -> 0x001b }\n goto L_0x0019;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzax.zzcr():void\");\n }", "void m5768b() throws C0841b;", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo1944a() throws cf {\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "private void a(java.lang.String r11, java.lang.String r12, boolean r13, boolean r14, com.google.ae r15) {\n /*\n r10 = this;\n r9 = 48;\n r8 = 2;\n r6 = F;\n if (r11 != 0) goto L_0x0017;\n L_0x0007:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0015 }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x0015 }\n r2 = J;\t Catch:{ ao -> 0x0015 }\n r3 = 47;\n r2 = r2[r3];\t Catch:{ ao -> 0x0015 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0015 }\n throw r0;\t Catch:{ ao -> 0x0015 }\n L_0x0015:\n r0 = move-exception;\n throw r0;\n L_0x0017:\n r0 = r11.length();\t Catch:{ ao -> 0x002d }\n r1 = 250; // 0xfa float:3.5E-43 double:1.235E-321;\n if (r0 <= r1) goto L_0x002f;\n L_0x001f:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x002d }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x002d }\n r2 = J;\t Catch:{ ao -> 0x002d }\n r3 = 41;\n r2 = r2[r3];\t Catch:{ ao -> 0x002d }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x002d }\n throw r0;\t Catch:{ ao -> 0x002d }\n L_0x002d:\n r0 = move-exception;\n throw r0;\n L_0x002f:\n r7 = new java.lang.StringBuilder;\n r7.<init>();\n r10.a(r11, r7);\t Catch:{ ao -> 0x004f }\n r0 = r7.toString();\t Catch:{ ao -> 0x004f }\n r0 = b(r0);\t Catch:{ ao -> 0x004f }\n if (r0 != 0) goto L_0x0051;\n L_0x0041:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x004f }\n r1 = com.google.dk.NOT_A_NUMBER;\t Catch:{ ao -> 0x004f }\n r2 = J;\t Catch:{ ao -> 0x004f }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ ao -> 0x004f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x004f }\n throw r0;\t Catch:{ ao -> 0x004f }\n L_0x004f:\n r0 = move-exception;\n throw r0;\n L_0x0051:\n if (r14 == 0) goto L_0x006f;\n L_0x0053:\n r0 = r7.toString();\t Catch:{ ao -> 0x006d }\n r0 = r10.a(r0, r12);\t Catch:{ ao -> 0x006d }\n if (r0 != 0) goto L_0x006f;\n L_0x005d:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x006b }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x006b }\n r2 = J;\t Catch:{ ao -> 0x006b }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ ao -> 0x006b }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x006b }\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006b:\n r0 = move-exception;\n throw r0;\n L_0x006d:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x006b }\n L_0x006f:\n if (r13 == 0) goto L_0x0074;\n L_0x0071:\n r15.b(r11);\t Catch:{ ao -> 0x00d3 }\n L_0x0074:\n r0 = r10.b(r7);\n r1 = r0.length();\t Catch:{ ao -> 0x00d5 }\n if (r1 <= 0) goto L_0x0081;\n L_0x007e:\n r15.a(r0);\t Catch:{ ao -> 0x00d5 }\n L_0x0081:\n r2 = r10.e(r12);\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r1 = r7.toString();\t Catch:{ ao -> 0x00d7 }\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\t Catch:{ ao -> 0x00d7 }\n L_0x0095:\n if (r0 == 0) goto L_0x0182;\n L_0x0097:\n r1 = r10.b(r0);\n r4 = r1.equals(r12);\n if (r4 != 0) goto L_0x017f;\n L_0x00a1:\n r0 = r10.a(r0, r1);\n L_0x00a5:\n if (r6 == 0) goto L_0x00bd;\n L_0x00a7:\n a(r7);\t Catch:{ ao -> 0x0121 }\n r3.append(r7);\t Catch:{ ao -> 0x0121 }\n if (r12 == 0) goto L_0x00b8;\n L_0x00af:\n r1 = r0.L();\n r15.a(r1);\t Catch:{ ao -> 0x0123 }\n if (r6 == 0) goto L_0x00bd;\n L_0x00b8:\n if (r13 == 0) goto L_0x00bd;\n L_0x00ba:\n r15.l();\t Catch:{ ao -> 0x0125 }\n L_0x00bd:\n r1 = r3.length();\t Catch:{ ao -> 0x00d1 }\n if (r1 >= r8) goto L_0x0127;\n L_0x00c3:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x00d1 }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x00d1 }\n r2 = J;\t Catch:{ ao -> 0x00d1 }\n r3 = 44;\n r2 = r2[r3];\t Catch:{ ao -> 0x00d1 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x00d1 }\n throw r0;\t Catch:{ ao -> 0x00d1 }\n L_0x00d1:\n r0 = move-exception;\n throw r0;\n L_0x00d3:\n r0 = move-exception;\n throw r0;\n L_0x00d5:\n r0 = move-exception;\n throw r0;\n L_0x00d7:\n r0 = move-exception;\n r1 = g;\n r4 = r7.toString();\n r1 = r1.matcher(r4);\n r4 = r0.a();\t Catch:{ ao -> 0x0111 }\n r5 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x0111 }\n if (r4 != r5) goto L_0x0113;\n L_0x00ea:\n r4 = r1.lookingAt();\t Catch:{ ao -> 0x0111 }\n if (r4 == 0) goto L_0x0113;\n L_0x00f0:\n r0 = r1.end();\n r1 = r7.substring(r0);\n r0 = r10;\n r4 = r13;\n r5 = r15;\n r0 = r0.a(r1, r2, r3, r4, r5);\n if (r0 != 0) goto L_0x0095;\n L_0x0101:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x010f }\n r1 = com.google.dk.INVALID_COUNTRY_CODE;\t Catch:{ ao -> 0x010f }\n r2 = J;\t Catch:{ ao -> 0x010f }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ ao -> 0x010f }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x010f }\n throw r0;\t Catch:{ ao -> 0x010f }\n L_0x010f:\n r0 = move-exception;\n throw r0;\n L_0x0111:\n r0 = move-exception;\n throw r0;\n L_0x0113:\n r1 = new com.google.ao;\n r2 = r0.a();\n r0 = r0.getMessage();\n r1.<init>(r2, r0);\n throw r1;\n L_0x0121:\n r0 = move-exception;\n throw r0;\n L_0x0123:\n r0 = move-exception;\n throw r0;\t Catch:{ ao -> 0x0125 }\n L_0x0125:\n r0 = move-exception;\n throw r0;\n L_0x0127:\n if (r0 == 0) goto L_0x013a;\n L_0x0129:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r10.a(r3, r0, r1);\t Catch:{ ao -> 0x0150 }\n if (r13 == 0) goto L_0x013a;\n L_0x0133:\n r0 = r1.toString();\t Catch:{ ao -> 0x0150 }\n r15.c(r0);\t Catch:{ ao -> 0x0150 }\n L_0x013a:\n r0 = r3.length();\n if (r0 >= r8) goto L_0x0152;\n L_0x0140:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x014e }\n r1 = com.google.dk.TOO_SHORT_NSN;\t Catch:{ ao -> 0x014e }\n r2 = J;\t Catch:{ ao -> 0x014e }\n r3 = 42;\n r2 = r2[r3];\t Catch:{ ao -> 0x014e }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x014e }\n throw r0;\t Catch:{ ao -> 0x014e }\n L_0x014e:\n r0 = move-exception;\n throw r0;\n L_0x0150:\n r0 = move-exception;\n throw r0;\n L_0x0152:\n r1 = 16;\n if (r0 <= r1) goto L_0x0166;\n L_0x0156:\n r0 = new com.google.ao;\t Catch:{ ao -> 0x0164 }\n r1 = com.google.dk.TOO_LONG;\t Catch:{ ao -> 0x0164 }\n r2 = J;\t Catch:{ ao -> 0x0164 }\n r3 = 45;\n r2 = r2[r3];\t Catch:{ ao -> 0x0164 }\n r0.<init>(r1, r2);\t Catch:{ ao -> 0x0164 }\n throw r0;\t Catch:{ ao -> 0x0164 }\n L_0x0164:\n r0 = move-exception;\n throw r0;\n L_0x0166:\n r0 = 0;\n r0 = r3.charAt(r0);\t Catch:{ ao -> 0x017d }\n if (r0 != r9) goto L_0x0171;\n L_0x016d:\n r0 = 1;\n r15.a(r0);\t Catch:{ ao -> 0x017d }\n L_0x0171:\n r0 = r3.toString();\n r0 = java.lang.Long.parseLong(r0);\n r15.a(r0);\n return;\n L_0x017d:\n r0 = move-exception;\n throw r0;\n L_0x017f:\n r0 = r2;\n goto L_0x00a5;\n L_0x0182:\n r0 = r2;\n goto L_0x00a7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String, boolean, boolean, com.google.ae):void\");\n }", "private final void zzaj() {\n /*\n r6 = this;\n java.lang.Object r0 = r6.zzsC\n monitor-enter(r0)\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n if (r1 == 0) goto L_0x0013\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ all -> 0x0026 }\n java.util.concurrent.CountDownLatch r1 = r1.zzsI // Catch:{ all -> 0x0026 }\n r1.countDown() // Catch:{ all -> 0x0026 }\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = r6.zzsD // Catch:{ InterruptedException -> 0x0013 }\n r1.join() // Catch:{ InterruptedException -> 0x0013 }\n L_0x0013:\n long r1 = r6.zzsE // Catch:{ all -> 0x0026 }\n r3 = 0\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 <= 0) goto L_0x0024\n com.google.android.gms.ads.identifier.AdvertisingIdClient$zza r1 = new com.google.android.gms.ads.identifier.AdvertisingIdClient$zza // Catch:{ all -> 0x0026 }\n long r2 = r6.zzsE // Catch:{ all -> 0x0026 }\n r1.<init>(r6, r2) // Catch:{ all -> 0x0026 }\n r6.zzsD = r1 // Catch:{ all -> 0x0026 }\n L_0x0024:\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n return\n L_0x0026:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0026 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.identifier.AdvertisingIdClient.zzaj():void\");\n }", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "private synchronized void a(com.whatsapp.util.x r11, boolean r12) {\n /*\n r10 = this;\n r0 = 0;\n monitor-enter(r10);\n r2 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x0016 }\n r3 = com.whatsapp.util.x.a(r11);\t Catch:{ all -> 0x0016 }\n r1 = com.whatsapp.util.bl.b(r3);\t Catch:{ IllegalArgumentException -> 0x0014 }\n if (r1 == r11) goto L_0x0019;\n L_0x000e:\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0014 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0014 }\n L_0x0014:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0016:\n r0 = move-exception;\n monitor-exit(r10);\n throw r0;\n L_0x0019:\n if (r12 == 0) goto L_0x0058;\n L_0x001b:\n r1 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x0052 }\n if (r1 != 0) goto L_0x0058;\n L_0x0021:\n r1 = r0;\n L_0x0022:\n r4 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r1 >= r4) goto L_0x0058;\n L_0x0026:\n r4 = r3.b(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = r4.exists();\t Catch:{ IllegalArgumentException -> 0x0050 }\n if (r4 != 0) goto L_0x0054;\n L_0x0030:\n r11.b();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = 24;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0050 }\n L_0x0050:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0052:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0054:\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x0022;\n L_0x0058:\n r1 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r0 >= r1) goto L_0x008f;\n L_0x005c:\n r1 = r3.b(r0);\t Catch:{ all -> 0x0016 }\n if (r12 == 0) goto L_0x0088;\n L_0x0062:\n r4 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0126 }\n if (r4 == 0) goto L_0x008b;\n L_0x0068:\n r4 = r3.a(r0);\t Catch:{ all -> 0x0016 }\n r1.renameTo(r4);\t Catch:{ all -> 0x0016 }\n r5 = com.whatsapp.util.bl.e(r3);\t Catch:{ all -> 0x0016 }\n r6 = r5[r0];\t Catch:{ all -> 0x0016 }\n r4 = r4.length();\t Catch:{ all -> 0x0016 }\n r8 = com.whatsapp.util.bl.e(r3);\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8[r0] = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r6 = r8 - r6;\n r4 = r4 + r6;\n r10.i = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n a(r1);\t Catch:{ IllegalArgumentException -> 0x0128 }\n L_0x008b:\n r0 = r0 + 1;\n if (r2 == 0) goto L_0x0058;\n L_0x008f:\n r0 = r10.e;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 + 1;\n r10.e = r0;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = 0;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 | r12;\n if (r0 == 0) goto L_0x00e0;\n L_0x00a0:\n r0 = 1;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012c }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = z;\t Catch:{ IllegalArgumentException -> 0x012c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = r3.a();\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = 10;\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012c }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012c }\n if (r12 == 0) goto L_0x010f;\n L_0x00d4:\n r0 = r10.n;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 1;\n r4 = r4 + r0;\n r10.n = r4;\t Catch:{ IllegalArgumentException -> 0x012e }\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012e }\n if (r2 == 0) goto L_0x010f;\n L_0x00e0:\n r0 = r10.k;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.remove(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 25;\n r2 = r2[r4];\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = 10;\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x010f:\n r0 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r2 = r10.c;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 > 0) goto L_0x011d;\n L_0x0117:\n r0 = r10.f();\t Catch:{ IllegalArgumentException -> 0x0132 }\n if (r0 == 0) goto L_0x0124;\n L_0x011d:\n r0 = r10.d;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r1 = r10.j;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r0.submit(r1);\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0124:\n monitor-exit(r10);\n return;\n L_0x0126:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0128:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x012a:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012c }\n L_0x012c:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x012e:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0130:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0132:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.a(com.whatsapp.util.x, boolean):void\");\n }", "public void smell() {\n\t\t\n\t}", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "void mo57276a(Exception exc);", "public final synchronized void e(a.c.a.c.c r5, boolean r6) {\n /*\n r4 = this;\n monitor-enter(r4)\n monitor-enter(r4) // Catch:{ all -> 0x00a9 }\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n r1 = 1\n r2 = 0\n if (r0 != 0) goto L_0x0009\n goto L_0x001e\n L_0x0009:\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f16c // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r3 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r3 = r3.size() // Catch:{ all -> 0x00a6 }\n int r3 = r3 + r0\n java.util.ArrayList<a.c.a.c.c> r0 = r4.f15b // Catch:{ all -> 0x00a6 }\n int r0 = r0.size() // Catch:{ all -> 0x00a6 }\n if (r3 != r0) goto L_0x0020\n L_0x001e:\n r0 = 1\n goto L_0x0021\n L_0x0020:\n r0 = 0\n L_0x0021:\n r3 = 0\n if (r0 == 0) goto L_0x0055\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x00a3\n java.util.ArrayList<a.c.a.c.c> r5 = r4.f17d // Catch:{ all -> 0x00a6 }\n int r5 = r5.size() // Catch:{ all -> 0x00a6 }\n if (r5 != 0) goto L_0x0040\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x003f\n java.lang.String r6 = \"downloadFinished\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r1) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x003f:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0040:\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f17d // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0054\n java.lang.String r6 = \"downloadFinishedWithErrors\"\n a.c.a.f.e.b(r6) // Catch:{ all -> 0x00a6 }\n r5.b(r2) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x0054:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0055:\n a.c.a.c.h r0 = r4.f14a // Catch:{ all -> 0x00a6 }\n if (r0 == 0) goto L_0x00a3\n if (r6 == 0) goto L_0x0085\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x0084\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemSuccess: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n a.c.a.c.h r5 = r4.f14a // Catch:{ all -> 0x00a6 }\n java.util.ArrayList<a.c.a.c.c> r6 = r4.f16c // Catch:{ all -> 0x00a6 }\n r6.size() // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r5 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r5 // Catch:{ all -> 0x00a6 }\n if (r5 == 0) goto L_0x0083\n goto L_0x00a3\n L_0x0083:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0084:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x0085:\n a.c.a.c.h r6 = r4.f14a // Catch:{ all -> 0x00a6 }\n com.cuatroochenta.miniland.downloader.FileDownloaderService r6 = (com.cuatroochenta.miniland.downloader.FileDownloaderService) r6 // Catch:{ all -> 0x00a6 }\n if (r6 == 0) goto L_0x00a2\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00a6 }\n r6.<init>() // Catch:{ all -> 0x00a6 }\n java.lang.String r0 = \"downloadItemError: \"\n r6.append(r0) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r5.f9a // Catch:{ all -> 0x00a6 }\n r6.append(r5) // Catch:{ all -> 0x00a6 }\n java.lang.String r5 = r6.toString() // Catch:{ all -> 0x00a6 }\n a.c.a.f.e.b(r5) // Catch:{ all -> 0x00a6 }\n goto L_0x00a3\n L_0x00a2:\n throw r3 // Catch:{ all -> 0x00a6 }\n L_0x00a3:\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n monitor-exit(r4)\n return\n L_0x00a6:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x00a6 }\n throw r5 // Catch:{ all -> 0x00a9 }\n L_0x00a9:\n r5 = move-exception\n monitor-exit(r4)\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.c.a.c.e.e(a.c.a.c.c, boolean):void\");\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "protected void thoroughInspection() {}", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public void mo38101a(okhttp3.internal.http2.C13256a r4, okhttp3.internal.http2.C13256a r5, java.io.IOException r6) {\n /*\n r3 = this;\n r3.mo38100a(r4) // Catch:{ IOException -> 0x0003 }\n L_0x0003:\n r4 = 0\n monitor-enter(r3)\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n boolean r0 = r0.isEmpty() // Catch:{ all -> 0x004a }\n if (r0 != 0) goto L_0x0026\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r4 = r3.f34193g // Catch:{ all -> 0x004a }\n java.util.Collection r4 = r4.values() // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n int r0 = r0.size() // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r0 = new okhttp3.internal.http2.C13281h[r0] // Catch:{ all -> 0x004a }\n java.lang.Object[] r4 = r4.toArray(r0) // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r4 = (okhttp3.internal.http2.C13281h[]) r4 // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n r0.clear() // Catch:{ all -> 0x004a }\n L_0x0026:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n if (r4 == 0) goto L_0x0035\n int r0 = r4.length\n r1 = 0\n L_0x002b:\n if (r1 >= r0) goto L_0x0035\n r2 = r4[r1]\n r2.mo38133a(r5, r6) // Catch:{ IOException -> 0x0032 }\n L_0x0032:\n int r1 = r1 + 1\n goto L_0x002b\n L_0x0035:\n okhttp3.internal.http2.i r4 = r3.f34208v // Catch:{ IOException -> 0x003a }\n r4.close() // Catch:{ IOException -> 0x003a }\n L_0x003a:\n java.net.Socket r4 = r3.f34207u // Catch:{ IOException -> 0x003f }\n r4.close() // Catch:{ IOException -> 0x003f }\n L_0x003f:\n java.util.concurrent.ScheduledExecutorService r4 = r3.f34198l\n r4.shutdown()\n java.util.concurrent.ExecutorService r4 = r3.f34199m\n r4.shutdown()\n return\n L_0x004a:\n r4 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.C13262e.mo38101a(okhttp3.internal.http2.a, okhttp3.internal.http2.a, java.io.IOException):void\");\n }", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public void c() {\n /*\n r14 = this;\n io.b.o<? super U> r0 = r14.actual\n r1 = 1\n r2 = 1\n L_0x0004:\n boolean r3 = r14.d()\n if (r3 == 0) goto L_0x000b\n return\n L_0x000b:\n io.b.e.c.d<U> r3 = r14.queue\n if (r3 == 0) goto L_0x0023\n L_0x000f:\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x0016\n return\n L_0x0016:\n java.lang.Object r4 = r3.poll()\n if (r4 != 0) goto L_0x001f\n if (r4 != 0) goto L_0x000f\n goto L_0x0023\n L_0x001f:\n r0.a(r4)\n goto L_0x000f\n L_0x0023:\n boolean r3 = r14.done\n io.b.e.c.d<U> r4 = r14.queue\n java.util.concurrent.atomic.AtomicReference<io.b.e.e.d.i$a<?, ?>[]> r5 = r14.observers\n java.lang.Object r5 = r5.get()\n io.b.e.e.d.i$a[] r5 = (io.b.e.e.d.i.a[]) r5\n int r6 = r5.length\n int r7 = r14.maxConcurrency\n r8 = 2147483647(0x7fffffff, float:NaN)\n r9 = 0\n if (r7 == r8) goto L_0x0044\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r7 = r14.sources // Catch:{ all -> 0x0041 }\n int r7 = r7.size() // Catch:{ all -> 0x0041 }\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n goto L_0x0045\n L_0x0041:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0041 }\n throw r0\n L_0x0044:\n r7 = 0\n L_0x0045:\n if (r3 == 0) goto L_0x0067\n if (r4 == 0) goto L_0x004f\n boolean r3 = r4.isEmpty()\n if (r3 == 0) goto L_0x0067\n L_0x004f:\n if (r6 != 0) goto L_0x0067\n if (r7 != 0) goto L_0x0067\n io.b.e.h.c r1 = r14.errors\n java.lang.Throwable r1 = r1.a()\n java.lang.Throwable r2 = io.b.e.h.f.f33557a\n if (r1 == r2) goto L_0x0066\n if (r1 != 0) goto L_0x0063\n r0.a()\n goto L_0x0066\n L_0x0063:\n r0.a((java.lang.Throwable) r1)\n L_0x0066:\n return\n L_0x0067:\n if (r6 == 0) goto L_0x0106\n long r3 = r14.lastId\n int r7 = r14.lastIndex\n if (r6 <= r7) goto L_0x0077\n r10 = r5[r7]\n long r10 = r10.id\n int r12 = (r10 > r3 ? 1 : (r10 == r3 ? 0 : -1))\n if (r12 == 0) goto L_0x0098\n L_0x0077:\n if (r6 > r7) goto L_0x007a\n r7 = 0\n L_0x007a:\n r10 = r7\n r7 = 0\n L_0x007c:\n if (r7 >= r6) goto L_0x008f\n r11 = r5[r10]\n long r11 = r11.id\n int r13 = (r11 > r3 ? 1 : (r11 == r3 ? 0 : -1))\n if (r13 != 0) goto L_0x0087\n goto L_0x008f\n L_0x0087:\n int r10 = r10 + 1\n if (r10 != r6) goto L_0x008c\n r10 = 0\n L_0x008c:\n int r7 = r7 + 1\n goto L_0x007c\n L_0x008f:\n r14.lastIndex = r10\n r3 = r5[r10]\n long r3 = r3.id\n r14.lastId = r3\n r7 = r10\n L_0x0098:\n r3 = 0\n r4 = 0\n L_0x009a:\n if (r3 >= r6) goto L_0x00fd\n boolean r10 = r14.d()\n if (r10 == 0) goto L_0x00a3\n return\n L_0x00a3:\n r10 = r5[r7]\n L_0x00a5:\n boolean r11 = r14.d()\n if (r11 == 0) goto L_0x00ac\n return\n L_0x00ac:\n io.b.e.c.e<U> r11 = r10.queue\n if (r11 != 0) goto L_0x00b1\n goto L_0x00b9\n L_0x00b1:\n java.lang.Object r12 = r11.poll() // Catch:{ Throwable -> 0x00e2 }\n if (r12 != 0) goto L_0x00d8\n if (r12 != 0) goto L_0x00a5\n L_0x00b9:\n boolean r11 = r10.done\n io.b.e.c.e<U> r12 = r10.queue\n if (r11 == 0) goto L_0x00d2\n if (r12 == 0) goto L_0x00c7\n boolean r11 = r12.isEmpty()\n if (r11 == 0) goto L_0x00d2\n L_0x00c7:\n r14.b(r10)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00d1\n return\n L_0x00d1:\n r4 = 1\n L_0x00d2:\n int r7 = r7 + 1\n if (r7 != r6) goto L_0x00fb\n r7 = 0\n goto L_0x00fb\n L_0x00d8:\n r0.a(r12)\n boolean r12 = r14.d()\n if (r12 == 0) goto L_0x00b1\n return\n L_0x00e2:\n r4 = move-exception\n io.b.c.b.b(r4)\n r10.b()\n io.b.e.h.c r11 = r14.errors\n r11.a(r4)\n boolean r4 = r14.d()\n if (r4 == 0) goto L_0x00f5\n return\n L_0x00f5:\n r14.b(r10)\n int r3 = r3 + 1\n r4 = 1\n L_0x00fb:\n int r3 = r3 + r1\n goto L_0x009a\n L_0x00fd:\n r14.lastIndex = r7\n r3 = r5[r7]\n long r5 = r3.id\n r14.lastId = r5\n goto L_0x0107\n L_0x0106:\n r4 = 0\n L_0x0107:\n if (r4 == 0) goto L_0x0129\n int r3 = r14.maxConcurrency\n if (r3 == r8) goto L_0x0004\n monitor-enter(r14)\n java.util.Queue<io.b.m<? extends U>> r3 = r14.sources // Catch:{ all -> 0x0126 }\n java.lang.Object r3 = r3.poll() // Catch:{ all -> 0x0126 }\n io.b.m r3 = (io.b.m) r3 // Catch:{ all -> 0x0126 }\n if (r3 != 0) goto L_0x0120\n int r3 = r14.wip // Catch:{ all -> 0x0126 }\n int r3 = r3 - r1\n r14.wip = r3 // Catch:{ all -> 0x0126 }\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n goto L_0x0004\n L_0x0120:\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n r14.a(r3)\n goto L_0x0004\n L_0x0126:\n r0 = move-exception\n monitor-exit(r14) // Catch:{ all -> 0x0126 }\n throw r0\n L_0x0129:\n int r2 = -r2\n int r2 = r14.addAndGet(r2)\n if (r2 != 0) goto L_0x0004\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.b.e.e.d.i.b.c():void\");\n }", "public void pos3() {\n int num1, num2;\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e1) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n try {\n num1 = 0;\n num2 = 62 / num1;\n System.out.println(num2);\n System.out.println(\"Hey I'm at the end of try block\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e2) {\n System.out.println(\"You should not divide a number by zero\");\n }\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "public synchronized void a(com.umeng.commonsdk.proguard.f r9) {\n /*\n r8 = this;\n monitor-enter(r8);\n r0 = \"UMSysLocation\";\n r1 = 1;\n r2 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r3 = \"getSystemLocation\";\n r4 = 0;\n r2[r4] = r3;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00c6;\n L_0x0010:\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n if (r0 != 0) goto L_0x0016;\n L_0x0014:\n goto L_0x00c6;\n L_0x0016:\n r8.e = r9;\t Catch:{ all -> 0x00c8 }\n r0 = r8.d;\t Catch:{ all -> 0x00c8 }\n r2 = \"android.permission.ACCESS_COARSE_LOCATION\";\n r0 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r0, r2);\t Catch:{ all -> 0x00c8 }\n r2 = r8.d;\t Catch:{ all -> 0x00c8 }\n r3 = \"android.permission.ACCESS_FINE_LOCATION\";\n r2 = com.umeng.commonsdk.utils.UMUtils.checkPermission(r2, r3);\t Catch:{ all -> 0x00c8 }\n r3 = 0;\n if (r0 != 0) goto L_0x0039;\n L_0x002b:\n if (r2 == 0) goto L_0x002e;\n L_0x002d:\n goto L_0x0039;\n L_0x002e:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x0037;\n L_0x0032:\n r9 = r8.e;\t Catch:{ all -> 0x00c8 }\n r9.a(r3);\t Catch:{ all -> 0x00c8 }\n L_0x0037:\n monitor-exit(r8);\n return;\n L_0x0039:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n if (r5 == 0) goto L_0x00c4;\n L_0x003d:\n r5 = android.os.Build.VERSION.SDK_INT;\t Catch:{ Throwable -> 0x0098 }\n r6 = 21;\n if (r5 < r6) goto L_0x0054;\n L_0x0043:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x0054:\n if (r2 == 0) goto L_0x005f;\n L_0x0056:\n r5 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r6 = \"gps\";\n r5 = r5.isProviderEnabled(r6);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0060;\n L_0x005f:\n r5 = 0;\n L_0x0060:\n if (r0 == 0) goto L_0x006b;\n L_0x0062:\n r6 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r7 = \"network\";\n r6 = r6.isProviderEnabled(r7);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x006c;\n L_0x006b:\n r6 = 0;\n L_0x006c:\n if (r5 != 0) goto L_0x0070;\n L_0x006e:\n if (r6 == 0) goto L_0x0091;\n L_0x0070:\n r5 = \"UMSysLocation\";\n r6 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0098 }\n r7 = \"getLastKnownLocation(LocationManager.PASSIVE_PROVIDER)\";\n r6[r4] = r7;\t Catch:{ Throwable -> 0x0098 }\n com.umeng.commonsdk.statistics.common.e.a(r5, r6);\t Catch:{ Throwable -> 0x0098 }\n if (r2 == 0) goto L_0x0086;\n L_0x007d:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"passive\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0086:\n if (r0 == 0) goto L_0x0091;\n L_0x0088:\n r0 = r8.b;\t Catch:{ Throwable -> 0x0098 }\n r2 = \"network\";\n r0 = r0.getLastKnownLocation(r2);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x0092;\n L_0x0091:\n r0 = r3;\n L_0x0092:\n r2 = r8.e;\t Catch:{ Throwable -> 0x0098 }\n r2.a(r0);\t Catch:{ Throwable -> 0x0098 }\n goto L_0x00c4;\n L_0x0098:\n r0 = move-exception;\n r2 = \"UMSysLocation\";\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x00c8 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c8 }\n r5.<init>();\t Catch:{ all -> 0x00c8 }\n r6 = \"e is \";\n r5.append(r6);\t Catch:{ all -> 0x00c8 }\n r5.append(r0);\t Catch:{ all -> 0x00c8 }\n r5 = r5.toString();\t Catch:{ all -> 0x00c8 }\n r1[r4] = r5;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.statistics.common.e.a(r2, r1);\t Catch:{ all -> 0x00c8 }\n if (r9 == 0) goto L_0x00bf;\n L_0x00b5:\n r9.a(r3);\t Catch:{ Throwable -> 0x00b9 }\n goto L_0x00bf;\n L_0x00b9:\n r9 = move-exception;\n r1 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r1, r9);\t Catch:{ all -> 0x00c8 }\n L_0x00bf:\n r9 = r8.d;\t Catch:{ all -> 0x00c8 }\n com.umeng.commonsdk.proguard.b.a(r9, r0);\t Catch:{ all -> 0x00c8 }\n L_0x00c4:\n monitor-exit(r8);\n return;\n L_0x00c6:\n monitor-exit(r8);\n return;\n L_0x00c8:\n r9 = move-exception;\n monitor-exit(r8);\n throw r9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.d.a(com.umeng.commonsdk.proguard.f):void\");\n }", "public void pos2() {\n try {\n Object obj = null;\n obj.hashCode();\n System.out.println(\"Hey I'm at the end of try block\");\n } catch (NullPointerException e) {\n System.out.println(\"Don't try to get the hashcode of a null object.\");\n // BUG: Diagnostic contains: Catch general exception not specific enough.\n } catch (Exception e) {\n System.out.println(\"Exception occurred\");\n }\n System.out.println(\"I'm out of try-catch block in Java.\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public void mo1964g() throws cf {\r\n }", "public abstract void mo13750a(Throwable th, PrintWriter printWriter);", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "public void mo37873b() {\n C13256a aVar;\n C13256a aVar2;\n C13256a aVar3 = C13256a.INTERNAL_ERROR;\n e = null;\n try {\n this.f34245f.mo38127a((C13280b) this);\n while (this.f34245f.mo38128a(false, (C13280b) this)) {\n }\n aVar = C13256a.NO_ERROR;\n try {\n aVar2 = C13256a.CANCEL;\n } catch (IOException e) {\n e = e;\n }\n } catch (IOException e2) {\n e = e2;\n aVar = aVar3;\n try {\n aVar = C13256a.PROTOCOL_ERROR;\n aVar2 = C13256a.PROTOCOL_ERROR;\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n } catch (Throwable th) {\n th = th;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n } catch (Throwable th2) {\n th = th2;\n aVar = aVar3;\n C13262e.this.mo38101a(aVar, aVar3, e);\n C13184e.m34503a((Closeable) this.f34245f);\n throw th;\n }\n C13262e.this.mo38101a(aVar, aVar2, e);\n C13184e.m34503a((Closeable) this.f34245f);\n }", "void mo67922a(AbstractC32732ag agVar, Throwable th);", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "public int getDrawingOrder() {\n/* 1068 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo1976s() throws cf {\r\n }", "private static boolean m20205b(java.lang.Throwable r3) {\n /*\n r0 = r3\n L_0x0001:\n if (r0 == 0) goto L_0x0015\n boolean r1 = r0 instanceof com.google.android.exoplayer2.upstream.DataSourceException\n if (r1 == 0) goto L_0x0010\n r1 = r0\n com.google.android.exoplayer2.upstream.DataSourceException r1 = (com.google.android.exoplayer2.upstream.DataSourceException) r1\n int r1 = r1.f18593a\n if (r1 != 0) goto L_0x0010\n r2 = 1\n return r2\n L_0x0010:\n java.lang.Throwable r0 = r0.getCause()\n goto L_0x0001\n L_0x0015:\n r1 = 0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.upstream.cache.C8465b.m20205b(java.io.IOException):boolean\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "public org.a9 a() {\n /*\n r4 = this;\n r1 = 0;\n r0 = r4.c;\n if (r0 != 0) goto L_0x0040;\n L_0x0005:\n monitor-enter(r4);\n r0 = r4.c;\t Catch:{ all -> 0x0043 }\n if (r0 != 0) goto L_0x003f;\n L_0x000a:\n r2 = r4.e;\t Catch:{ IllegalArgumentException -> 0x0041 }\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r0 = r4.b;\t Catch:{ all -> 0x0043 }\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 8;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n r3 = 0;\n r0 = r0.getSharedPreferences(r2, r3);\t Catch:{ all -> 0x0043 }\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 6;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n r3 = \"\";\n r0 = r0.getString(r2, r3);\t Catch:{ all -> 0x0043 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ IllegalArgumentException -> 0x0046 }\n if (r2 == 0) goto L_0x0053;\n L_0x002d:\n r2 = r1;\n L_0x002e:\n if (r2 == 0) goto L_0x0039;\n L_0x0030:\n r0 = new org.a9;\t Catch:{ IllegalArgumentException -> 0x0048 }\n r0.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0048 }\n r2 = com.whatsapp.DialogToastActivity.f;\t Catch:{ IllegalArgumentException -> 0x0048 }\n if (r2 == 0) goto L_0x003a;\n L_0x0039:\n r0 = r1;\n L_0x003a:\n r4.c = r0;\t Catch:{ all -> 0x0043 }\n r1 = 1;\n r4.e = r1;\t Catch:{ all -> 0x0043 }\n L_0x003f:\n monitor-exit(r4);\t Catch:{ all -> 0x0043 }\n L_0x0040:\n return r0;\n L_0x0041:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0043 }\n L_0x0043:\n r0 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0043 }\n throw r0;\n L_0x0046:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0048 }\n L_0x0048:\n r0 = move-exception;\n r2 = z;\t Catch:{ all -> 0x0043 }\n r3 = 7;\n r2 = r2[r3];\t Catch:{ all -> 0x0043 }\n com.whatsapp.util.Log.c(r2, r0);\t Catch:{ all -> 0x0043 }\n r0 = r1;\n goto L_0x003a;\n L_0x0053:\n r2 = 3;\n r0 = android.backport.util.Base64.decode(r0, r2);\t Catch:{ IllegalArgumentException -> 0x0048 }\n r2 = r0;\n goto L_0x002e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.l9.a():org.a9\");\n }", "public abstract void mo13751b(Throwable th, Throwable th2);", "protected int handleNext(int position) {\n/* 283 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract void mo33865a(Throwable th, Throwable th2);", "public boolean enoughToFilter() {\n/* 468 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void mo51373a() {\n }", "final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }", "void unableToListContents();", "private void m50366E() {\n }", "public void method_4270() {}", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "void mo1031a(Throwable th);", "public void mo5385r() {\n throw null;\n }", "public void sendeFehlerHelo();", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public static boolean a(android.content.Context r4, byte[] r5) {\n /*\n r1 = d;\n r0 = 0;\n L_0x0003:\n r2 = c();\t Catch:{ Exception -> 0x003a }\n if (r2 != 0) goto L_0x0010;\n L_0x0009:\n r2 = e;\t Catch:{ Exception -> 0x003a }\n r2.block();\t Catch:{ Exception -> 0x003a }\n if (r1 == 0) goto L_0x0003;\n L_0x0010:\n r1 = z;\t Catch:{ Exception -> 0x003a }\n r2 = 22;\n r1 = r1[r2];\t Catch:{ Exception -> 0x003a }\n com.whatsapp.util.Log.i(r1);\t Catch:{ Exception -> 0x003a }\n r1 = com.whatsapp.contact.o.NOTIFICATION_DELTA;\t Catch:{ Exception -> 0x003a }\n r0 = a(r4, r1, r5);\t Catch:{ Exception -> 0x003a }\n r1 = b();\t Catch:{ Exception -> 0x0038 }\n if (r1 != 0) goto L_0x002e;\n L_0x0025:\n r1 = z;\t Catch:{ Exception -> 0x0038 }\n r2 = 16;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0038 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0038 }\n L_0x002e:\n r1 = z;\n r2 = 18;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n L_0x0037:\n return r0;\n L_0x0038:\n r0 = move-exception;\n throw r0;\n L_0x003a:\n r1 = move-exception;\n r2 = z;\t Catch:{ all -> 0x005d }\n r3 = 20;\n r2 = r2[r3];\t Catch:{ all -> 0x005d }\n com.whatsapp.util.Log.b(r2, r1);\t Catch:{ all -> 0x005d }\n r1 = b();\n if (r1 != 0) goto L_0x0053;\n L_0x004a:\n r1 = z;\n r2 = 19;\n r1 = r1[r2];\n com.whatsapp.util.Log.e(r1);\n L_0x0053:\n r1 = z;\n r2 = 23;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n goto L_0x0037;\n L_0x005d:\n r0 = move-exception;\n r1 = b();\t Catch:{ Exception -> 0x0077 }\n if (r1 != 0) goto L_0x006d;\n L_0x0064:\n r1 = z;\t Catch:{ Exception -> 0x0077 }\n r2 = 21;\n r1 = r1[r2];\t Catch:{ Exception -> 0x0077 }\n com.whatsapp.util.Log.e(r1);\t Catch:{ Exception -> 0x0077 }\n L_0x006d:\n r1 = z;\n r2 = 17;\n r1 = r1[r2];\n com.whatsapp.util.Log.i(r1);\n throw r0;\n L_0x0077:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(android.content.Context, byte[]):boolean\");\n }", "@Override\n\tpublic void VisitTryNode(BunTryNode Node) {\n\n\t}", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public com.yandex.metrica.impl.bc.c H() {\n /*\n r9 = this;\n r0 = 0\n android.database.Cursor r1 = r9.I() // Catch:{ Exception -> 0x0048, all -> 0x003f }\n if (r1 == 0) goto L_0x0013\n boolean r2 = r1.moveToFirst() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 == 0) goto L_0x0013\n int r2 = r1.getCount() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 != 0) goto L_0x0049\n L_0x0013:\n com.yandex.metrica.impl.ob.fo r2 = r9.m // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r3 = r9.D() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n com.yandex.metrica.impl.ob.en r5 = com.yandex.metrica.impl.ob.en.BACKGROUND // Catch:{ Exception -> 0x0049, all -> 0x003d }\n android.database.Cursor r0 = r2.a((long) r3, (com.yandex.metrica.impl.ob.en) r5) // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r0 == 0) goto L_0x0049\n boolean r2 = r0.moveToFirst() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 == 0) goto L_0x0049\n int r2 = r0.getCount() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n if (r2 <= 0) goto L_0x0049\n com.yandex.metrica.impl.ob.fo r3 = r9.m // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r4 = r9.D() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n com.yandex.metrica.impl.ob.en r6 = com.yandex.metrica.impl.ob.en.BACKGROUND // Catch:{ Exception -> 0x0049, all -> 0x003d }\n long r7 = java.lang.System.currentTimeMillis() // Catch:{ Exception -> 0x0049, all -> 0x003d }\n r3.a((long) r4, (com.yandex.metrica.impl.ob.en) r6, (long) r7) // Catch:{ Exception -> 0x0049, all -> 0x003d }\n goto L_0x0049\n L_0x003d:\n r2 = move-exception\n goto L_0x0041\n L_0x003f:\n r2 = move-exception\n r1 = r0\n L_0x0041:\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r1)\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r0)\n throw r2\n L_0x0048:\n r1 = r0\n L_0x0049:\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r1)\n com.yandex.metrica.impl.bv.a((android.database.Cursor) r0)\n com.yandex.metrica.impl.bc$c r0 = super.H()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.yandex.metrica.impl.bd.H():com.yandex.metrica.impl.bc$c\");\n }", "public com.google.cX a(com.google.ad r5, com.google.h r6) {\n /*\n r4 = this;\n r2 = 0;\n r0 = com.google.cM.i;\t Catch:{ fN -> 0x000f }\n r0 = r0.parsePartialFrom(r5, r6);\t Catch:{ fN -> 0x000f }\n r0 = (com.google.cM) r0;\t Catch:{ fN -> 0x000f }\n if (r0 == 0) goto L_0x000e;\n L_0x000b:\n r4.a(r0);\t Catch:{ fN -> 0x0024 }\n L_0x000e:\n return r4;\n L_0x000f:\n r0 = move-exception;\n r1 = r0;\n r0 = r1.h();\t Catch:{ all -> 0x0026 }\n r0 = (com.google.cM) r0;\t Catch:{ all -> 0x0026 }\n throw r1;\t Catch:{ all -> 0x0018 }\n L_0x0018:\n r1 = move-exception;\n r3 = r1;\n r1 = r0;\n r0 = r3;\n L_0x001c:\n if (r1 == 0) goto L_0x0021;\n L_0x001e:\n r4.a(r1);\t Catch:{ fN -> 0x0022 }\n L_0x0021:\n throw r0;\n L_0x0022:\n r0 = move-exception;\n throw r0;\n L_0x0024:\n r0 = move-exception;\n throw r0;\n L_0x0026:\n r0 = move-exception;\n r1 = r2;\n goto L_0x001c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cX.a(com.google.ad, com.google.h):com.google.cX\");\n }", "public final void mo28153e() {\n super.mo28153e();\n try {\n this.f4965f = null;\n } catch (Exception unused) {\n } catch (Throwable th) {\n this.f4964e.mo28153e();\n throw th;\n }\n this.f4964e.mo28153e();\n }", "private boolean a(java.lang.String r2, java.lang.String r3) {\n /*\n r1 = this;\n r0 = r1.i(r3);\t Catch:{ RuntimeException -> 0x001c }\n if (r0 != 0) goto L_0x0024;\n L_0x0006:\n if (r2 == 0) goto L_0x001a;\n L_0x0008:\n r0 = r2.length();\t Catch:{ RuntimeException -> 0x0020 }\n if (r0 == 0) goto L_0x001a;\n L_0x000e:\n r0 = g;\t Catch:{ RuntimeException -> 0x0022 }\n r0 = r0.matcher(r2);\t Catch:{ RuntimeException -> 0x0022 }\n r0 = r0.lookingAt();\t Catch:{ RuntimeException -> 0x0022 }\n if (r0 != 0) goto L_0x0024;\n L_0x001a:\n r0 = 0;\n L_0x001b:\n return r0;\n L_0x001c:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x001e }\n L_0x001e:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0020 }\n L_0x0020:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0022 }\n L_0x0022:\n r0 = move-exception;\n throw r0;\n L_0x0024:\n r0 = 1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.String):boolean\");\n }", "public interface RoutineException {}", "public int describeContents() {\n/* 48 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void L3() throws Exception{\n\t\tSystem.out.println(\"1\");\n\t\tthrow e;\n\t}", "private void method_2252() {\r\n String[] var1 = class_752.method_4253();\r\n\r\n do {\r\n boolean var10000 = this.field_1861[this.field_1862].isEmpty();\r\n\r\n int var2;\r\n label45:\r\n while(true) {\r\n if(var10000) {\r\n return;\r\n }\r\n\r\n var2 = this.field_1862;\r\n this.field_1862 ^= 1;\r\n Iterator var3 = this.field_1861[var2].iterator();\r\n\r\n while(true) {\r\n if(!var3.hasNext()) {\r\n break label45;\r\n }\r\n\r\n class_1033 var4 = (class_1033)var3.next();\r\n\r\n label40: {\r\n class_354 var6;\r\n label55: {\r\n try {\r\n var6 = this;\r\n if(var1 == null) {\r\n break label55;\r\n }\r\n\r\n var10000 = this.method_2253(var4);\r\n if(var1 == null) {\r\n break;\r\n }\r\n } catch (IllegalStateException var5) {\r\n throw method_2260(var5);\r\n }\r\n\r\n if(!var10000) {\r\n break label40;\r\n }\r\n\r\n var6 = this;\r\n }\r\n\r\n class_1627 var7 = var6.field_1850.method_2383();\r\n double var10001 = (double)var4.method_5847();\r\n double var10002 = (double)var4.method_5848();\r\n double var10003 = (double)var4.method_5849();\r\n int var10005 = this.field_1820.field_5738;\r\n class_297 var10006 = new class_297;\r\n var10006.method_1699(var4.method_5847(), var4.method_5848(), var4.method_5849(), var4.method_5852(), var4.method_5850(), var4.method_5851());\r\n var7.method_8903(var10001, var10002, var10003, 64.0D, var10005, var10006);\r\n }\r\n\r\n if(var1 == null) {\r\n break label45;\r\n }\r\n }\r\n }\r\n\r\n this.field_1861[var2].clear();\r\n } while(var1 != null);\r\n\r\n }", "public int describeContents() {\n/* 1781 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "public void zzbr() {\n /*\n r8 = this;\n r0 = 0;\n r2 = r8.zzF;\n L_0x0003:\n r1 = 10;\n if (r0 >= r1) goto L_0x0119;\n L_0x0007:\n r4 = r0 + 1;\n r0 = new java.net.URL;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0.<init>(r2);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = \"play.google.com\";\n r3 = r0.getHost();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x002d;\n L_0x001a:\n r0 = r2;\n L_0x001b:\n r0 = r8.zzT(r0);\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\n r2 = r8.zzpD;\n r2 = r2.getContext();\n r1.zzb(r2, r0);\n return;\n L_0x002d:\n r1 = \"market\";\n r3 = r0.getProtocol();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x003b;\n L_0x0039:\n r0 = r2;\n goto L_0x001b;\n L_0x003b:\n r0 = r0.openConnection();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = (java.net.HttpURLConnection) r0;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\t Catch:{ all -> 0x00b1 }\n r3 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r3 = r3.getContext();\t Catch:{ all -> 0x00b1 }\n r5 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r5 = r5.zzhX();\t Catch:{ all -> 0x00b1 }\n r5 = r5.afmaVersion;\t Catch:{ all -> 0x00b1 }\n r6 = 0;\n r1.zza(r3, r5, r6, r0);\t Catch:{ all -> 0x00b1 }\n r1 = r0.getResponseCode();\t Catch:{ all -> 0x00b1 }\n r5 = r0.getHeaderFields();\t Catch:{ all -> 0x00b1 }\n r3 = \"\";\n r6 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r1 < r6) goto L_0x0116;\n L_0x0065:\n r6 = 399; // 0x18f float:5.59E-43 double:1.97E-321;\n if (r1 > r6) goto L_0x0116;\n L_0x0069:\n r1 = 0;\n r6 = \"Location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x0099;\n L_0x0072:\n r1 = \"Location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n L_0x007a:\n if (r1 == 0) goto L_0x0116;\n L_0x007c:\n r5 = r1.size();\t Catch:{ all -> 0x00b1 }\n if (r5 <= 0) goto L_0x0116;\n L_0x0082:\n r3 = 0;\n r1 = r1.get(r3);\t Catch:{ all -> 0x00b1 }\n r1 = (java.lang.String) r1;\t Catch:{ all -> 0x00b1 }\n L_0x0089:\n r3 = android.text.TextUtils.isEmpty(r1);\t Catch:{ all -> 0x00b1 }\n if (r3 == 0) goto L_0x00aa;\n L_0x008f:\n r1 = \"Arrived at landing page, this ideally should not happen. Will open it in browser.\";\n com.google.android.gms.ads.internal.util.client.zzb.zzaK(r1);\t Catch:{ all -> 0x00b1 }\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = r2;\n goto L_0x001b;\n L_0x0099:\n r6 = \"location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x007a;\n L_0x00a1:\n r1 = \"location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n goto L_0x007a;\n L_0x00aa:\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x0111, IOException -> 0x010c, RuntimeException -> 0x0107 }\n r0 = r4;\n r2 = r1;\n goto L_0x0003;\n L_0x00b1:\n r1 = move-exception;\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n throw r1;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n L_0x00b6:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00b9:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while parsing ping URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00d1:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00d4:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00ec:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00ef:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x0107:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00ef;\n L_0x010c:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00d4;\n L_0x0111:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00b9;\n L_0x0116:\n r1 = r3;\n goto L_0x0089;\n L_0x0119:\n r0 = r2;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzdm.zza.zzbr():void\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "private S(com.google.ad r9, com.google.h r10) {\n /*\n r8 = this;\n r0 = 0;\n r1 = -1;\n r7 = 2;\n r2 = 1;\n r5 = org.whispersystems.Y.r;\n r8.<init>();\n r8.k = r1;\n r8.n = r1;\n r8.c();\n r6 = com.google.eV.g();\n r1 = r0;\n L_0x0015:\n if (r0 != 0) goto L_0x006f;\n L_0x0017:\n r3 = r9.z();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n switch(r3) {\n case 0: goto L_0x0085;\n case 10: goto L_0x00c6;\n case 18: goto L_0x0055;\n default: goto L_0x001e;\n };\n L_0x001e:\n r3 = r8.a(r9, r6, r10, r3);\t Catch:{ fN -> 0x0089, IOException -> 0x00aa }\n if (r3 != 0) goto L_0x006d;\n L_0x0024:\n if (r5 == 0) goto L_0x00c4;\n L_0x0026:\n r3 = r2;\n L_0x0027:\n r0 = 0;\n r4 = r8.h;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r4 & 1;\n if (r4 != r2) goto L_0x00c1;\n L_0x002e:\n r0 = r8.f;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r0 = r0.w();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r0;\n L_0x0035:\n r0 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r9.a(r0, r10);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = (org.whispersystems.Y) r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n if (r4 == 0) goto L_0x004c;\n L_0x0041:\n r0 = r8.f;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r4.a(r0);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r4.a();\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n L_0x004c:\n r0 = r8.h;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n r0 = r0 | 1;\n r8.h = r0;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n if (r5 == 0) goto L_0x00bf;\n L_0x0054:\n r0 = r3;\n L_0x0055:\n r3 = r1 & 2;\n if (r3 == r7) goto L_0x0062;\n L_0x0059:\n r3 = new java.util.ArrayList;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.<init>();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r8.l = r3;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r1 = r1 | 2;\n L_0x0062:\n r3 = r8.l;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r9.a(r4, r10);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.add(r4);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x006d:\n if (r5 == 0) goto L_0x0015;\n L_0x006f:\n r0 = r1 & 2;\n if (r0 != r7) goto L_0x007b;\n L_0x0073:\n r0 = r8.l;\t Catch:{ fN -> 0x00bb }\n r0 = java.util.Collections.unmodifiableList(r0);\t Catch:{ fN -> 0x00bb }\n r8.l = r0;\t Catch:{ fN -> 0x00bb }\n L_0x007b:\n r0 = r6.d();\n r8.e = r0;\n r8.b();\n return;\n L_0x0085:\n if (r5 == 0) goto L_0x00c4;\n L_0x0087:\n r0 = r2;\n goto L_0x001e;\n L_0x0089:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x008b:\n r0 = move-exception;\n r0 = r0.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x0091:\n r0 = move-exception;\n r1 = r1 & 2;\n if (r1 != r7) goto L_0x009e;\n L_0x0096:\n r1 = r8.l;\t Catch:{ fN -> 0x00bd }\n r1 = java.util.Collections.unmodifiableList(r1);\t Catch:{ fN -> 0x00bd }\n r8.l = r1;\t Catch:{ fN -> 0x00bd }\n L_0x009e:\n r1 = r6.d();\n r8.e = r1;\n r8.b();\n throw r0;\n L_0x00a8:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00aa:\n r0 = move-exception;\n r2 = new com.google.fN;\t Catch:{ all -> 0x0091 }\n r0 = r0.getMessage();\t Catch:{ all -> 0x0091 }\n r2.<init>(r0);\t Catch:{ all -> 0x0091 }\n r0 = r2.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x00b9:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00bb:\n r0 = move-exception;\n throw r0;\n L_0x00bd:\n r0 = move-exception;\n throw r0;\n L_0x00bf:\n r0 = r3;\n goto L_0x006d;\n L_0x00c1:\n r4 = r0;\n goto L_0x0035;\n L_0x00c4:\n r0 = r2;\n goto L_0x006d;\n L_0x00c6:\n r3 = r0;\n goto L_0x0027;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.whispersystems.S.<init>(com.google.ad, com.google.h):void\");\n }", "public Object mo3153b(Object obj) {\n Exception exc = (Exception) obj;\n if (exc != null) {\n this.f1908f.f1901a.mo3733c(false);\n this.f1908f.f1901a.mo3943a(exc);\n return C4560l.f10773a;\n }\n C4638h.m10271a(\"it\");\n throw null;\n }", "public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void mo28890b(int i) throws zzlm;", "public void mo1031a(Throwable th) {\n }", "public int getIndex() {\n/* 265 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void method_4318() {\r\n String[] var1;\r\n int var11;\r\n label68: {\r\n var1 = class_752.method_4253();\r\n class_758 var10000 = this;\r\n if(var1 != null) {\r\n if(this.field_3417 != null) {\r\n label71: {\r\n var11 = this.field_3417.field_3012;\r\n if(var1 != null) {\r\n if(this.field_3417.field_3012) {\r\n var10000 = this;\r\n if(var1 != null) {\r\n if(!this.field_2990.field_1832) {\r\n this.method_409(this.field_3404, class_1691.method_9334((class_1036)null), 10.0F);\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var10000.field_3417 = null;\r\n if(var1 != null) {\r\n break label71;\r\n }\r\n }\r\n\r\n var11 = this.field_3029 % 10;\r\n }\r\n\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 == 0) {\r\n float var13;\r\n var11 = (var13 = this.method_406() - this.method_405()) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label68;\r\n }\r\n\r\n if(var11 < 0) {\r\n this.method_4188(this.method_406() + 1.0F);\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = this;\r\n }\r\n\r\n var11 = var10000.field_3028.nextInt(10);\r\n }\r\n\r\n if(var11 == 0) {\r\n float var2 = 32.0F;\r\n List var3 = this.field_2990.method_2157(class_705.class, this.field_3004.method_7097((double)var2, (double)var2, (double)var2));\r\n class_705 var4 = null;\r\n double var5 = Double.MAX_VALUE;\r\n Iterator var7 = var3.iterator();\r\n\r\n while(true) {\r\n if(var7.hasNext()) {\r\n class_705 var8 = (class_705)var7.next();\r\n double var9 = var8.method_3891(this);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n label43: {\r\n double var12 = var9;\r\n if(var1 != null) {\r\n if(var9 >= var5) {\r\n break label43;\r\n }\r\n\r\n var12 = var9;\r\n }\r\n\r\n var5 = var12;\r\n var4 = var8;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.field_3417 = var4;\r\n break;\r\n }\r\n }\r\n\r\n }" ]
[ "0.6681036", "0.638258", "0.6313813", "0.62770987", "0.6209634", "0.61999136", "0.6169731", "0.6146095", "0.614355", "0.614355", "0.61354756", "0.6133306", "0.60979736", "0.6063467", "0.60232353", "0.60232353", "0.60035235", "0.6000542", "0.6000542", "0.5993328", "0.5993328", "0.5992304", "0.59890383", "0.5984053", "0.59661686", "0.59661686", "0.59543395", "0.5947086", "0.5947086", "0.5941589", "0.5941521", "0.5921152", "0.5921152", "0.5916591", "0.5883679", "0.5876474", "0.5876474", "0.58763856", "0.58637494", "0.58573496", "0.58573496", "0.5845639", "0.5841792", "0.582383", "0.5812932", "0.5805723", "0.5804717", "0.58014226", "0.57817864", "0.5778342", "0.57629484", "0.57478803", "0.5742837", "0.57389444", "0.572978", "0.5711959", "0.56856626", "0.56815994", "0.5675147", "0.5674769", "0.5666975", "0.56608623", "0.56523037", "0.5641807", "0.5640438", "0.56347394", "0.5619133", "0.56152123", "0.5609938", "0.55906874", "0.5572906", "0.5571405", "0.5563531", "0.55558354", "0.55518466", "0.5551705", "0.5540259", "0.5526205", "0.55228096", "0.55196565", "0.55125594", "0.5511784", "0.55037355", "0.55013573", "0.5494274", "0.5489692", "0.54892564", "0.54889584", "0.5486816", "0.5482317", "0.5476618", "0.5473168", "0.5466107", "0.54660404", "0.5465666", "0.54638577", "0.5463314", "0.5461342", "0.5460779", "0.54558015", "0.54543376" ]
0.0
-1
Add entity remove logic in this method.
public void remove() { super.remove(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void entityRemoved() {}", "abstract protected void removeEntity(Entity entity);", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "@Override\n\tpublic void remove(Post entity) {\n\t\t\n\t}", "public void preRemove(T entity) {\n }", "@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}", "public void removeEntity(Entity entity){\n entityList.remove(entity);\n }", "void removeEntity(IViewEntity entity);", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }", "public abstract void remove(Class<?> entity, Object paramObject);", "void remove(Student entity);", "@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}", "void delete(E entity);", "void delete(E entity);", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}", "public int removeEntity(Entity e) {\n Entity removed = this.entity_list_.remove(e.name_);\n if (removed != null) {\n System.out.println(removed.name_ + \" has been removed from the map\");\n } else {\n System.err.println(\"The entity to be removed does not exist in the list of entities\");\n }\n if (this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].getEntity() == e) {\n this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].removeEntity();\n //e.setMapRelation(null);\n //System.gc();\n return 0;\n } else {\n System.err.println(\"The avatar to be removed cannot be found on the map.\");\n System.exit(-88);\n return -1;\n }\n }", "@Override\n public void removeFromDb() {\n }", "public void remove(Order entity) {\n\t\tsuper.internalRemove(entity);\n\t}", "@Override\n public void delete(LineEntity entity) {\n\n }", "@Observable\n public AbstractBatchAction<T> removeFromRemoveEntities(final T entity) {\n this.removeEntities.remove(entity);\n return this;\n }", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "void delete(Entity entity);", "public void remove(E e) {\n\t\tentities.remove(e);\n\t}", "@Observable\n public AbstractBatchAction<T> addToRemoveEntities(final T entity) {\n this.removeEntities.add(entity);\n return this;\n }", "@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }", "@Test\n\tpublic void testRemoval() {\n\t\tLong id = RedisQuery.nextUniqueId();\n\t\tEntityTest et = new EntityTest(id, \"EntityTestToRemove\");\n\t\tif (RedisQuery.save(et, id)) {\n\t\t\t// Remove the entity\n\t\t\tRedisQuery.remove(et, id);\n\t\t} else {\n\t\t\tthrow new AssertionError(\"Unable to create entity to remove\");\n\t\t}\n\t}", "public void removeEntity(Entity entity) {\n\t\tif (entity instanceof Bullet) {\n\t\t\tif (((Bullet) entity).getName().equals(\"bullet\")) {\n\t\t\t\tbullet.remove(entity);\n\t\t\t} else if (((Bullet) entity).getName().equals(\"enemy_bullet\")\n\t\t\t\t\t|| ((Bullet) entity).getName().equals(\"boss_bullet\")) {\n\t\t\t\tenemy_bullet.remove(entity);\n\t\t\t}\n\t\t} else if (entity instanceof Enemy) {\n\t\t\tint enemyX = entity.getX();\n\t\t\tint enemyY = entity.getY();\n\t\t\t\n\t\t\tif (!((Enemy) entity).getName().equals(\"boss\")) {\n\t\t\t\tenemy.remove(entity);\n\t\t\t\t// play enemy explosion sfx\n\t\t\t\tsound.get(\"enemyExplosionEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\t\n\t\t\t\t// add enemy explosion\n\t\t\t\texplosion.add(new Explosion(this, \"enemy_explosion\", enemyX - 5, enemyY - 5, entity));\n\t\t\t\tpowerupCheck(enemyX, enemyY);\n\t\t\t} else if (((Enemy) entity).getName().equals(\"boss\") && bossExplosionNum == 0) {\n\t\t\t\tbossExplosionNum = 1;\n\t\t\t\t\n\t\t\t\tsound.get(\"bossExplosionEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\texplosion.add(new Explosion(this, \"enemy_explosion\", enemyX, enemyY, entity));\n\t\t\t}\n\t\t\t\n\t\t\t// add cash and points to score\n\t\t\tif (!stopDrawingPlayer && ((Enemy) entity).getName().equals(\"green_box\")) {\n\t\t\t\tcash += 30;\n\t\t\t\ttotalCash += 30;\n\t\t\t} else if (!stopDrawingPlayer && ((Enemy) entity).getName().equals(\"red_box\")) {\n\t\t\t\tcash += 50;\n\t\t\t\ttotalCash += 50;\n\t\t\t} else if (!stopDrawingPlayer && ((Enemy) entity).getName().equals(\"boss\")) {\n\t\t\t\ttotalCash += 500;\n\t\t\t}\n\t\t} else if (entity instanceof Powerup) {\n\t\t\t// play obtain powerup sfx\n\t\t\tsound.get(\"powerupGetEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\n\t\t\tEnemy boss = null;\n\t\t\t\n\t\t\tpowerup.remove(entity);\n\t\t\tif (((Powerup) entity).getName() == \"powerup_explosion\") {\n\t\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\t\tif (!enemy.get(i).getName().equals(\"boss\")) {\n\t\t\t\t\t\texplosion.add(new Explosion(this, \"enemy_explosion\", enemy.get(i).getX() - 5,\n\t\t\t\t\t\t\t\tenemy.get(i).getY() - 5, entity));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tboss = enemy.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < enemy.size(); i++) {\n\t\t\t\t\tif (enemy.get(i).getName().equals(\"green_box\")) {\n\t\t\t\t\t\tcash += 30;\n\t\t\t\t\t\ttotalCash += 30;\n\t\t\t\t\t} else if (enemy.get(i).getName().equals(\"red_box\")) {\n\t\t\t\t\t\tcash += 50;\n\t\t\t\t\t\ttotalCash += 50;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// play enemy explosion sfx\n\t\t\t\tsound.get(\"enemyExplosionEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\tenemy.clear();\n\t\t\t\t\n\t\t\t\tif (boss != null)\n\t\t\t\t\tenemy.add(boss);\n\t\t\t}\n\t\t} else if (entity instanceof Player) {\n\t\t\t// play player explosion sfx\n\t\t\tsound.get(\"playerExplosionEffect\").playAsSoundEffect(1.0f, 1.0f, false);\n\t\t\t\n\t\t\texplosion.add(new Explosion(this, \"player_explosion\", player.getX() - 5, player.getY() - 5,\n\t\t\t\t\tentity));\n\t\t\tstopDrawingPlayer = true;\n\t\t}\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t}", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "void delete(T entity);", "void delete(T entity);", "public void remove() {\n\n }", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "@Override\n public void delete(SideDishEntity entity) {\n\n }", "@Override\n public void remove() {\n }", "@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}", "@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}", "void delete(Object entity);", "public void remove(T entity) throws DataAccessException;", "public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}", "@Override\n public void remove() {\n }", "private void removeEntity(int index)\n\t{\n\t\tthis.entities.get(index).onDespawn();\n\t\tthis.spatialHashGrid.remove(this.entities.get(index).getSpatialHashGridHandle());\n\t\t\n\t\tthis.entities.set(index, this.entities.get(this.entities.size() - 1));\n\t\tthis.entities.remove(this.entities.size() - 1);\n\t}", "public void remove() {\r\n //\r\n }", "@Override\n\tpublic Map<String, Object> delete(StoreBase entity) {\n\t\treturn null;\n\t}", "public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}", "public void remove()\n\n throws ManageException, DoesNotExistException;", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "@Override\n public void removed(Entity e) {\n AI ai = AIm.get(e);\n if (ai.active) {\n ai.active = false;\n startMove = startAction = true;\n groupAiDone= false;\n screen.processTurn();\n // Future note: This transition comes quite abruptly.\n // It would be nice to somehow delay it, but because\n // the entity has just been removed, it won't be\n // processed any more. Perhaps give processTurn()\n // a boolean argument which will pause for a second\n // or so before selecting the new entity and moving\n // the camera on.\n\n }\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public <T> boolean delete(T entity);", "public abstract void onRemove();", "@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "@PreRemove\r\n public void preRemove() {\r\n\r\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "public void deleteGeominas(Geominas entity) throws Exception;", "void delete(int entityId);", "@Observable\n public AbstractBatchAction<T> removeFromSaveEntities(final T entity) {\n this.saveEntities.remove(entity);\n return this;\n }", "void removeConstraintEntity(IViewEntity entity);", "public void remove () {}", "void removeObserver(EntityObserver observer);", "@Override\n @Transactional\n public void removeDto(D dto, E entity) throws MedragServiceException {\n try {\n entityDao.removeEntity((E) new ModelMapper().map(dto, entity.getClass()));\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "public void delete(HrJBorrowcontract entity);", "void entityDestroyed(Entity entity);", "void remove(DirectoryEntityKey key);", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void remove(){\n }", "@Override\n\tpublic void remove() { }", "public void remove()\n { \n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_NO_DELETE\"); // Message name\n \n }", "boolean delete(T entity) throws Exception;", "public void delete(Contract entity) {\n\r\n\t}", "default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "Boolean delete(T entity);", "@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }" ]
[ "0.7743972", "0.7736621", "0.7698701", "0.7533661", "0.7364548", "0.71806604", "0.70894927", "0.69020814", "0.68934506", "0.6766151", "0.67515695", "0.67510414", "0.674452", "0.67201227", "0.67201227", "0.67163837", "0.6705364", "0.66977483", "0.6693089", "0.6616612", "0.6588259", "0.6563094", "0.65463495", "0.65337074", "0.65239376", "0.6509098", "0.649903", "0.6492883", "0.64827883", "0.646635", "0.6463374", "0.6419596", "0.64057016", "0.6394284", "0.6394284", "0.63932335", "0.63932335", "0.63887596", "0.63664746", "0.63494784", "0.6343644", "0.63344693", "0.63107103", "0.63045657", "0.62992495", "0.62880903", "0.627337", "0.6272022", "0.6261332", "0.62573594", "0.62384945", "0.6233674", "0.62243015", "0.6205583", "0.6195406", "0.61900485", "0.61900485", "0.61849356", "0.61845046", "0.61788434", "0.6172706", "0.6143352", "0.6141665", "0.6136888", "0.6133484", "0.61329406", "0.61311346", "0.6130847", "0.6124962", "0.61245847", "0.6113906", "0.61083424", "0.60972047", "0.6090942", "0.6090942", "0.6090942", "0.6090942", "0.6090942", "0.6090942", "0.6090942", "0.6090942", "0.60893506", "0.6077705", "0.6071965", "0.60634494", "0.6062348", "0.6039818", "0.60261333", "0.60261333", "0.60261333", "0.60261333", "0.60261333", "0.6023705", "0.60177875", "0.6015587", "0.60119015", "0.6008828", "0.6008828", "0.6008828", "0.6005638", "0.60030776" ]
0.0
-1
This is the default constructor (do not remove).
public MnjMfgFabinsProdLEOImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Instantiation(){}", "defaultConstructor(){}", "public PSRelation()\n {\n }", "public Orbiter() {\n }", "public Generic(){\n\t\tthis(null);\n\t}", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private Default()\n {}", "public CSSTidier() {\n\t}", "public Pitonyak_09_02() {\r\n }", "void DefaultConstructor(){}", "public Node(){\n\n\t\t}", "public Coche() {\n super();\n }", "private Node() {\n\n }", "public Anschrift() {\r\n }", "public Chauffeur() {\r\n\t}", "public CyanSus() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "public SgaexpedbultoImpl()\n {\n }", "public Aanbieder() {\r\n\t\t}", "public Tbdtokhaihq3() {\n super();\n }", "public Chick() {\n\t}", "public Lanceur() {\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public Basic() {}", "public Waschbecken() {\n this(0, 0);\n }", "public Parser()\n {\n //nothing to do\n }", "public Pasien() {\r\n }", "public Clade() {}", "public Vector() {\n construct();\n }", "public Cohete() {\n\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public Node() {\n }", "public Mitarbeit() {\r\n }", "public Trening() {\n }", "private TMCourse() {\n\t}", "public Tbdcongvan36() {\n super();\n }", "public mapper3c() { super(); }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public SimOI() {\n super();\n }", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "protected SimpleMatrix() {}", "public Phl() {\n }", "public D() {}", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public Node(){\n this(9);\n }", "protected AST_Node() {\r\n\t}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "O() { super(null); }", "public Node() {\n\t}", "public Curso() {\r\n }", "@Override public void init()\n\t\t{\n\t\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "public Mannschaft() {\n }", "public Soil()\n\t{\n\n\t}", "public _355() {\n\n }", "protected Asignatura()\r\n\t{}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public AllDifferent()\n {\n this(0);\n }", "public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }", "public BasicElementList() {\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public Implementor(){}", "public Data() {}", "public Node(){}", "@Override\n\t\tpublic void init() {\n\t\t}", "public SlanjePoruke() {\n }", "public Self__1() {\n }", "public TTau() {}", "public lo() {}", "public AntrianPasien() {\r\n\r\n }", "public Data() {\n }", "public Data() {\n }", "public ArrayList() {\n\t\tthis(10, 75);\n\t}", "private Composite() {\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "protected DenseMatrix()\n\t{\n\t}", "public Demo() {\n\t\t\n\t}", "public RngObject() {\n\t\t\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "protected ASTNode() {\n\t\t\n\t}", "public Queue()\n\t{\n\t\tsuper();\n\t}", "public WordList() {\t\t//Default constructor\n\t}", "protected Tile() {\n super();\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Note() {\n\t\tsuper();\n\t}", "public Supercar() {\r\n\t\t\r\n\t}", "public Boop() {\n\t\tsuper();\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Stat()\n {\n // empty constructor\n }", "public MyArrayList() {\n this(DEFAULT_CAP);\n }", "@Override\r\n\tpublic void init() {}" ]
[ "0.8008779", "0.7769194", "0.73964155", "0.7316486", "0.7260056", "0.718806", "0.71752644", "0.7150133", "0.7121881", "0.7095582", "0.7064848", "0.7043535", "0.7021626", "0.6989982", "0.69864064", "0.6976774", "0.696405", "0.69608796", "0.69593084", "0.69549793", "0.69526047", "0.69428366", "0.69386953", "0.69370085", "0.69237924", "0.6923291", "0.6915862", "0.689991", "0.6898068", "0.68868124", "0.68754", "0.6866789", "0.68663347", "0.6859385", "0.6857735", "0.6857735", "0.6854017", "0.6847223", "0.68370205", "0.68359643", "0.68314934", "0.68220794", "0.6820177", "0.68200636", "0.6813043", "0.6809119", "0.6804405", "0.68007594", "0.67960775", "0.6789625", "0.6775069", "0.67749274", "0.67749274", "0.67713517", "0.6767883", "0.67628175", "0.67624384", "0.67579687", "0.6755417", "0.6754529", "0.6750235", "0.6749729", "0.67486304", "0.674825", "0.674659", "0.67420125", "0.6737236", "0.6732724", "0.6726", "0.6725444", "0.6723525", "0.6722519", "0.6721461", "0.67199403", "0.67158604", "0.6714299", "0.67134315", "0.671281", "0.670936", "0.6708831", "0.6706665", "0.6706665", "0.6702173", "0.6699291", "0.6694791", "0.6693076", "0.6691171", "0.6689157", "0.66842335", "0.6676297", "0.6676249", "0.6674552", "0.66697484", "0.66684353", "0.6666122", "0.6665164", "0.6664054", "0.6660223", "0.6658732", "0.66560614", "0.6654479" ]
0.0
-1
Gets the attribute value for ProdLId, using the alias name ProdLId.
public Number getProdLId() { return (Number)getAttributeInternal(PRODLID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProId() {\n return proId;\n }", "public String getPId() {\n return (String)getAttributeInternal(PID);\n }", "public Number getPromoProdukId() {\n return (Number)getAttributeInternal(PROMOPRODUKID);\n }", "public String getProID() {\n\t\treturn sh_ProductID;\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }", "public Integer getIdPro() {\n return idPro;\n }", "public double get(int propId)\n {\n \n double retVal = get_0(nativeObj, propId);\n \n return retVal;\n }", "public java.lang.String getGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public void setProdLId(Number value) {\n setAttributeInternal(PRODLID, value);\n }", "public String getLid ()\n {\n return this.lid;\n }", "public Integer getLoanProfitandlossId() {\n return loanProfitandlossId;\n }", "public Object getProperty(String attName);", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public int getProprio(int idGroupe) throws RemoteException{\r\n\t\t\tString requete = \"Select g_idprop From groupe Where g_id = \" + idGroupe;\r\n\t\t\tSystem.out.println(\"\\nrequete getProprio : \" + requete);\r\n\t\t\tDataSet data = database.executeQuery(requete);\r\n\r\n\t\t\tint idProp = -1;\r\n\t\t\tString [] line = null;\r\n\t\t\tif (data.hasMoreElements()){\r\n\t\t\t\tline = data.nextElement();\r\n\t\t\t\tidProp = Integer.parseInt(line[1]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn idProp;\r\n\t\t}", "public String getProd_id() {\r\n\t\treturn prod_id;\r\n\t}", "public Long getLong(String attr) {\n return (Long) super.get(attr);\n }", "public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }", "public AreaProp getAreaProp(int areaPropId) {\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n AreaProp areaProp = (AreaProp) session.get(AreaProp.class, areaPropId);\n return areaProp;\n }", "public Long getLongAttribute();", "public String getPropertyId() {\n return propertyId;\n }", "public long getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n return 0L;\n }\n return target.getLongValue();\n }\n }", "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "public String getPropriedade(String nomePropriedade)\n\t{\n\t\treturn arquivoProps.getProperty(nomePropriedade);\n\t}", "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "public String getProductAttrValue() {\n return (String)getAttributeInternal(PRODUCTATTRVALUE);\n }", "public String getAssortProd() {\n return (String)getAttributeInternal(ASSORTPROD);\n }", "public java.lang.String getId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getPidSourceAttributeId() {\n return pidSourceAttributeId;\n }", "public String getStrProfileAttribId() {\r\n\t\treturn strProfileAttribId;\r\n\t}", "public static Long getLongAttributeValueRP(StartElement startElement, HasQName attrName) {\n Attribute attr = startElement.getAttributeByName(attrName.getQName());\n String value = getAttributeValueRP(attr);\n return value == null ? null : Long.valueOf(value);\n }", "public org.apache.axis2.databinding.types.soapencoding.String getLSPID(){\n return localLSPID;\n }", "public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }", "public Local_Prova getByIdLocal_Prova(Integer id);", "public int getProdId() {\n\t\treturn prodId;\n\t}", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Integer getProductAttributeValueId() {\n return productAttributeValueId;\n }", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "private long getAttributeIdForChainId(FeedMapping feedMapping) {\n Optional<AttributeFieldMapping> fieldMapping =\n feedMapping.getAttributeFieldMappingsList().stream()\n .filter(\n m -> m.getAffiliateLocationField() == AffiliateLocationPlaceholderField.CHAIN_ID)\n .findFirst();\n if (!fieldMapping.isPresent()) {\n throw new RuntimeException(\"Affiliate location field mapping isn't setup correctly\");\n }\n return fieldMapping.get().getFeedAttributeId();\n }", "public String getXpeProductId() {\n return (String) getAttributeInternal(XPEPRODUCTID);\n }", "public Integer getSlPdId() {\n return slPdId;\n }", "public String getProdDetailsName(){\n String prodName = productDetailsName.toString();\n return prodName;\n }", "public String getATTR_ID() {\n return ATTR_ID;\n }", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public int getPropertyId() {\n\t\treturn propertyId;\n\t}", "public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }", "public Integer getAgcProIDType() {\n\t\treturn agcProIDType;\n\t}", "public Integer getProstatusid() {\n return prostatusid;\n }", "public Number getDotaId() {\n return (Number)getAttributeInternal(DOTAID);\n }", "public String getLid() {\n return lid;\n }", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public String getLid()\n {\n return lid;\n }", "@Override\r\n\tpublic String getId() {\n\t\treturn mProductionId;\r\n\t}", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "public String getPrId() {\n return prId;\n }", "String getValueId();", "public Integer getLtAdAdvertiseVariationId() {\r\n return ltAdAdvertiseVariationId;\r\n }", "public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}", "public String getAgcProIDNum() {\n\t\treturn agcProIDNum;\n\t}", "public org.apache.xmlbeans.XmlIDREF xgetGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n return target;\r\n }\r\n }", "Object getProperty(Long id, String name) throws RemoteException;", "public ULong getCdtAwdPriId() {\n return (ULong) get(1);\n }", "public static String getPrecio(int idLibro)\r\n\t{\r\n\t\treturn precios[idLibro];\r\n\t}", "public static String getProp(String key) {\n try {\n Process process = Runtime.getRuntime().exec(String.format(\"getprop %s\", key));\n String value = new BufferedReader(new InputStreamReader(process.getInputStream())).readLine();\n process.destroy();\n return value;\n } catch (IOException e) {\n Log.d(\"getProp exception\", e.toString(), e);\n return null;\n }\n }", "java.lang.String getAttribute();", "public long getIdProduit() {\n\t\treturn idProduit;\n\t}", "public static long getAttributeLong(Element elem, String key, long dft)\n {\n return StringTools.parseLong(XMLTools.getAttribute(elem,key,null,false), dft);\n }", "private String getLocalId(ShibbolethResolutionContext resolutionContext)\n\t\t\tthrows AttributeResolutionException {\n\n\t\tlog.info(\"gets local ID ...\");\n\n\t\tString[] ids = getSourceAttributeId().split(SEPARATOR);\n\n\t\tStringBuffer localIdValue = new StringBuffer();\n\t\tfor (int i = 0; i < ids.length; i++) {\n\n\t\t\tCollection<Object> sourceIdValues = getValuesFromAllDependencies(\n\t\t\t\t\tresolutionContext, ids[i]);\n\t\t\tif (sourceIdValues == null || sourceIdValues.isEmpty()) {\n\t\t\t\tlog\n\t\t\t\t\t\t.error(\n\t\t\t\t\t\t\t\t\"Source attribute {} for connector {} provide no values\",\n\t\t\t\t\t\t\t\tgetSourceAttributeId(), getId());\n\t\t\t\tthrow new AttributeResolutionException(\"Source attribute \"\n\t\t\t\t\t\t+ getSourceAttributeId() + \" for connector \" + getId()\n\t\t\t\t\t\t+ \" provided no values\");\n\t\t\t}\n\n\t\t\tif (sourceIdValues.size() > 1) {\n\t\t\t\tlog\n\t\t\t\t\t\t.warn(\n\t\t\t\t\t\t\t\t\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n\t\t\t\t\t\t\t\tgetSourceAttributeId(), getId());\n\t\t\t}\n\t\t\tlocalIdValue.append(sourceIdValues.iterator().next().toString());\n\t\t}\n\t\tlog.info(\"local ID: \" + localIdValue.toString());\n\n\t\treturn localIdValue.toString();\n\t}", "protected String getProperty(String prop) {\n\t\tLogManager mgr = LogManager.getLogManager();\n\t\tif (name.length() > 0) {\n\t\t\tString key = String.format(\"%s(\\\"%s\\\").%s\", getClass().getName(), name, prop);\t\t\t\n\t\t\tString val = mgr.getProperty(key);\n\t\t\tif (val != null)\n\t\t\t\treturn val;\t\t\t\n\t\t}\t\t\n\t\treturn mgr.getProperty(getClass().getName() + \".\" + prop);\t\t\t\n\t}", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public Number getLargo()\n {\n return (Number)getAttributeInternal(LARGO);\n }", "public IPV getPV(String pvPropId){\n return pvMap.get(pvPropId);\n }", "public final String getPerunSourceAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunSourceAttribute\");\n\t}", "public String getCpnID() {\n\t\treturn this.CpnID;\n\t}", "public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }", "public int getM_Production_ID();", "public static String getProperty (Document doc, String tag) {\n Element eLement = (Element) doc.getElementsByTagName(\"Properties\").item(0);\n return eLement.getAttribute(tag);\n }", "Integer getFntLID();", "public abstract java.lang.Long getId_causal_peticion();", "public BigDecimal getId() {\n return (BigDecimal) getAttributeInternal(ID);\n }", "@Override\n\tpublic CiaL getCiaLById(Long idCiaL) {\n\t\treturn _ciaLDao.getCiaLById(idCiaL);\n\t}", "private long getLongAttribute(Element element, String attributeName)\n {\n try\n {\n return Long.parseLong(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0L;\n }\n }", "public Long getPdid() {\n return pdid;\n }", "protected String getLocalId(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException {\n Collection<Object> sourceIdValues = getValuesFromAllDependencies(resolutionContext, getPidSourceAttributeId());\n if (sourceIdValues == null || sourceIdValues.isEmpty()) {\n log.error(\"Source attribute {} for connector {} provide no values\", getPidSourceAttributeId(), getId());\n throw new AttributeResolutionException(\"Source attribute \" + getPidSourceAttributeId() + \" for connector \"\n + getId() + \" provided no values\");\n }\n\n if (sourceIdValues.size() > 1) {\n log.warn(\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n getPidSourceAttributeId(), getId());\n }\n\n return sourceIdValues.iterator().next().toString();\n }", "long getProposalId();", "public static long getLongValue(String propID, long dft)\n {\n String strVal = SystemProps.getStringValue(propID, null);\n return StringTools.parseLong(strVal, dft);\n }", "String getProductId();", "@Override\n\tpublic String get(PK id, String prop) {\n\t\treturn null;\n\t}", "public String getIdProduto() {\r\n\t\treturn idProduto;\r\n\t}", "private String getPrdName(String prdId) {\n //\t\tSystem.out.println(\"getPrdName: \" + prdId);\n \t\tfor (Entry<String, MoleculeFeatures> feature: prdMolFeaturesMap.entrySet()) {\n \t\t\tif (feature.getValue().getPrdId().equals(prdId)) {\n //\t\t\t\tSystem.out.println(\"Name: \" + feature.getValue().getName());\n \t\t\t\treturn feature.getValue().getName();\n \t\t\t}\n \t\t}\n \t\treturn \"\";\n \t}", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "int getPokedexIdValue();", "int getPokedexIdValue();", "public Integer getAttrId() {\n return attrId;\n }", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }", "public String getLBR_ProtestCode();", "int getAptitudeId();", "public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }" ]
[ "0.5827373", "0.57066065", "0.56037337", "0.55579317", "0.55264133", "0.55146646", "0.54705465", "0.54273194", "0.53448486", "0.5340043", "0.5288998", "0.52747613", "0.5254283", "0.52468765", "0.52468765", "0.52379155", "0.52356815", "0.52215475", "0.5221281", "0.5194293", "0.51936513", "0.51701665", "0.516467", "0.5160945", "0.5160156", "0.51500696", "0.51252127", "0.5119194", "0.5107825", "0.51049155", "0.50967914", "0.5093455", "0.5090426", "0.5085435", "0.50763303", "0.5067903", "0.50677776", "0.5060676", "0.50374055", "0.50368446", "0.5032288", "0.50107646", "0.5007393", "0.50040424", "0.4995585", "0.4979561", "0.4979561", "0.49763456", "0.49653822", "0.49650317", "0.49595472", "0.49554884", "0.4955351", "0.49520347", "0.4947944", "0.49416974", "0.49389338", "0.49366507", "0.4935816", "0.49333683", "0.4932243", "0.49321383", "0.49301156", "0.49243215", "0.49152917", "0.49121302", "0.49082407", "0.4905936", "0.4900493", "0.4899963", "0.4895981", "0.48938078", "0.4885696", "0.48841032", "0.48826328", "0.48788548", "0.4878142", "0.48748463", "0.4870212", "0.48676556", "0.4866857", "0.48650074", "0.48527455", "0.48522556", "0.4851527", "0.48409355", "0.483846", "0.48351455", "0.4830328", "0.48302335", "0.48292875", "0.4827613", "0.48270264", "0.48249954", "0.48249954", "0.48213494", "0.48212564", "0.48197895", "0.4819021", "0.48054013" ]
0.73858577
0
Sets value as the attribute value for ProdLId.
public void setProdLId(Number value) { setAttributeInternal(PRODLID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPId(String value) {\n setAttributeInternal(PID, value);\n }", "public Number getProdLId() {\n return (Number)getAttributeInternal(PRODLID);\n }", "public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setPAttributeId(Integer value) {\n setValue(P_ATTRIBUTE_ID, value);\n }", "public void setPromoProdukId(Number value) {\n setAttributeInternal(PROMOPRODUKID, value);\n }", "public void setIdPro(Integer idPro) {\n this.idPro = idPro;\n }", "public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }", "void setLspId(String lspId);", "public void setCdtAwdPriId(ULong value) {\n set(1, value);\n }", "public void setIdProducto(int value) {\n this.idProducto = value;\n }", "public void setLBR_ProtestCode (String LBR_ProtestCode);", "public void setProId(String proId) {\n this.proId = proId == null ? null : proId.trim();\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "private void setPropertyID(String v)\n {\n this.setFieldValue(FLD_propertyID, StringTools.trim(v));\n }", "public void setPlmnIdValue(YangString plmnIdValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"plmn-id\",\n plmnIdValue,\n childrenNames());\n }", "public void setIdLugarNacimiento(long value) {\n this.idLugarNacimiento = value;\n }", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public void setId(Long value) {\r\n this.id = value;\r\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setIdVozilo(long value) {\n this.idVozilo = value;\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setPCatgryId(Number value) {\n\t\tsetNumber(P_CATGRY_ID, value);\n\t}", "public void setPromoBonusId(DBSequence value) {\n setAttributeInternal(PROMOBONUSID, value);\n }", "public void setId(Long value) {\n this.id = value;\n }", "public void setLid (String lid)\n {\n this.lid = lid;\n }", "public void setDozentPublikationID(long value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (value != this.m_lDozentPublikationID));\n\t\tthis.m_lDozentPublikationID=value;\n\t}", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setLid(String lid) {\n this.lid = lid == null ? null : lid.trim();\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setPskuId(Number value) {\n\t\tsetNumber(PSKU_ID, value);\n\t}", "public void setLSPID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localLSPID=param;\n \n\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setPRDNO(int value) {\n this.prdno = value;\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setLocalId(java.lang.String value) {\n validate(fields()[1], value);\n this.localId = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setId(java.lang.Long value) {\r\n\t\tthis.id = value;\r\n\t}", "public void setPersonaId(long value) {\n this.personaId = value;\n }", "@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}", "public abstract void setProcessID(long pid);", "public void setTallaId(Number value) {\n setAttributeInternal(TALLAID, value);\n }", "public void setId(Long pid) {\n this.pid = pid;\n }", "public void setOridestId(Number value) {\n setAttributeInternal(ORIDESTID, value);\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }", "public void setTipGorivaID(long value) {\r\n this.tipGorivaID = value;\r\n }", "public void setId(java.lang.Long value) {\n this.id = value;\n }", "public void setM_Production_ID (int M_Production_ID);", "@Test\n public void testSetLibroId() {\n System.out.println(\"setLibroId\");\n long libroId = 0L;\n Reserva instance = new Reserva();\n instance.setLibroId(libroId);\n \n }", "public void setPeriodicalId(Number value) {\n setAttributeInternal(PERIODICALID, value);\n }", "public void xsetEnumSkillId(org.apache.xmlbeans.XmlString enumSkillId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ENUMSKILLID$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ENUMSKILLID$10);\n }\n target.set(enumSkillId);\n }\n }", "public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }", "public void setIdProfilo(Integer idProfilo) {\n\t\tthis.idProfilo = idProfilo;\n\t}", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "void setID(int val)\n throws RemoteException;", "public void setId(long id)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6);\n }\n target.setLongValue(id);\n }\n }", "public void setProductAttrValue(String value) {\n setAttributeInternal(PRODUCTATTRVALUE, value);\n }", "public void setDotaId(Number value) {\n setAttributeInternal(DOTAID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setLineID(int lineID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINEID$2);\n }\n target.setIntValue(lineID);\n }\n }", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setXbtId(ULong value) {\n set(2, value);\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setRId(long value) {\r\n this.rId = value;\r\n }", "public void setLocalId(java.lang.String value) {\n this.localId = value;\n }", "private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}", "public void setSupplierId(Number value)\n {\n\n // BC4J validates that this can be updated only on a new line, and that this\n // mandatory attribute is not null. This code adds the additional check \n // of only allowing an update if the value is null to prevent changes while \n // the object is in memory.\n\n if (getSupplierId() != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_NO_UPDATE\"); // Message name\n\n }\n\n if (value != null)\n {\n // Supplier id must be unique. To verify this, you must check both the\n // entity cache and the database. In this case, it's appropriate\n // to use findByPrimaryKey( ) because you're unlikely to get a match, and\n // and are therefore unlikely to pull a bunch of large objects into memory.\n\n // Note that findByPrimaryKey() is guaranteed to check all suppliers. \n // First it checks the entity cache, then it checks the database.\n\n OADBTransaction transaction = getOADBTransaction();\n Object[] supplierKey = {value};\n EntityDefImpl supplierDefinition = SupplierEOImpl.getDefinitionObject();\n SupplierEOImpl supplier = \n (SupplierEOImpl)supplierDefinition.findByPrimaryKey(transaction, new Key(supplierKey));\n\n if (supplier != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_UNIQUE\"); // Message name \n }\n } \n \n setAttributeInternal(SUPPLIERID, value);\n \n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }", "public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);\r\n }\r\n target.setStringValue(oid);\r\n }\r\n }", "public void setID(long value) {\n this.id = value;\n }", "public void setPresentid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localPresentidTracker = true;\r\n } else {\r\n localPresentidTracker = false;\r\n \r\n }\r\n \r\n this.localPresentid=param;\r\n \r\n\r\n }", "public void setId(final String value)\n\t{\n\t\tsetId( getSession().getSessionContext(), value );\n\t}", "public void setProcessPidValue(long processPidValue) throws JNCException {\n setProcessPidValue(new YangUInt32(processPidValue));\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "public void setIdProveedor(Integer idProveedor) {\n this.idProveedor = idProveedor;\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}" ]
[ "0.634944", "0.63185835", "0.60266304", "0.601631", "0.5974074", "0.59403676", "0.592052", "0.58439213", "0.58180314", "0.5761082", "0.5753052", "0.5700055", "0.56979775", "0.56764454", "0.5654243", "0.5640188", "0.5600911", "0.5597296", "0.55912596", "0.55789244", "0.5578523", "0.55724615", "0.55724615", "0.55724615", "0.55511963", "0.55495024", "0.5529581", "0.5529127", "0.5528518", "0.5512322", "0.5512322", "0.54913026", "0.54891", "0.5479415", "0.5479415", "0.5469463", "0.54670095", "0.5453013", "0.5453013", "0.5453013", "0.5453013", "0.5453013", "0.5453013", "0.5453013", "0.54292184", "0.5426248", "0.5425728", "0.54236656", "0.5421792", "0.5419776", "0.54188746", "0.54056406", "0.540522", "0.5402634", "0.5380552", "0.5351207", "0.53511184", "0.53453135", "0.5343602", "0.53408176", "0.53407544", "0.5339797", "0.53358066", "0.53278595", "0.5314787", "0.53146136", "0.53146136", "0.53078246", "0.5303072", "0.53015286", "0.52986234", "0.529048", "0.528596", "0.528596", "0.5283834", "0.5278999", "0.52565813", "0.52506465", "0.52472824", "0.5238668", "0.5234222", "0.52301145", "0.5220373", "0.5220373", "0.5220373", "0.5220225", "0.52194625", "0.5213237", "0.5209848", "0.52094764", "0.52091", "0.52091", "0.52091", "0.52091", "0.52091", "0.52091", "0.52091", "0.52088755", "0.5208861", "0.52063704" ]
0.7911271
0
Gets the attribute value for HeaderId, using the alias name HeaderId.
public Number getHeaderId() { return (Number)getAttributeInternal(HEADERID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHeader(String headerName);", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "public Number getRfrtHeaderIdPk() {\r\n return (Number) getAttributeInternal(RFRTHEADERIDPK);\r\n }", "java.lang.String getHeaderTableId();", "public Number getListHeaderId() {\n return (Number)getAttributeInternal(LISTHEADERID);\n }", "public String getHeaderName() {\n\tString value = getString(ATTR_HEADER_NAME, null);\n\treturn value;\n }", "public Header getHeaderByKey(String key);", "public String getHeader(final Header header) {\n return headers.get(header.toString());\n }", "@java.lang.Override\n public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n }\n }", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }", "com.didiyun.base.v1.Header getHeader();", "public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n return byHed;\n }", "java.lang.String getHeader();", "public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getHeaderTableId() {\n java.lang.Object ref = headerTableId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n headerTableId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "ComponentHeaderType getHeader();", "public std_msgs.msg.dds.Header getHeader()\n {\n return header_;\n }", "public HeaderData get(String key){\r\n\t\treturn map.get(key);\r\n\t}", "public String getColumnName(String propertyId)\n {\n return propertyId;\n }", "public Header getHeader() {\n\t\treturn this.header;\n\t}", "public Object getHeader() {\n return header;\n }", "public String getHeaderValue() {\n\treturn getString(ATTR_HEADER_VALUE, null);\n }", "String getValueId();", "public VCFHeader getHeader();", "public String getHeader() {\n\t\treturn header.toString();\n\t}", "public String getHeader() {\n return header;\n }", "public String getHeader() {\n return header;\n }", "public String getHeaderField(int paramInt) {\n/* 278 */ return this.delegate.getHeaderField(paramInt);\n/* */ }", "public java.lang.String getHeaderName() {\r\n return headerName;\r\n }", "public String getHeader() {\n\t\treturn _header;\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getHeader();", "public String getHeader() {\n\t\t\treturn header;\n\t\t}", "public String getFirst(String headerName)\r\n/* 336: */ {\r\n/* 337:496 */ List<String> headerValues = (List)this.headers.get(headerName);\r\n/* 338:497 */ return headerValues != null ? (String)headerValues.get(0) : null;\r\n/* 339: */ }", "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "public Object sysFindHeaderById(Integer id) throws DAOException {\r\n\treturn findHeaderById(id);\r\n }", "public Header getHeader(String headerName) {\n if (headerName == null) throw new NullPointerException(\"bad name\");\n SIPHeader sipHeader = (SIPHeader)\n this.nameTable.get(headerName.toLowerCase());\n if (sipHeader instanceof SIPHeaderList)\n return (Header) ((SIPHeaderList) sipHeader).getFirst();\n else return (Header) sipHeader;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getHeaderTableIdBytes() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n headerTableId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public int getAD_Column_ID();", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public com.google.protobuf.ByteString\n getHeaderTableIdBytes() {\n java.lang.Object ref = headerTableId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n headerTableId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected static Object getColumnKey(XmlElement xmlColumn)\n {\n XmlValue xmlTemp = xmlColumn.getAttribute(\"id\");\n if (xmlTemp == null)\n {\n return xmlColumn;\n }\n return xmlTemp.getString();\n }", "public java.lang.Integer getCompanyheaderId () {\n\t\treturn companyheaderId;\n\t}", "public String getHeaderValue(String headerName)\n\t{\n\t\tList<String> values = this.headers.get(headerName.toLowerCase());\n\t\tif (values == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn values.get(0);\n\t}", "public Common1LevelLOVHeaderPK getId() {\r\n\t\treturn id;\r\n\t}", "public StrColumn getAssemblyId() {\n return delegate.getColumn(\"assembly_id\", DelegatingStrColumn::new);\n }", "private String computeHeaderIdForText(String header) {\n\t\tString id = header.replaceAll(\"[^a-zA-Z0-9]+\", \"-\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.toLowerCase();\n\t\tid = id.replaceFirst(\"^[^a-zA-Z0-9]+\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.replaceFirst(\"[^a-zA-Z0-9]+$\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tif (Strings.isEmpty(id)) {\n\t\t\treturn \"section\"; //$NON-NLS-1$\n\t\t}\n\t\treturn id;\n\t}", "public DnsHeader header() {\n return header;\n }", "public String getSourceAttributeId() {\n\t\treturn sourceAttribute;\n\t}", "public java.lang.String getHeaderName () {\n\t\treturn headerName;\n\t}", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "Object getAttribute(int attribute);", "public String getHeaderFieldKey(int paramInt) {\n/* 286 */ return this.delegate.getHeaderFieldKey(paramInt);\n/* */ }", "public Object getAttribute(Object key);", "public String getDeliveryAddressHeader(){\n String header =driver.findElement(oDeliveryAddressHeader).getText();\n logger.debug(\"delivery address header is :\" + header);\n return header;\n }", "PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);", "public Attribute fetchAttributeById(int attribId);", "private String computeHeaderIdForNumber(String header) {\n\t\tString id = header;\n\t\tif (isKramdownFix()) {\n\t\t\tid = id .replaceAll(\"\\\\.\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\tid = id.replaceAll(\"[^a-zA-Z0-9]+\", \"-\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.toLowerCase();\n\t\tid = id.replaceFirst(\"^[^a-zA-Z0-9]+\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.replaceFirst(\"[^a-zA-Z0-9]+$\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tif (Strings.isEmpty(id)) {\n\t\t\treturn \"section\"; //$NON-NLS-1$\n\t\t}\n\t\treturn id;\n\t}", "public byte[] getHeader() {\n\treturn header;\n }", "org.apache.xmlbeans.XmlString xgetHeader();", "public java.lang.String getHeaderValue() {\r\n return headerValue;\r\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }", "java.lang.String getAttribute();", "public\t javax.sip.header.CallIdHeader getCallId()\n { return callIdHeader ; }", "public Optional<String> header(String header) {\n return this.header.getHeader(header);\n }", "public ElementHeader getElementHeader()\n {\n return elementHeader;\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "@Override\n public String getColumnName(int iCol) {\n return ARR_STR_HEADERS[iCol];\n }", "java.lang.String getAoisId();", "public String getHeader(final String name) {\n return headers.get(name);\n }", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "public HsaId getHsaId() {\n\t\treturn this.hsaId;\n\t}", "public String getHeaderField(String paramString) {\n/* 270 */ return this.delegate.getHeaderField(paramString);\n/* */ }", "@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}", "public PHeader getHeader() {\n\t\treturn header;\n\t}", "public String getKey() {\r\n return getAttribute(\"id\");\r\n }", "String getTaxId();", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "public String getHeader1() {\n return header1;\n }", "ELEMENTIDENTIFIER getIdentifier();", "com.didiyun.base.v1.HeaderOrBuilder getHeaderOrBuilder();", "long getAdId();", "public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }", "TupleHeader getHeader() {\n return header;\n }", "public String getColumnName(int index)\n {\n return header[index];\n }", "@Override\n\tpublic Identifier determineBasicColumnName(ImplicitBasicColumnNameSource source) {\n\t\treturn toIdentifier( transformAttributePath( source.getAttributePath() ), source.getBuildingContext() );\n\t}", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "java.lang.String getDataId();", "java.lang.String getDataId();", "java.lang.String getParameterId();" ]
[ "0.60169506", "0.58954465", "0.57608974", "0.5730931", "0.5729569", "0.56702715", "0.55447775", "0.5520048", "0.5493609", "0.548256", "0.5457439", "0.5453374", "0.54464656", "0.54280144", "0.53666085", "0.5364828", "0.533417", "0.5332548", "0.532775", "0.5310789", "0.5285855", "0.5259031", "0.52430576", "0.52371633", "0.5226587", "0.5218905", "0.5218905", "0.518846", "0.5162426", "0.5135964", "0.51348", "0.51282245", "0.5104572", "0.510355", "0.5095521", "0.50223905", "0.5003857", "0.49915224", "0.49871746", "0.49813437", "0.4973846", "0.4973846", "0.49675348", "0.4965915", "0.49644604", "0.49585825", "0.49542126", "0.49537006", "0.49393156", "0.49326518", "0.49324626", "0.4929093", "0.49289748", "0.4923441", "0.49160573", "0.49074167", "0.4906543", "0.49042842", "0.48880866", "0.48844367", "0.488265", "0.48786405", "0.48771295", "0.48738465", "0.48738465", "0.48738465", "0.48738465", "0.48479876", "0.48413834", "0.4839466", "0.4828491", "0.48125032", "0.48125032", "0.4812044", "0.4809567", "0.4802716", "0.47969067", "0.47969067", "0.47955522", "0.47910023", "0.479024", "0.4780533", "0.4776151", "0.477312", "0.47712895", "0.4766285", "0.4757658", "0.475705", "0.47570157", "0.47541237", "0.47503763", "0.47485647", "0.47475198", "0.47375092", "0.47374928", "0.47306198", "0.4726963", "0.4726963", "0.47253338" ]
0.6999077
1
Sets value as the attribute value for HeaderId.
public void setHeaderId(Number value) { setAttributeInternal(HEADERID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIrHeaderId(Number value) {\n setAttributeInternal(IRHEADERID, value);\n }", "public void setListHeaderId(Number value) {\n setAttributeInternal(LISTHEADERID, value);\n }", "void setHeader(String headerName, String headerValue);", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public Builder setHeaderTableId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headerTableId_ = value;\n onChanged();\n return this;\n }", "public void setRfrtHeaderIdPk(Number value) {\r\n setAttributeInternal(RFRTHEADERIDPK, value);\r\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setHeader(String key, String value) {\n\t\tmHeaderParams.put(key, value);\n\t}", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void set(String headerName, String headerValue)\r\n/* 353: */ {\r\n/* 354:526 */ List<String> headerValues = new LinkedList();\r\n/* 355:527 */ headerValues.add(headerValue);\r\n/* 356:528 */ this.headers.put(headerName, headerValues);\r\n/* 357: */ }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setHeaderValue(java.lang.String headerValue) {\r\n this.headerValue = headerValue;\r\n }", "public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }", "@Override\n\tpublic void setIntHeader(String name, int value) {\n\t}", "void setHeader(java.lang.String header);", "@Override\n public void setIntHeader(String arg0, int arg1) {\n\n }", "public void setId(Common1LevelLOVHeaderPK id) {\r\n\t\tthis.id = id;\r\n\t}", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "public Number getHeaderId() {\n return (Number)getAttributeInternal(HEADERID);\n }", "public void setId(byte value) {\r\n this.id = value;\r\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "private void setHeaderText(int id) {\n mTextViewHeader.setText(id);\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t\tthis.handleConfig(\"header\", header);\n\t}", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "@Override\n public void setIntHeader(String name, int value) {\n this._getHttpServletResponse().setIntHeader(name, value);\n }", "public HttpsConnection setHeader(final String key, final String value) {\n log.log(Level.INFO, \"Set Header: \" + key + \": \" + value);\n this.mHeaders.put(key, value);\n return this;\n }", "public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }", "public void setId(String key, Object value) {\n // remove ID, if empty/0/null\n // if we only skipped it, the existing entry will stay although someone changed it to empty.\n String v = String.valueOf(value);\n if (\"\".equals(v) || \"0\".equals(v) || \"null\".equals(v)) {\n ids.remove(key);\n }\n else {\n ids.put(key, value);\n }\n firePropertyChange(key, null, value);\n\n // fire special events for our well known IDs\n if (Constants.TMDB.equals(key) || Constants.IMDB.equals(key) || Constants.TVDB.equals(key) || Constants.TRAKT.equals(key)) {\n firePropertyChange(key + \"Id\", null, value);\n }\n }", "public void setId(int value) {\n this.id = value;\n }", "void setId(int val);", "public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}", "public void setId(int value) {\r\n this.id = value;\r\n }", "void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setHeader(String header) {\n this.header = header;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setHeader(String header) {\n\t\t_header = header;\n\t}", "public void setId(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, ID,value);\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setId(final String value)\n\t{\n\t\tsetId( getSession().getSessionContext(), value );\n\t}", "public void setHeader(String header) {\n\t\tthis.header = header;\n\t}", "public void setHeaderAttributeCount(int headerAttributeCount)\n {\n this.headerAttributeCount = headerAttributeCount;\n }", "public void setId(Integer value) {\n set(0, value);\n }", "@Override\n public void setHeader(String arg0, String arg1) {\n\n }", "public void setHeader(JMSControl.HeaderType type,Object value);", "public void setCallId(CallIdHeader callId) {\n this.setHeader(callId);\n }", "public void setIdAttribute(String idAttribute) {\n this.idAttribute = idAttribute;\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }", "public void setHeader(final Header header) {\n mHeader=header;\n updateFields();\n }", "public Builder setHeaderTableIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n headerTableId_ = value;\n onChanged();\n return this;\n }", "void setID(int val)\n throws RemoteException;", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "private void setObjId(int value) {\n \n objId_ = value;\n }", "public void setHeader(final String name, final String value) {\n headers.put(name, new ArrayList<>(singletonList(value)));\n }", "public void setID(String value) {\n tokenString_ID = value;\n }", "public void setIdAlumno(int value) {\n this.idAlumno = value;\n }", "private void setAid(int value) {\n \n aid_ = value;\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "public void setHeader(String headerName, String headerValue)\n\t{\n\t\tList<String> values = new ArrayList<>();\n\t\tvalues.add(headerValue);\n\t\t\n\t\tthis.headers.put(headerName.toLowerCase(), values);\n\t\tthis.originalCasing.put(headerName.toLowerCase(), headerName);\n\t}", "public void sethId(Long hId) {\n this.hId = hId;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setId(short value) {\n this.id = value;\n }", "public void setTitleID(String val){\n\t\ttid = val;\n\t}", "public void setId(Integer value) {\n this.id = value;\n }", "public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }", "public void setId1(int value) {\n this.id1 = value;\n }" ]
[ "0.72106993", "0.6620919", "0.65930533", "0.63418883", "0.63418883", "0.63234115", "0.63232046", "0.6309306", "0.6299841", "0.62853354", "0.62853354", "0.62853354", "0.6278198", "0.627811", "0.6232051", "0.62127054", "0.62127054", "0.62127054", "0.62127054", "0.62127054", "0.62127054", "0.62127054", "0.61902773", "0.6188199", "0.6119827", "0.6086326", "0.6033036", "0.6023596", "0.6021878", "0.6021878", "0.6010809", "0.5980944", "0.5980944", "0.5976043", "0.5966017", "0.5966017", "0.5966017", "0.5961205", "0.5958059", "0.5958059", "0.5958059", "0.59436625", "0.5927985", "0.59195316", "0.5878058", "0.5877328", "0.5867074", "0.5866059", "0.58401144", "0.5822871", "0.5810578", "0.57900476", "0.5785673", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5777399", "0.5770287", "0.57628983", "0.5761781", "0.5746638", "0.57349044", "0.5733063", "0.5714512", "0.56915456", "0.5685039", "0.5677984", "0.5677072", "0.5674803", "0.56707245", "0.5658744", "0.5650875", "0.56443244", "0.5642779", "0.5642779", "0.5642779", "0.5642779", "0.5642779", "0.5642779", "0.56398326", "0.56378275", "0.56355", "0.56205994", "0.56043994", "0.5601136", "0.55908394", "0.5589477", "0.55879575", "0.55879575", "0.55832225", "0.5583073", "0.557627", "0.5564557", "0.55488616" ]
0.81172436
1
Gets the attribute value for BuyerId, using the alias name BuyerId.
public Number getBuyerId() { return (Number)getAttributeInternal(BUYERID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }", "public Long getBuyerId() {\r\n return buyerId;\r\n }", "public int getPropertyBuyerId() {\n\t\treturn propertyBuyerId;\n\t}", "@ApiModelProperty(value = \"This identifier is optionally provided during the product ordering and stored for informative purpose in the seller inventory\")\n @JsonProperty(\"buyerProductId\")\n public String getBuyerProductId() {\n return buyerProductId;\n }", "public String getBuyerMemberId() {\n return buyerMemberId;\n }", "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public String getBuyer() {\n return buyer;\n }", "public String getBuyerName() {\n return buyerName;\n }", "java.lang.String getBidid();", "public interface BuyerBuyerId {\n\n Long getBuyerId();\n}", "public Integer getSellerId() {\n return sellerId;\n }", "@AutoEscape\n public String getDealerId();", "java.lang.String getSeller();", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public long getBuid() {\r\n return buid;\r\n }", "public ArrayList<String> getBuyersId(){\n return buyersId;\n }", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }", "public void setPropertyBuyerId(int propertyBuyerId) {\n\t\tthis.propertyBuyerId = propertyBuyerId;\n\t}", "public Integer getPropertySellerId() {\n\t\treturn propertySellerId;\n\t}", "io.dstore.values.IntegerValue getCampaignId();", "io.dstore.values.IntegerValue getCampaignId();", "@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public long getLoyaltyBrandId() {\n return loyaltyBrandId;\n }", "public String getBuyerContactor() {\n return buyerContactor;\n }", "public Integer getBorrowerId() {\n return borrowerId;\n }", "public String getAliasId() {\n return this.AliasId;\n }", "public Integer getBrandId() {\r\n return brandId;\r\n }", "public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }", "public Bidder getBidder() {\n return Bootstrap.getInstance().getUserRepository().fetchAll().stream()\n .filter(user -> user.getType() == UserType.BIDDER && user.getId() == this.bidderId)\n .map(user -> (Bidder) user)\n .findFirst().orElse(null);\n }", "public String getDealerId() {\n\t\treturn dealerId;\n\t}", "public int getBid() {\n return instance.getBid();\n }", "@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public Integer getBrandId() {\n return brandId;\n }", "public Integer getBrandId() {\n return brandId;\n }", "public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }", "java.lang.String getHotelId();", "public BigDecimal getId() {\n return (BigDecimal) getAttributeInternal(ID);\n }", "public Short getBrandId() {\n return brandId;\n }", "@java.lang.Override\n public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n }\n }", "public long getDealerId() {\n\t\treturn dealerId;\n\t}", "public short getIdVendor() {\r\n\t\treturn idVendor;\r\n\t}", "public Number getProvincialTaxPayerId() {\n return (Number)getAttributeInternal(PROVINCIALTAXPAYERID);\n }", "Seller findById(Integer id);", "Seller findById(Integer id);", "@Override\n public final Buyer getBuyr(final Map<String, Object> pRvs,\n final IReqDt pRqDt) throws Exception {\n Long buyerId = null;\n String buyerIdStr = pRqDt.getCookVl(\"cBuyerId\");\n if (buyerIdStr != null && buyerIdStr.length() > 0) {\n buyerId = Long.valueOf(buyerIdStr);\n }\n Buyer buyer = null;\n if (buyerId != null) {\n Map<String, Object> vs = new HashMap<String, Object>();\n buyer = new Buyer();\n buyer.setIid(buyerId);\n getOrm().refrEnt(pRvs, vs, buyer);\n if (buyer.getIid() == null) {\n buyer = null;\n }\n }\n if (buyer != null && buyer.getEml() != null && buyer.getBuSeId() != null) {\n String buSeId = pRqDt.getCookVl(\"buSeId\");\n if (!buyer.getBuSeId().equals(buSeId)) {\n this.spamHnd.handle(pRvs, pRqDt, 100,\n \"Buyer. Authorized invasion? cBuyerId: \" + buyerIdStr);\n //buyer also might clears cookie, so it's need new authorization\n //new/free buyer will be used till authorization:\n buyer = null;\n }\n }\n return buyer;\n }", "public Long getSellerItemInfoId() {\r\n return sellerItemInfoId;\r\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "@Override\n\tpublic BikeAdvert getBikeAdvert(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//now retrive /read from db using the primary key\n\t\tBikeAdvert theBikeAdvert = currentSession.get(BikeAdvert.class,theId);\n\t\t\n\t\treturn theBikeAdvert;\n\t}", "long getAdId();", "public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getSeller() {\n return seller;\n }", "public String getSeller() {\n return seller;\n }", "public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n seller_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getBididBytes();", "public java.lang.String getBidid() {\n java.lang.Object ref = bidid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bidid_ = s;\n }\n return s;\n }\n }", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "String getTaxId();", "public String getAccountValue(String elementId) {\n String sqlQuery = \"\", elementValue = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.VALUE as value FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n elementValue = rs.getString(\"value\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return elementValue;\n }", "public java.lang.String getBidid() {\n java.lang.Object ref = bidid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bidid_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public AID getBidder() {\n\t\treturn bidder;\n\t}", "public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }", "public BigDecimal getEmployerId() {\n return getEmployerIdProperty().getValue();\n }", "java.lang.String getCouponId();", "public String getAccountId() {\n return (String)(userItem.getId());\n }", "public DBSequence getBudgetCustTranId() {\n return (DBSequence)getAttributeInternal(BUDGETCUSTTRANID);\n }", "public String getBrandId() {\n\t\treturn brandId;\n\t}", "public int getBeverageId() {\n return beverageId;\n }", "public String getCarriedBy() {\n return (String) getAttributeInternal(CARRIEDBY);\n }", "public void setBuyer(String buyer) {\n this.buyer = buyer;\n }", "public String getAdId() {\n return adId;\n }", "public MonetaryAccountReference getAlias() {\n return this.alias;\n }", "public String getAssetId();", "public final String getVendorId(){\n return peripheralVendorId;\n }", "io.dstore.values.IntegerValue getOrderPersonId();", "public Long getMerchantId() {\n return merchantId;\n }", "public int getCurrentBuyID(){\n return currentBuyID;\n }", "public java.lang.String getSoldToId() {\n return soldToId;\n }", "public String getAttributeValue(By locator, String attributeName) {\n \t\t\t\n \t\t\tWebElement element = driver.findElement(locator);\n \t\t\tString attributeValue = element.getAttribute(attributeName);\n \t\t\treturn attributeValue;\n \t\t}", "public Number getBpoId() {\n return (Number) getAttributeInternal(BPOID);\n }", "public Integer getAdId() {\n return adId;\n }", "public String getUserAlias() {\n return userItem.getUserAlias();\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "@JsonGetter(\"callerId\")\r\n public CallerIdModel getCallerId ( ) { \r\n return this.callerId;\r\n }", "public EI getPayerTrackingID() { \r\n\t\tEI retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }" ]
[ "0.72519326", "0.6889486", "0.66200626", "0.5988435", "0.5940177", "0.5936778", "0.5921242", "0.58690906", "0.5776794", "0.5740211", "0.57046056", "0.5536094", "0.5529941", "0.549123", "0.544792", "0.544792", "0.5440035", "0.54134375", "0.5349182", "0.5349182", "0.5348292", "0.53189725", "0.52639216", "0.52639216", "0.52607894", "0.51974386", "0.5145499", "0.51011676", "0.5090374", "0.5084687", "0.5054387", "0.5054109", "0.5027572", "0.50163", "0.50158644", "0.50080085", "0.5002283", "0.49995902", "0.49995902", "0.4992654", "0.4992654", "0.49881753", "0.49652797", "0.49604902", "0.49460346", "0.4938584", "0.49327412", "0.4931851", "0.4921461", "0.49129394", "0.49129394", "0.49077907", "0.49057806", "0.48991674", "0.48962945", "0.48888752", "0.4888144", "0.48849714", "0.48849714", "0.48849714", "0.48849714", "0.48849714", "0.48762536", "0.48607573", "0.48607573", "0.4857359", "0.4857311", "0.4855129", "0.48548913", "0.4853057", "0.48515245", "0.48441526", "0.48432505", "0.48400113", "0.48389983", "0.48359314", "0.48322275", "0.48204905", "0.48190334", "0.4811952", "0.48118806", "0.4799827", "0.47852948", "0.47836697", "0.4782885", "0.47815064", "0.47771996", "0.47707257", "0.4768632", "0.4763003", "0.47579437", "0.4757893", "0.4754926", "0.47546047", "0.47525558", "0.47525558", "0.47525558", "0.47525558", "0.4749253", "0.47454107" ]
0.722178
1
Sets value as the attribute value for BuyerId.
public void setBuyerId(Number value) { setAttributeInternal(BUYERID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }", "public Long getBuyerId() {\r\n return buyerId;\r\n }", "public void setPropertyBuyerId(int propertyBuyerId) {\n\t\tthis.propertyBuyerId = propertyBuyerId;\n\t}", "public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }", "public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }", "public void setBuyer(String buyer) {\n this.buyer = buyer;\n }", "@ApiModelProperty(value = \"This identifier is optionally provided during the product ordering and stored for informative purpose in the seller inventory\")\n @JsonProperty(\"buyerProductId\")\n public String getBuyerProductId() {\n return buyerProductId;\n }", "public int getPropertyBuyerId() {\n\t\treturn propertyBuyerId;\n\t}", "@JsonSetter(\"callerId\")\r\n public void setCallerId (CallerIdModel value) { \r\n this.callerId = value;\r\n }", "public void setBuyerMemberId(String buyerMemberId) {\n this.buyerMemberId = buyerMemberId;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "@Override\n public void setDealerId(java.lang.String dealerId) {\n _entityCustomer.setDealerId(dealerId);\n }", "public void setPropertySellerId(Integer propertySellerId) {\n\t\tthis.propertySellerId = propertySellerId;\n\t}", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "private void setBId(int value) {\n \n bId_ = value;\n }", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "public String getBuyerMemberId() {\n return buyerMemberId;\n }", "public void setDealerId(String dealerId);", "public void setSellerId(Integer sellerId) {\n this.sellerId = sellerId;\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public Integer getSellerId() {\n return sellerId;\n }", "public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}", "public String getBuyer() {\n return buyer;\n }", "public void setBorrowerId(Integer borrowerId) {\n this.borrowerId = borrowerId;\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Builder setSeller(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n seller_ = value;\n onChanged();\n return this;\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setBuid(long value) {\r\n this.buid = value;\r\n }", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public Builder setBrokerId(String value) {\n validate(fields()[1], value);\n this.brokerId = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public Builder setBrokerId(String value) {\n validate(fields()[1], value);\n this.brokerId = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "public void setSupplierId(Number value)\n {\n\n // BC4J validates that this can be updated only on a new line, and that this\n // mandatory attribute is not null. This code adds the additional check \n // of only allowing an update if the value is null to prevent changes while \n // the object is in memory.\n\n if (getSupplierId() != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_NO_UPDATE\"); // Message name\n\n }\n\n if (value != null)\n {\n // Supplier id must be unique. To verify this, you must check both the\n // entity cache and the database. In this case, it's appropriate\n // to use findByPrimaryKey( ) because you're unlikely to get a match, and\n // and are therefore unlikely to pull a bunch of large objects into memory.\n\n // Note that findByPrimaryKey() is guaranteed to check all suppliers. \n // First it checks the entity cache, then it checks the database.\n\n OADBTransaction transaction = getOADBTransaction();\n Object[] supplierKey = {value};\n EntityDefImpl supplierDefinition = SupplierEOImpl.getDefinitionObject();\n SupplierEOImpl supplier = \n (SupplierEOImpl)supplierDefinition.findByPrimaryKey(transaction, new Key(supplierKey));\n\n if (supplier != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_UNIQUE\"); // Message name \n }\n } \n \n setAttributeInternal(SUPPLIERID, value);\n \n }", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public com.trg.fms.api.Trip.Builder setDriverId(java.lang.Long value) {\n validate(fields()[1], value);\n this.driverId = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public Builder setBidid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n bidid_ = value;\n onChanged();\n return this;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setLoyaltyBrandId(long value) {\n this.loyaltyBrandId = value;\n }", "@Override\n\tpublic void affectInsuranceToBuyer(int insId, int buyerId) {\n\n\t}", "public interface BuyerBuyerId {\n\n Long getBuyerId();\n}", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setUserID(java.lang.String value) {\n validate(fields()[2], value);\n this.userID = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public ArrayList<String> getBuyersId(){\n return buyersId;\n }", "private void setBid(int value) {\n \n bid_ = value;\n }", "public Builder setAbiId(int value) {\n\n abiId_ = value;\n onChanged();\n return this;\n }", "public void setEmployerId(BigDecimal employerId) {\n getEmployerIdProperty().setValue(employerId);\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public final void setVendorId(String vendorId){\n peripheralVendorId = vendorId;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@JsonSetter(\"deliveryId\")\r\n public void setDeliveryId (int value) { \r\n this.deliveryId = value;\r\n }", "public Builder setHotelId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n hotelId_ = value;\n onChanged();\n return this;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }", "public void setBuyerName(String buyerName) {\n this.buyerName = buyerName == null ? null : buyerName.trim();\n }", "public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public String getBuyerName() {\n return buyerName;\n }", "public void setSellerOrderId(String sellerOrderId) {\r\n this.sellerOrderId = sellerOrderId;\r\n }", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public Builder setRequesterId(long value) {\n\n requesterId_ = value;\n bitField0_ |= 0x00000040;\n onChanged();\n return this;\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setUserId(long value) {\n\n userId_ = value;\n }", "@JsonSetter(\"user_id\")\n public void setUserId (String value) { \n this.userId = value;\n }", "public Builder setSellerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n seller_ = value;\n onChanged();\n return this;\n }", "public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}", "public Builder setBonusMoneyID(int value) {\n bitField0_ |= 0x00000020;\n bonusMoneyID_ = value;\n onChanged();\n return this;\n }", "public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}", "public void setProvincialTaxPayerId(Number value) {\n setAttributeInternal(PROVINCIALTAXPAYERID, value);\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setHotelID(int value) {\n this.hotelID = value;\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setId(String value) {\n setAttributeInternal(ID, value);\n }", "public void setBuyerNew(String value) {\n setAttributeInternal(BUYERNEW, value);\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setFriendId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n friendId_ = value;\n onChanged();\n return this;\n }", "public void setDealerId(String dealerId) {\n\t\tthis.dealerId = dealerId == null ? null : dealerId.trim();\n\t}", "public maestro.payloads.FlyerFeaturedItem.Builder setFlyerId(int value) {\n validate(fields()[2], value);\n this.flyer_id = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void setCarriedBy(String value) {\n setAttributeInternal(CARRIEDBY, value);\n }" ]
[ "0.7453654", "0.7155313", "0.7138096", "0.694728", "0.6924765", "0.68443614", "0.65728635", "0.64529705", "0.63118935", "0.6176654", "0.6115941", "0.6111011", "0.6084071", "0.6073067", "0.6073067", "0.6044619", "0.5996894", "0.5995958", "0.59491634", "0.5892588", "0.58284664", "0.5809818", "0.5787533", "0.5760312", "0.57526964", "0.57431716", "0.57361317", "0.57361317", "0.57202476", "0.57090676", "0.570464", "0.57021564", "0.5701438", "0.5701438", "0.56954825", "0.5691069", "0.5691069", "0.5675209", "0.56202817", "0.56080014", "0.55935955", "0.5582213", "0.5566885", "0.5559186", "0.5533954", "0.5530365", "0.5522561", "0.55118376", "0.5455312", "0.5453871", "0.54508936", "0.5439449", "0.5430307", "0.54123765", "0.5398274", "0.539053", "0.5385121", "0.5381584", "0.5381584", "0.53798777", "0.53763556", "0.5371032", "0.5363243", "0.5360763", "0.53567684", "0.5342968", "0.5339597", "0.5338886", "0.5338886", "0.5338886", "0.5337391", "0.53361857", "0.5335478", "0.5335134", "0.53332406", "0.5333016", "0.5325559", "0.53211707", "0.531593", "0.5311732", "0.5311732", "0.5310533", "0.5305217", "0.5305217", "0.5305217", "0.5305217", "0.5305217", "0.5305217", "0.5305217", "0.53045535", "0.53045535", "0.53045535", "0.53045535", "0.53045535", "0.53045535", "0.530402", "0.5301844", "0.53017557", "0.5293868" ]
0.86101794
1
Gets the attribute value for FabCons, using the alias name FabCons.
public String getFabCons() { return (String)getAttributeInternal(FABCONS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFabConst() {\n return (String)getAttributeInternal(FABCONST);\n }", "public void setFabCons(String value) {\n setAttributeInternal(FABCONS, value);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabOunce() {\n return (String)getAttributeInternal(FABOUNCE);\n }", "public String getFabOunce() {\n return (String)getAttributeInternal(FABOUNCE);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public Object getProperty(String attName);", "String getAttribute();", "java.lang.String getAttribute();", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getFa() {\n return fa;\n }", "Attribute getAttribute();", "public String getDA() {\n\t\treturn da;\r\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public String getAttribute(String name);", "public String getValue() {\n return super.getAttributeValue();\n }", "public String getAttrVal() {\n return attrVal;\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public static String getAttributeValue(ClassAdStructAttr[] classAd,String AttrName) {\n int len = classAd.length;\n for(int i=0;i<len;i++) {\n if(AttrName.compareToIgnoreCase(classAd[i].getName()) == 0)\n return classAd[i].getValue();\n }\n return null;\n }", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "@Override\n public Optional<String> getAlias() {\n String symbol = atom.symbol();\n if(!atom.isRSite() && !Elements.isElementSymbol(symbol)){\n return Optional.of(symbol);\n }\n return Optional.empty();\n }", "public String getTermcat() {\r\n return (String) getAttributeInternal(TERMCAT);\r\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Object getAttribute(String name);", "public java.lang.CharSequence getAlias() {\n return alias;\n }", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }", "public AttributeDefinition adef(ClassDefinition cd, String n) throws DmcValueException {\n \tAttributeDefinition rc = null;\n \t\n \ttry{\n \t\trc = attributeDefinitions.getDefinition(n);\n \t}\n \tcatch(DmcNameClashException ex){\n \t\tIterator<DmcNamedObjectIF> matches = ex.getMatches();\n \t\t\n \t\tAttributeDefinition fromMeta \t= null;\n \t\tAttributeDefinition exact\t\t= null;\n \t\twhile(matches.hasNext()){\n \t\t\tAttributeDefinition adef = (AttributeDefinition) matches.next();\n \t\t\t\n \t\t\tif (adef.getDefinedIn().getName().equals(cd.getDefinedIn().getName())){\n \t\t\t\texact = adef;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\t\n \t\t\tif (adef.getDefinedIn().getName().equals(\"meta\"))\n \t\t\t\tfromMeta = adef;\n \t\t}\n \t\t\n \t\tif (exact != null)\n \t\t\trc = exact;\n \t\telse\n \t\t\trc = fromMeta;\n \t}\n\n \treturn(rc);\n }", "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "public java.lang.CharSequence getAlias() {\n return alias;\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getBENEF_ACC() {\r\n return BENEF_ACC;\r\n }", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getAttr() {\n return attr;\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAlias() {\r\n return getAlias(this.getClass());\r\n }", "public byte getCLA() {\n return this.apdu_buffer[CLASS];\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getcatgdesc() {\n return (String) getAttributeInternal(CATGDESC);\n }", "public String getAlias() {\n return alias;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static<T, K> T getValue(Entry<K> entry, String name){\n\t\tObject var = entry.getEntryContainer().resolveAttribute(name, entry);\n\t\treturn (T) var;\n\t\t\n\t}", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\n return alias;\n }", "public String name() {\n return aliases.get(0);\n }", "private String getStyleAttribute() {\n StringBuilder sb = new StringBuilder();\n\n styleAttribute.forEach((key, value) -> {\n sb.append(key).append(\":\").append(value).append(\";\");\n });\n\n return sb.toString();\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "public String getQual() {\r\n return (String) getAttributeInternal(QUAL);\r\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public String getAlias() {\n return alias;\n }", "int nc_get_att(int ncid, int varid, String name, Pointer p);", "AttributeDefinition getDefinition();", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "public String getAttribute() {\n return attribute;\n }", "public String getAlias() {\n\t\treturn alias;\n\t}", "public Causa getCausa() {\n return causa.get();\n }", "public String getExtAttributeCategory() {\n return (String) getAttributeInternal(EXTATTRIBUTECATEGORY);\n }", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public String getAssortProd() {\n return (String)getAttributeInternal(ASSORTPROD);\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "public final String getFederationAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"federationAttribute\");\n\t}", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adresa_ = s;\n return s;\n }\n }", "protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuilderData(getContext())\n .getBeanContext();\n if (isAttributeDefined(ATTR_BEAN_CLASS))\n {\n Class<?> beanClass = FormBaseTag.convertToClass(getAttributes()\n .get(ATTR_BEAN_CLASS));\n return bc.getBean(beanClass);\n }\n else\n {\n return bc.getBean(getStringAttr(ATTR_BEAN_NAME));\n }\n }\n }", "public String getFabric() {\n return fabric;\n }", "public String getAlias() {\n return this.key.substring(this.key.lastIndexOf(\".\") + 1);\n }", "public String toString() {\n\t\t\treturn aliases[0];\n\t\t}", "public String getASSMBL_CD() {\n return ASSMBL_CD;\n }", "public String getCusBak() {\r\n return cusBak;\r\n }", "public String getValue(String name){\n if(!kchain.containsKey(name))return akargs.get(name);\n else return kchain.get(name).toString();\n }", "public java.lang.String getATC() {\n return ATC;\n }", "public java.lang.String getAsapcata() {\n return asapcata;\n }", "public java.lang.String getFA(){\r\n return localFA;\r\n }", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public static String getEnumAttributeIfApplicable(String className, String attribName, String value, boolean checkIfDeployValue) {\r\n\t\tDeployType deployType = null;\r\n\t\tDomainClass domainclass = DomainManager.getInstance().getDomainClass(className);\r\n\t\tif (domainclass != null) {\r\n\t\t\tDomainAttribute domainattribute = domainclass.getDomainAttribute(attribName);\r\n\t\t\tif (domainattribute != null) deployType = domainattribute.getDeployType();\r\n\t\t}\r\n\r\n\t\tString strippedValue = stripQuotes(value);\r\n\r\n\t\t// pass flag indiciating if this is for a boolean attribute\r\n\t\tString enumValueStr = DeploymentManager.getInstance().getEnumDeployValue(\r\n\t\t\t\tclassName,\r\n\t\t\t\tattribName,\r\n\t\t\t\tstrippedValue,\r\n\t\t\t\t(deployType != null && deployType == DeployType.BOOLEAN),\r\n\t\t\t\tcheckIfDeployValue);\r\n\t\tif (enumValueStr != null) {\r\n\t\t\tif (deployType == DeployType.STRING) {\r\n\t\t\t\treturn QUOTE + enumValueStr + QUOTE;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn enumValueStr;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getATA_CD() {\n return ATA_CD;\n }", "public String getCn() {\n return (String)getAttributeInternal(CN);\n }", "public int getAtt() {\n\t\treturn att;\n\t}", "@NotNull\n public String getAlias()\n {\n return alias;\n }", "public String getATR() {\n\t\tif (cardacos3 == null)\n\t\t\treturn null;\n\t\tATR atr = cardacos3.getATR();\n\t\tbyte[] atr_bytes = atr.getBytes();\n\t\tString atr_hex = HelpersFunctions.bytesToHex(atr_bytes);\n\t\treturn atr_hex;\n\t}", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adresa_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }" ]
[ "0.59745795", "0.57893056", "0.5788265", "0.5788265", "0.55637383", "0.55637383", "0.5436149", "0.538146", "0.53259367", "0.5279852", "0.527237", "0.5236382", "0.50892615", "0.5062238", "0.5055928", "0.5001442", "0.49881053", "0.4971594", "0.49624625", "0.49564698", "0.49291205", "0.4921855", "0.49077335", "0.4889946", "0.48779806", "0.48766157", "0.4856099", "0.48423922", "0.48359028", "0.48344204", "0.48228198", "0.48223335", "0.4818437", "0.4815906", "0.48093623", "0.48063573", "0.47972453", "0.4789098", "0.4788875", "0.4784965", "0.47713405", "0.4766302", "0.4762596", "0.4762596", "0.4762596", "0.475523", "0.4747055", "0.47419775", "0.47208244", "0.47038245", "0.46959528", "0.46948138", "0.46825492", "0.46743903", "0.46738017", "0.4673752", "0.46701467", "0.46690378", "0.466054", "0.46548548", "0.46539813", "0.46539813", "0.46489096", "0.46431053", "0.46424973", "0.46392247", "0.46336657", "0.4632263", "0.46260518", "0.462525", "0.4620426", "0.46201128", "0.4613059", "0.46130472", "0.4606341", "0.46060827", "0.46048814", "0.46046954", "0.46044022", "0.45987454", "0.4594916", "0.45837638", "0.45794335", "0.45734125", "0.4571815", "0.45711872", "0.45698613", "0.45671096", "0.45654264", "0.45653254", "0.45651543", "0.45632035", "0.45626223", "0.45611757", "0.45593378", "0.4554946", "0.4553665", "0.45533296", "0.45407686", "0.45404556" ]
0.71932197
0
Sets value as the attribute value for FabCons.
public void setFabCons(String value) { setAttributeInternal(FABCONS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFabConst(String value) {\n setAttributeInternal(FABCONST, value);\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setValue(Value value) {\n this.value = value;\n }", "@JacksonXmlProperty(isAttribute = true, localName = \"value\")\n public Builder value(String value) {\n this.value = value;\n return this;\n }", "public void setAttributeValue(final String name, final String value) {\n final Attribute attribute = manifestElement.getAttribute(name);\n if (attribute == null) {\n manifestElement.addAttribute(new Attribute(name, value));\n } else {\n attribute.setAttributeValue(value);\n }\n }", "public void setConductor(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), CONDUCTOR, value);\r\n\t}", "public void setValue(Object value) {\n this.value = value;\n }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void set(byte[] value) {\n this.value = value;\n }", "public void setValue(Object value) { this.value = value; }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setCar(final SessionContext ctx, final Employee item, final Car value)\n\t{\n\t\titem.setProperty(ctx, CarConstants.Attributes.Employee.CAR,value);\n\t}", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setFECHAINICVAL(int value) {\n this.fechainicval = value;\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public BladeController setAttr(String name, Object value) {\n\t\trequest.setAttribute(name, value);\n\t\treturn this;\n\t}", "public void setValue(A value) {this.value = value; }", "public CategoryBuilder setValue(String value)\n {\n fValue = value;\n return this;\n }", "public void setAttrib(String name, String value);", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public void setConductor( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), CONDUCTOR, value);\r\n\t}", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value)\n {\n _value = setNonEmptyValueAttribute(value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setValue( String value )\n {\n this.value = value;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setValue(String value) {\n set (value);\n }", "public void setCValue(V value);", "public void setValue(final List<String> attrValue) {\r\n if (attrValue != null) {\r\n this.value = attrValue;\r\n }\r\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void set(int value){\n val = value;\n }", "public static void setConductor(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.set(model, instanceResource, CONDUCTOR, value);\r\n\t}", "public void setVal(int value) {\n this.val = value;\n }", "public void setApplication(String attName, Object value) {\n servletRequest.getServletContext().setAttribute(attName, value);\n }", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setValue (String Value);", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(T value) {\n this.mValue = value;\n if (mDependency == null)\n mDependency = new ReactorDependency();\n\n mDependency.changed();\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(AXValue value) {\n this.value = value;\n }", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setFrontEnd(String value) {\n _avTable.set(ATTR_FE_NAME, value);\n }", "public void setValue(int value) {\n\t\tthis.removeAllPCData();\n\t\ttry {\n\t\t\tthis.appendChild(new XPCData(Integer.toString(value)));\n\t\t} catch (Exception e) {\n\t\t\t//ignoring this because it shouldn't break\n\t\t}\n\t}", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void set(int value)\n {\n set(value, true);\n }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(final Object value) { _value = value; }", "void setValue(String value);", "void setValue(String value);", "public void set(final V value) {\n\t\tthis.value = value;\n\t}", "public void setABContact(entity.ABContact value);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(Object value);", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setValue(final boolean updateClient, final String value) {\n super.setAttributeValue(updateClient, value);\n }" ]
[ "0.6330804", "0.6116943", "0.60920876", "0.6036969", "0.581", "0.5782403", "0.573549", "0.5693157", "0.565817", "0.5656846", "0.5651832", "0.5651832", "0.5641724", "0.5641724", "0.563903", "0.56356245", "0.56312233", "0.5572274", "0.5572274", "0.5572274", "0.5572274", "0.5572274", "0.5571873", "0.55681777", "0.5554869", "0.55453044", "0.5542836", "0.5542836", "0.5542836", "0.5542836", "0.55375314", "0.55054027", "0.54958606", "0.54918647", "0.54918647", "0.54918647", "0.54918647", "0.54918647", "0.5491807", "0.5481015", "0.54798925", "0.54785836", "0.5477984", "0.54723203", "0.5467254", "0.54623353", "0.546174", "0.54592454", "0.5453528", "0.5451564", "0.5449542", "0.54489756", "0.5442057", "0.5438712", "0.5433773", "0.5433773", "0.5433773", "0.5433773", "0.5433537", "0.5431225", "0.5428402", "0.5423423", "0.54174334", "0.5416451", "0.540504", "0.5394065", "0.5392076", "0.53815293", "0.5380461", "0.5374724", "0.5373827", "0.5373827", "0.5372637", "0.53726363", "0.5372592", "0.5371977", "0.53612113", "0.5358812", "0.534632", "0.53455806", "0.5343198", "0.5343198", "0.5343198", "0.53384495", "0.53350765", "0.53299284", "0.5328522", "0.5328522", "0.532782", "0.5321245", "0.53204906", "0.5315216", "0.5310044", "0.5310044", "0.5310044", "0.5310044", "0.5310044", "0.53052294", "0.5289898", "0.5288722" ]
0.75525177
0
Gets the attribute value for FabComp, using the alias name FabComp.
public String getFabComp() { return (String)getAttributeInternal(FABCOMP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFabOunce() {\n return (String)getAttributeInternal(FABOUNCE);\n }", "public String getFabOunce() {\n return (String)getAttributeInternal(FABOUNCE);\n }", "public String getFabConst() {\n return (String)getAttributeInternal(FABCONST);\n }", "public String getFabCons() {\n return (String)getAttributeInternal(FABCONS);\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "public String getCompName() {\n return (String) getAttributeInternal(COMPNAME);\n }", "public String getCompAccomFlag() {\n return (String)getAttributeInternal(COMPACCOMFLAG);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public int getValue()\n {\n try\n {\n return (Integer) AlphaComposite.class.getField(name).get(null);\n }\n catch (Exception e)\n {\n return -1;\n }\n }", "public String getCompCode() {\n return (String)getAttributeInternal(COMPCODE);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.ABContact getABContact();", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public EMAComponentSymbol getComponent() {\n return (EMAComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get();\n }", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public String getFa() {\n return fa;\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "String getAttribute();", "Attribute getAttribute();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute(String name);", "public String getAircraftManufacturer() {\n return aircraft.getManufacturer();\n }", "public String getCodaComponent() {\n return codaComponent;\n }", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "java.lang.String getAttribute();", "public String getValue_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getAttribute(\"value\");\r\n\t}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public Object getAttribute(String name);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }", "protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuilderData(getContext())\n .getBeanContext();\n if (isAttributeDefined(ATTR_BEAN_CLASS))\n {\n Class<?> beanClass = FormBaseTag.convertToClass(getAttributes()\n .get(ATTR_BEAN_CLASS));\n return bc.getBean(beanClass);\n }\n else\n {\n return bc.getBean(getStringAttr(ATTR_BEAN_NAME));\n }\n }\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttrVal() {\n return attrVal;\n }", "public String getCoda2Component() {\n return coda2Component;\n }", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Object getProperty(String attName);", "public int getFECHAINICVAL() {\n return fechainicval;\n }", "public String getSrcFax() {\r\n return (String) getAttributeInternal(SRCFAX);\r\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public void getConstantFrom(JComponent cmp) {\n assert cmp != null : \"getConstantFrom() is not implemented!\"; //NOI18N\n }", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "public String getFrontEnd() {\n if (_avTable.get(ATTR_FE_NAME) == null\n || _avTable.get(ATTR_FE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_FE_NAME, \"Uu\", 0);\n }\n\n return _avTable.get(ATTR_FE_NAME);\n }", "String getValueName();", "public UAC getUAC() { \r\n return getTyped(\"UAC\", UAC.class);\r\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public int getFKComp() {\n\t\treturn FKComp;\n\t}", "public String getBENEF_ACC() {\r\n return BENEF_ACC;\r\n }", "String getACModeName();", "public String getQual() {\r\n return (String) getAttributeInternal(QUAL);\r\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public static String getEnumAttributeIfApplicable(String className, String attribName, String value, boolean checkIfDeployValue) {\r\n\t\tDeployType deployType = null;\r\n\t\tDomainClass domainclass = DomainManager.getInstance().getDomainClass(className);\r\n\t\tif (domainclass != null) {\r\n\t\t\tDomainAttribute domainattribute = domainclass.getDomainAttribute(attribName);\r\n\t\t\tif (domainattribute != null) deployType = domainattribute.getDeployType();\r\n\t\t}\r\n\r\n\t\tString strippedValue = stripQuotes(value);\r\n\r\n\t\t// pass flag indiciating if this is for a boolean attribute\r\n\t\tString enumValueStr = DeploymentManager.getInstance().getEnumDeployValue(\r\n\t\t\t\tclassName,\r\n\t\t\t\tattribName,\r\n\t\t\t\tstrippedValue,\r\n\t\t\t\t(deployType != null && deployType == DeployType.BOOLEAN),\r\n\t\t\t\tcheckIfDeployValue);\r\n\t\tif (enumValueStr != null) {\r\n\t\t\tif (deployType == DeployType.STRING) {\r\n\t\t\t\treturn QUOTE + enumValueStr + QUOTE;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn enumValueStr;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "String getDisplayValue() {\n\t\treturn symbol;\n\t}", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }", "public String getXpeFacility() {\n return (String) getAttributeInternal(XPEFACILITY);\n }", "public abstract java.lang.String getAcma_valor();", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public AppDescriptor getSelected()\n {\n DefaultMutableTreeNode nodeSelected = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\n AppDescriptor appDesc = null;\n \n if( (nodeSelected != null) && (nodeSelected.getUserObject() instanceof AppDescriptor) )\n appDesc = (AppDescriptor) nodeSelected.getUserObject();\n \n return appDesc;\n }", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "@JsonIgnore public String getAircraftString() {\n return (String) getValue(\"aircraft\");\n }", "public int acab()\n\t\t{\n\t\t\treturn this.acabe;\n\t\t}", "@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public String getExtAttributeCategory() {\n return (String) getAttributeInternal(EXTATTRIBUTECATEGORY);\n }", "public static Forca get_f(){\n\t\treturn f;\n\t}", "public static String getAttributeValue(ClassAdStructAttr[] classAd,String AttrName) {\n int len = classAd.length;\n for(int i=0;i<len;i++) {\n if(AttrName.compareToIgnoreCase(classAd[i].getName()) == 0)\n return classAd[i].getValue();\n }\n return null;\n }", "public String getValue_click_Digital_coupons_button(){\r\n\t\treturn click_Digital_coupons_button.getAttribute(\"value\");\r\n\t}", "public String getAircraftModel() {\n return aircraft.getModel();\n }", "public java.lang.String getCDGALF() {\n return CDGALF;\n }", "public String getcatgdesc() {\n return (String) getAttributeInternal(CATGDESC);\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "public int getFECHACRREVAL() {\n return fechacrreval;\n }", "public a c() {\n return this.f2078c;\n }", "public java.lang.String getFA(){\r\n return localFA;\r\n }", "public String getAttr() {\n return attr;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }", "public org.chartacaeli.model.CatalogADC7237 getCatalogADC7237() {\n return this.catalogADC7237;\n }", "public final String getFci() {\n return String.valueOf(fci);\n }", "public String getCompCode() {\n return compCode;\n }", "public String getElementAttribute(int row, int attr);", "public V getCValue();", "public String getComponent() {\n return this.component;\n }", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "EAttributeDefinition getAttribute();", "public int getAlphaInfoValue() {\n return instance.getAlphaInfoValue();\n }", "public String getValue_click_ActivateCoupon_Button(){\r\n\t\treturn click_ActivateCoupon_Button.getAttribute(\"value\");\r\n\t}", "public AXValue getName() {\n return name;\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (cazBuilder_ == null) {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n } else {\n if (payloadCase_ == 4) {\n return cazBuilder_.getMessage();\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }" ]
[ "0.5977032", "0.5977032", "0.58312535", "0.58201283", "0.5645394", "0.5645394", "0.5499099", "0.5459645", "0.54140913", "0.53663886", "0.52177125", "0.51636803", "0.51078534", "0.5106227", "0.5086308", "0.50845677", "0.5055154", "0.5034574", "0.50286", "0.49802762", "0.49792853", "0.49784398", "0.49446034", "0.48969066", "0.48894283", "0.48784333", "0.48666438", "0.4863495", "0.48531416", "0.48464453", "0.4823364", "0.48209932", "0.48201564", "0.4813485", "0.4797921", "0.47918525", "0.47912806", "0.47881597", "0.47811458", "0.4759519", "0.4743472", "0.47411874", "0.47396743", "0.47396743", "0.47396743", "0.47364324", "0.47361824", "0.4728464", "0.47277504", "0.47161555", "0.47094113", "0.47031575", "0.46986565", "0.4695497", "0.4694868", "0.467884", "0.46725342", "0.46684074", "0.46607766", "0.46558756", "0.46488586", "0.46486253", "0.46467346", "0.46457466", "0.46441928", "0.46409008", "0.4631067", "0.46294248", "0.46273392", "0.4626026", "0.46203753", "0.46196404", "0.46162704", "0.46133193", "0.4611353", "0.46032792", "0.4602468", "0.46004993", "0.46002686", "0.45944822", "0.45944822", "0.45884168", "0.45831332", "0.45829442", "0.4570663", "0.45670816", "0.45597377", "0.45591322", "0.45572194", "0.45534617", "0.45509046", "0.45471805", "0.45463094", "0.4533862", "0.45296887", "0.45281777", "0.45254484", "0.45240203", "0.45213762" ]
0.7391055
1
Sets value as the attribute value for FabComp.
public void setFabComp(String value) { setAttributeInternal(FABCOMP, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Object value) { this.value = value; }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue(Object value) {\n this.value = value;\n }", "@Override\n\tpublic void setComponentValue(Object value) {\n\t\t\n\t}", "public void setValue(Value value) {\n this.value = value;\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "public void setFabConst(String value) {\n setAttributeInternal(FABCONST, value);\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(A value) {this.value = value; }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setCValue(V value);", "public void setValue(FreeColAction value) {\n logger.warning(\"Calling unsupported method setValue.\");\n }", "public void setValue(AXValue value) {\n this.value = value;\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setValue(Object value);", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public void setValue(final Object value) { _value = value; }", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setFECHAINICVAL(int value) {\n this.fechainicval = value;\n }", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(Object val);", "public static void setComposer(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.set(model, instanceResource, COMPOSER, value);\r\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value)\n {\n this.value = value;\n }", "void setValue(Object value);", "public void setABContact(entity.ABContact value);", "public void setFabCons(String value) {\n setAttributeInternal(FABCONS, value);\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(T value) {\n this.value = value;\n }", "public void setEncodedBy(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "public void setValue(Object value) {\n setValue(value.toString());\n }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setFrontEnd(String value) {\n _avTable.set(ATTR_FE_NAME, value);\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void setValue (String Value);", "public void setValue(int value) {\n\t\tthis.removeAllPCData();\n\t\ttry {\n\t\t\tthis.appendChild(new XPCData(Integer.toString(value)));\n\t\t} catch (Exception e) {\n\t\t\t//ignoring this because it shouldn't break\n\t\t}\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public V setValue(V value);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "public void setComposer(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), COMPOSER, value);\r\n\t}", "public void setComposer( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMPOSER, value);\r\n\t}", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(float val)\n\t{\n\t\tthis.value = val;\n\t}", "public void setValue(float value) {\n this.value = value;\n }", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public static void setComposer( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, COMPOSER, value);\r\n\t}", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "@Override\n\tpublic void setValue(Object value) {\n\t\tint id = ((VObject) value).getId();\n\t\tItemData item = initItemData(id);\n\t\t((Combobox) component).setText(item.getLabel());\n\t\tsuper.setValue(value);\n\t}", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public void setValue(float value) {\n\t\tthis.value = value;\n\t\tthis.rawValue=Float.toString(value);\n\t}", "public BladeController setAttr(String name, Object value) {\n\t\trequest.setAttribute(name, value);\n\t\treturn this;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}", "void setValue(String value);", "void setValue(String value);", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}" ]
[ "0.6412269", "0.63932633", "0.63932633", "0.63496786", "0.6311624", "0.63022643", "0.6301449", "0.6284472", "0.62502146", "0.6214587", "0.62124074", "0.6179892", "0.61718696", "0.6160045", "0.61342114", "0.6115955", "0.6103897", "0.60991085", "0.60990494", "0.60901415", "0.6086376", "0.6086236", "0.6062971", "0.6026061", "0.5998632", "0.5994116", "0.5977257", "0.59680533", "0.59496707", "0.59463197", "0.59369755", "0.59369755", "0.59369755", "0.59369755", "0.5931107", "0.5904931", "0.5902844", "0.5902844", "0.5887786", "0.58829635", "0.5881361", "0.5874862", "0.5873811", "0.5873811", "0.5873811", "0.5873811", "0.5873811", "0.58659303", "0.58563834", "0.58431923", "0.5840138", "0.583975", "0.58388275", "0.5837835", "0.5837835", "0.58374834", "0.5832234", "0.5824196", "0.5822307", "0.5822307", "0.5822307", "0.58211696", "0.58199835", "0.5809499", "0.5808667", "0.5806526", "0.5806317", "0.58010256", "0.5799953", "0.57924336", "0.5792307", "0.5791806", "0.5791227", "0.5791227", "0.5791227", "0.5791227", "0.5791227", "0.5781944", "0.577584", "0.5753031", "0.5753031", "0.5753031", "0.5753031", "0.5753031", "0.57480323", "0.574753", "0.5745078", "0.5740797", "0.57336855", "0.5717843", "0.57153314", "0.57153314", "0.57150847", "0.5714165", "0.5714165", "0.5714165", "0.5714165", "0.57109034", "0.57109034" ]
0.74379635
1
Gets the attribute value for TotalAlocRolls, using the alias name TotalAlocRolls.
public Number getTotalAlocRolls() { return (Number)getAttributeInternal(TOTALALOCROLLS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public int getNumberOfRolls()\n {\n return this.numberOfRolls;\n }", "public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }", "public void setTotalRolls(Number value) {\n setAttributeInternal(TOTALROLLS, value);\n }", "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public static int getTotalAtraccions() {\n return totalAtraccions;\n }", "public int getACsum() {\n return (int)sum;\n }", "public String getTotalProperty() {\n\t\tif (null != this.totalProperty) {\n\t\t\treturn this.totalProperty;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"totalProperty\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic Integer getTotal(Map<String, Object> map) {\n\t\treturn roleDao.getTotal(map);\n\t}", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public String getTotalLearnlabStudents() {\n return this.totalLearnlabStudents;\n }", "public Long total() {\n return this.total;\n }", "@Override\n\tpublic Long getTotalCat() {\n\t\treturn categoriesDAO.getTotalCat();\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\n\t\treturn total;\n\t}", "@JsonProperty(\"total_items\")\n public Long getTotalItems() {\n return totalItems;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal () {\n return total;\n }", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "public int getTotal() {\n\t\treturn total;\n\t}", "public int getNombreAllumettes() {\n\t\treturn this.nbAllumettes;\n\t\t}", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "public Integer total() {\n return this.total;\n }", "public int total() {\n return _total;\n }", "public int getTotal() {\n return total;\n }", "public long getTotalExperience() {\r\n int total = 0;\r\n for (int i = 0; i < staticLevels.length; i++) {\r\n total += getExperience(i);\r\n }\r\n return total;\r\n }", "public Integer getRoleCount() {\n\t\treturn userDao.getRoleCount();\r\n\t}", "public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }", "public Integer getAccload() {\r\n return accload;\r\n }", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "public int getTotal() {\n return total[ke];\n }", "public int total() {\n return this.total;\n }", "public int getSumaAdunata() {\n return sumaAdunata_;\n }", "public int getCountAllSecRoles();", "public int getSumaAdunata() {\n return sumaAdunata_;\n }", "public Integer getCategoryTotalGradeForStudent(String pseudoName){\n Integer studentTotal = 0;\n\n for (int i = 0; i < assignments.size(); i++) {\n Integer next = assignments.get(i).getGrade(pseudoName);\n if (next != null) {\n studentTotal += next;\n }\n }\n\n return studentTotal;\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "int getAnnualSales() {\n return this.annualSales;\n }", "public int getCalories(){\r\n \tint retVal = this.calories;\r\n return retVal;\r\n }", "public int getTotalSalesCount(){\n return totalSalesCount;\n }", "public Number getTotalStandad() {\n return (Number)getAttributeInternal(TOTALSTANDAD);\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public Total getTotal() {\r\n\t\treturn total;\r\n\t}", "public int getSuma() {\n return suma_;\n }", "public Integer getSalesSum() {\n return salesSum;\n }", "public String getTotalLearnlabActions() {\n return this.totalLearnlabActions;\n }", "public String getRol() \n {\n \t return rol;\n }", "public BigDecimal getACC_SL() {\r\n return ACC_SL;\r\n }", "public int getSuma() {\n return suma_;\n }", "@Override\n public String RolesStatistics() {\n List<Employee> allEmployees = payrollService.AllEmployees();\n int ceo=0,manager=0,project_manager=0,employee=0;\n\n StringBuilder sb = new StringBuilder(\"\");\n for(int i=0;i<allEmployees.size();i++) {\n Employee e = allEmployees.get(i);\n if(e.getRole().getTitle().equals(\"CEO\"))\n ceo++;\n else if(e.getRole().getTitle().equals(\"Manager\"))\n manager++;\n else if(e.getRole().getTitle().equals(\"Project Manager\"))\n project_manager++;\n else if(e.getRole().getTitle().equals(\"Employee\"))\n employee++;\n }\n sb.append(\"Employees: \"+employee+\"\\n\");\n sb.append(\"Project Managers: \"+project_manager+\"\\n\");\n sb.append(\"Managers: \"+manager+\"\\n\");\n sb.append(\"CEOs: \"+ceo+\"\\n\");\n\n return sb.toString();\n }", "@XmlAttribute\r\n public Integer getTotalResults() {\r\n return totalResults;\r\n }", "public static int getSuma() {\n\t\treturn suma;\n\t}", "public double getTotal() {\n return Total;\n }", "public Coverage getTotal() {\n return this.total;\n }", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public int getRollVal(){\n return this.rollVal;\n }", "public double getTotal() {\n\t\treturn total;\n\t}", "public float getTotal() {\n return this.total;\n }", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}", "public String getTotalTaxes(){\n String tax = driver.findElement(oTotalTaxes).getText();\n logger.debug(\"total taxes is\" + tax);\n return tax;\n }", "public String salesPerRoll(){\n\t\tint i;\n\t\tint listSize = ordersPerRoll.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Sales Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + ordersPerRoll.get(i).getRoll().getType() + \"s : \" + ordersPerRoll.get(i).getStock() + \" \";\n\t\t}\n\t\t//System.out.println(outputText);\n\t\treturn outputText;\n\t}", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public String getRolesNombre() throws DataStoreException {\r\n return getString(ROLES_NOMBRE);\r\n }", "public int getCalories () {\n\t\treturn this.calories;\n\t}", "public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }", "public int getSellRatingTotalCount() {\n return sellRatingTotalCount;\n }", "public com.a9.spec.opensearch.x11.QueryType.TotalResults xgetTotalResults()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.TotalResults target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.TotalResults)get_store().find_attribute_user(TOTALRESULTS$4);\n return target;\n }\n }", "public Number getTotalYards() {\n return (Number)getAttributeInternal(TOTALYARDS);\n }", "public int getArmyCount() {\n\n return this.totArmyCount;\n }", "public Number getTotalNum() {\n return (Number) getAttributeInternal(TOTALNUM);\n }", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "public float getRoll() {\n return roll_;\n }", "public float getRoll() {\n return roll_;\n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public Number getActiveConsultants() {\r\n return (Number) getAttributeInternal(ACTIVECONSULTANTS);\r\n }", "public int getAisles ()\n {\n return (aisles);\n }", "public String getTotalLearnlabPapers() {\n return this.totalLearnlabPapers;\n }", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "@Override\r\n\tpublic int getTotal(EBook ebook) {\n\t\treturn permissionDao.getTotal(ebook);\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}" ]
[ "0.7413364", "0.69227254", "0.63982016", "0.6064705", "0.58918476", "0.5752714", "0.5606518", "0.5606419", "0.5577681", "0.55138475", "0.5397042", "0.5320272", "0.5252295", "0.5201665", "0.5201665", "0.51634717", "0.5138086", "0.5130111", "0.511327", "0.510413", "0.5101587", "0.50907826", "0.50907826", "0.50624293", "0.5060105", "0.50579095", "0.50579095", "0.50481427", "0.5047761", "0.5047761", "0.50474584", "0.504076", "0.50384754", "0.5038339", "0.50329524", "0.5013596", "0.5009651", "0.5002775", "0.49800763", "0.49778408", "0.49646518", "0.49615067", "0.49612495", "0.49504635", "0.49488544", "0.49427804", "0.49420813", "0.49154785", "0.4904423", "0.49006853", "0.48993823", "0.4897398", "0.4896954", "0.48895612", "0.4887435", "0.4878524", "0.48542166", "0.48400313", "0.48263296", "0.48151165", "0.48123404", "0.48115602", "0.47969988", "0.47873434", "0.47848934", "0.47786492", "0.4774534", "0.47670248", "0.47619584", "0.4758769", "0.47495517", "0.47495443", "0.474408", "0.4743423", "0.4736641", "0.47301167", "0.47236955", "0.47158507", "0.47127852", "0.47003755", "0.46984568", "0.46944094", "0.4687823", "0.46873015", "0.46834636", "0.46819523", "0.46798465", "0.467813", "0.4674493", "0.46725807", "0.46722376", "0.46722376", "0.46712017", "0.46672145", "0.46664968", "0.466414", "0.4663011", "0.46590477", "0.4657792", "0.4657792" ]
0.835812
0
Sets value as the attribute value for TotalAlocRolls.
public void setTotalAlocRolls(Number value) { setAttributeInternal(TOTALALOCROLLS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalRolls(Number value) {\n setAttributeInternal(TOTALROLLS, value);\n }", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public void setBlncRolls(Number value) {\n setAttributeInternal(BLNCROLLS, value);\n }", "public void setTotal(int value) {\n this.total = value;\n }", "public int getNumberOfRolls()\n {\n return this.numberOfRolls;\n }", "public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }", "public void setTotalAbonos() {\n String totalAbonos = this.costoAbono.getText();\n int total = Integer.parseInt(totalAbonos.substring(1,totalAbonos.length()));\n this.tratamientotoSelected.setTotalAbonos(total);\n \n PlanTratamientoDB.editarPlanTratamiento(tratamientotoSelected);\n }", "@Override\n\tpublic void setTotalOil(int totalOil) {\n\t\tthis.totalOil += totalOil;\n\n\t}", "public void setTotalSeats(int value) {\n this.totalSeats = value;\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public void setNumberOfRolls(int nOfRolls)\n {\n this.numberOfRolls = nOfRolls;\n }", "public void setCurrentAlloment(int value) {\n this.currentAlloment = value;\n }", "public static int getTotalAtraccions() {\n return totalAtraccions;\n }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "public void setTotalPassengers(int value) {\n this.totalPassengers = value;\n }", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "private void setupTotalSoldTicketsLabel() {\n totalSoldTicketsLabel.setText(\"\" + totalSoldTickets);\n }", "@Override\n\tpublic void areaTotal() {\n\t\tsolido.areaTotal = solido.areaLateral + solido.areaBase;\n\t}", "public void setSales(Integer sales) {\n this.sales = this.sales + sales;\n }", "public void setTotalYards(Number value) {\n setAttributeInternal(TOTALYARDS, value);\n }", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "public void setTotalAbsencePercentage(double totalAbsencePercentage) {\n //this.totalAbsencePercentageProperty.set(Math.round(totalAbsencePercentage * 100.0) / 100.0);\n this.totalAbsencePercentageProperty.set(totalAbsencePercentage);\n }", "public void setTotal(Number value) {\n setAttributeInternal(TOTAL, value);\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "public void setLvl(int lvl) {\r\n\t\tfor(int i = this.nivelArma; i < lvl; i++) {\r\n\t\t\tstatsLvlUp();\r\n\t\t\tnivelArma += 1;\r\n\t\t}\r\n\t}", "public void setAccload(Integer accload) {\r\n this.accload = accload;\r\n }", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "public void setTotalStandad(Number value) {\n setAttributeInternal(TOTALSTANDAD, value);\n }", "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public int getRollVal(){\n return this.rollVal;\n }", "public void setTotal(Double total);", "public void setTotal(int total) {\n this.total = total;\n }", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void set_sum_a(int value) {\n setSIntBEElement(offsetBits_sum_a(), 32, value);\n }", "public void setRolled(boolean rolled) {\n\t\tthis.rolled = rolled;\n\t\trepaint();\n\t}", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public int getACsum() {\n return (int)sum;\n }", "@Override\n\tpublic Integer getTotal(Map<String, Object> map) {\n\t\treturn roleDao.getTotal(map);\n\t}", "public void showTotalValue() {\n double totalValue = 0;\n for (Row row : rows) { // Iterate over the ArrayList.\n totalValue += row.getSeatTotal(); // Get the total for the seats from each row and add all the rows them together.\n }\n System.out.println(\"The total value of seats sold is $\" + df.format(totalValue));\n }", "public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }", "public int setRowTotal(){\n\t\tif (game.getDifficulty() == 0 )\n\t\t\treturn 2;\n\t\telse if( game.getDifficulty() == 1 )\n\t\t\treturn 3;\n\t\telse \n\t\t\treturn 4;\n\t}", "public void setSellRatingTotalCount(int value) {\n this.sellRatingTotalCount = value;\n }", "public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }", "public void setTotalLearnlabStudents(String totalLearnlabStudents) {\n this.totalLearnlabStudents = totalLearnlabStudents;\n }", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void setRoll(double aValue)\n{\n if(aValue==getRoll()) return;\n repaint();\n firePropertyChange(\"Roll\", getRSS().roll, getRSS().roll = aValue, -1);\n}", "private void updateLuts() {\r\n\t\tint luts = 0;\r\n\r\n\t\t// We get the Luts of each module and add them together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tluts += Integer.valueOf(helperInstMod.model.getElementAt(i).getLuts());\r\n\t\t}\r\n\r\n\t\tlabelLuts.setText(\"Total Luts: \" + String.valueOf(luts));\r\n\t}", "public void setExpensesTotal(){\n\t\t\texpensesOutput.setText(\"$\" + getExpensesTotal());\n\t\t\tnetIncomeOutput.setText(\"$\" + getNetIncome());\n\t\t}", "private void updateExpectedTotalOffices() {\n mExpectedTotalOffices++;\n }", "@Test\n public void setTotal() throws NegativeValueException {\n cartItem.setTotal(45);\n double expected = 45;\n double actual = cartItem.getTotal();\n assertEquals(expected, actual, 0.0);\n }", "public void setLA(long value) {\n this.la = value;\n }", "public void setTotalHits(long totalHits)\r\n\t{\r\n\t\tthis.totalHits = totalHits;\r\n\t}", "public Builder setLac(int value) {\n \n lac_ = value;\n onChanged();\n return this;\n }", "TotalRevenueView(){\r\n this.runningTotal = 0;\r\n this.VAT = 0;\r\n }", "@BinderThread\n public void setRoll(float roll) {\n this.roll = -roll;\n }", "@JsonProperty(\"total_items\")\n public Long getTotalItems() {\n return totalItems;\n }", "public Builder setRoll(float value) {\n bitField0_ |= 0x00000080;\n roll_ = value;\n onChanged();\n return this;\n }", "public void setIncomeTotal(){\n\t\tincomeOutput.setText(\"$\" + getIncomeTotal());\n\t\tnetIncomeOutput.setText(\"$\" + (getIncomeTotal() - getExpensesTotal()));\n\t}", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "public void setTotalTimer(int totalSec){\r\n\t\tFlashBuddyTimerActivity.totalSec = totalSec;\r\n\t}", "public void setTotalResults(java.math.BigInteger totalResults)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TOTALRESULTS$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TOTALRESULTS$4);\n }\n target.setBigIntegerValue(totalResults);\n }\n }", "private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }", "@JsonProperty(\"total_items\")\n public void setTotalItems(Long totalItems) {\n this.totalItems = totalItems;\n }", "public void setTotalSeconds() {\n //this.totalSeconds = (int)((endTime.compareTo(startTime)*1000)/60);\n //long diff = endTime.compareTo(startTime);\n long diffMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n // for testing only use no. secs\n this.totalSeconds += (int)((diffMillis/1000));\n // !!Reinstate this line: this.totalSeconds += (int)((diffMillis/1000)/60);\n\n }", "protected int getTotalEnrolled() {\n return getTotalEnrolledEvening() + getTotalEnrolledMorning();\n }", "public Integer getAccload() {\r\n return accload;\r\n }", "public void setNumAyuAtracc(int num);", "@XmlAttribute\r\n public Integer getTotalResults() {\r\n return totalResults;\r\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setTotalPoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1) \n totalPoints1.set(points);\n else\n totalPoints2.set(points);\n }", "public Builder setRoll(float value) {\n bitField0_ |= 0x00000020;\n roll_ = value;\n onChanged();\n return this;\n }", "public int total() {\n return _total;\n }", "public void setAAALethalityRate(int value) {\n this.aaaLethalityRate = value;\n }", "public int RollCount() {\n\t\treturn 0;\r\n\t}", "public void setSueldoTotal(int sueldoTotal) {\n this.sueldoTotal = sueldoTotal;\n }", "public void changeAstat(int amt) {\n\t\taStatN += amt;\n\t\taStatM = aStatN / 2;\n\t}", "public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }", "public void setTotal(int total) {\n\t\tthis.total = total;\n\t}", "public void setTotal(Coverage total) {\n this.total = total;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "@Test\n void setTotal() {\n Tests tests = new Tests();\n tests.setTotal(78645);\n assertEquals(78645,tests.getTotal());\n\n }", "public void setRosterRowCount(int rowCount){\r\n\t\trosterRowCount = rowCount;\r\n\t}", "public void setTotalExperience ( int exp ) {\n\t\texecute ( handle -> handle.setTotalExperience ( exp ) );\n\t}", "public void setAmmount(int ammount) {\r\n this.ammount = ammount;\r\n }", "public void setRollNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Roll Number : \"+rollNumber);}", "public float getRoll() {\n return roll_;\n }", "public float getRoll() {\n return roll_;\n }", "public void setUpdateTickets (int updateTickets)\n {\n this.unsoldTickets=this.unsoldTickets + updateTickets; \n }", "private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}", "public void calcVal(JLabel l){\n\t\tdouble total = 0;\n\t\tfor(int i = 0; i < coinList.size(); i++){\n\t\t\ttotal += coinList.get(i).getValue();\n\t\t}\n\t\tl.setText(\"Total Money: $\" + toPercent(total));\n\t}", "public Builder setSumaAdunata(int value) {\n\n sumaAdunata_ = value;\n onChanged();\n return this;\n }", "public void setTotalPeroid(Integer totalPeroid) {\n this.totalPeroid = totalPeroid;\n }", "public abstract void setTotalPrice();", "public int total() {\n return this.total;\n }", "@JsonSetter(\"salary\")\n public void setSalary (int value) { \n this.salary = value;\n notifyObservers(this.salary);\n }", "public void setTotalprice(Integer totalprice) {\n this.totalprice = totalprice;\n }", "public void setRolesNombre(int row,String newValue) throws DataStoreException {\r\n setString(row,ROLES_NOMBRE, newValue);\r\n }" ]
[ "0.72468835", "0.72026396", "0.63439643", "0.6300687", "0.59018284", "0.5552951", "0.55281883", "0.54915684", "0.5439821", "0.54340935", "0.5415999", "0.5383637", "0.526207", "0.52157086", "0.52104217", "0.5149172", "0.51450276", "0.502953", "0.50133175", "0.49920064", "0.49864748", "0.49861914", "0.49344113", "0.49206492", "0.4915048", "0.4892538", "0.48826593", "0.48557", "0.4824911", "0.48094696", "0.47993797", "0.4798054", "0.47919133", "0.4781254", "0.4751354", "0.47336894", "0.47204396", "0.47110972", "0.4684115", "0.4679429", "0.46765086", "0.46633184", "0.4660745", "0.46456912", "0.46305925", "0.4625769", "0.46151027", "0.461373", "0.46040344", "0.46015355", "0.45925835", "0.4590238", "0.458682", "0.45768988", "0.4565434", "0.45641497", "0.45610434", "0.45596644", "0.45583642", "0.45570254", "0.45465872", "0.4538886", "0.45385632", "0.45171157", "0.45064402", "0.44998857", "0.44992518", "0.4496256", "0.4493159", "0.4492656", "0.44914305", "0.4481323", "0.44811445", "0.44734037", "0.44641864", "0.44576976", "0.44574338", "0.4457143", "0.4456997", "0.44563583", "0.44562694", "0.44553465", "0.44529173", "0.44494894", "0.44430438", "0.44424397", "0.44411543", "0.44381395", "0.44367954", "0.44367954", "0.44301596", "0.4418385", "0.44165987", "0.44161338", "0.44117576", "0.44094053", "0.4406417", "0.44054353", "0.4405251", "0.44051373" ]
0.8302987
0
Gets the attribute value for TotalAlocYrds, using the alias name TotalAlocYrds.
public Number getTotalAlocYrds() { return (Number)getAttributeInternal(TOTALALOCYRDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Number getTotalYards() {\n return (Number)getAttributeInternal(TOTALYARDS);\n }", "public Number getBlncYrds() {\n return (Number)getAttributeInternal(BLNCYRDS);\n }", "public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }", "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public double getSumY() { \n\t\treturn sumY; \n\t}", "public double getYOffset() {\n if (isReal) {\n return get(\"ty\");\n } else {\n return simTy.getDouble(0.0);\n }\n }", "public double getSumYY() { \n\t\treturn sumYY; \n\t}", "public java.lang.String getYylsh() {\r\n return localYylsh;\r\n }", "float getAccY();", "public float getAccY() {\n return accY_;\n }", "public int getLocY() {\n return locY;\n }", "public String getYbs() {\n return ybs;\n }", "public double getyOffset() {\n\n return currentYOffset + yOffset;\n }", "public double getSumXY() { \n\t\treturn sumX1Y; \n\t}", "public static int getIntY(MutableVector loc) {\n return (int) (loc.getY() * GRANULARITY);\n }", "public int getLocY() {\n return locY;\n }", "public float getAccY() {\n return accY_;\n }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public double Y_r() {\r\n \t\treturn getY();\r\n \t}", "public long getPointsTotal()\n {\n return pointsTotal;\n }", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "@Basic\n\tpublic double getAy() {\n\t\treturn this.ay;\n\t}", "public int getyCoord() {\n\t\treturn yCoord;\n\t}", "public Long getYc() {\n return yc;\n }", "public Coverage getTotal() {\n return this.total;\n }", "public double getLocationY() {\r\n\t\treturn location.getY();\r\n\t}", "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public int[] getY(){\n \tint[] arr = new int[12];\n \t double[] arrx = getXLocal();\n \t double[] arry = getYLocal();\n \t for (int i=0; i<getNumOfSides(); i++){\n \t\t arr[i]= (int) Math.round(arrx[i]*Math.sin(getTheta())\n \t\t+arry[i]*Math.cos(getTheta())+getYc());\n \t }\n \t return arr;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public double getY_location() {\n return y_location;\n }", "public double getAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public float getAverageY(){\r\n\t\treturn AverageY;\r\n\t}", "public double getyCoordinate() {\n return yCoordinate;\n }", "public double getTotal(){\n double total = 0;\n for(int i=0;i<array.length; i++){\n total += array[i].doubleValue();\n }\n return total;\n }", "abstract double getOrgY();", "public int getLocY ()\n {\n return locY;\n }", "public float getSumOfMarks() {\r\n\r\n float sum = 0f;\r\n for (int i = 0; i < numberOfCourses; i++)\r\n sum += marks[i];\r\n return sum;\r\n }", "public double getYCoordinates() { return yCoordinates; }", "public final double getY() { return location.getY(); }", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}", "public Number getTotalStandad() {\n return (Number)getAttributeInternal(TOTALSTANDAD);\n }", "public double getYValue(){\n return(yValue);\n }", "public double getY() {\n\t\treturn bassY;\n\t}", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "public int getLocationY( )\n\t{\n\t\treturn locationY;\n\t}", "public org.apache.xmlbeans.XmlDouble xgetAntennaHeight()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDouble target = null;\r\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n return target;\r\n }\r\n }", "public int y() {\n\t\treturn this.y;\n\t}", "public Integer getCalendarYy() {\r\n return calendarYy;\r\n }", "public double getYMean() {\n\t\treturn yStats.mean();\n\t}", "public double getYMean() {\n\t\treturn ySum / pointList.size();\n\t}", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public int get_Y_Coordinate()\n {\n return currentBallY;\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public int getY()\n {\n return rettangoloY; \n }", "public static int getTotalAtraccions() {\n return totalAtraccions;\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public Integer getYOffset() {\n\t\tdouble frameHeight = this.pixy.getFrameHeight();\n\t\tdouble blockY = this.getY();\n\n\t\treturn (int) (frameHeight / 2 + blockY);\n\t}", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "public double getYRangeIncr() {\n return yRangeIncr;\n }", "protected double getReferenceY() {\n if (isYAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingY()) {\n if (Double.isNaN(referenceY)) {\n referenceY = getMinY(false);\n }\n return referenceY;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "public double getTotal() {\n return Total;\n }", "public double getTotalSumSquares() {\n if (n < 2) {\n return Double.NaN;\n }\n return sumYY;\n }", "public int getCoordY() \r\n {\r\n \treturn this.coordY;\r\n }", "public String getyLabel() {\n return yLabel;\n }", "public Double A() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LONGITUDE\");\n }", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public int getY() {\r\n\t\treturn ycoord;\r\n\t}", "public final int getYOffset() {\n return yOffset;\n }", "public double GetY(){\n return this._Y;\n }", "public int y() {\n\t\treturn _y;\n\t}", "public String getTotalLearnlabDatasets() {\n return this.totalLearnlabDatasets;\n }", "default Integer getYOffset() {\n return null;\n }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public int getY_indice() {\n\t\treturn y_indice;\n\t}", "public int y (int index) { return coords[index][1]; }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public String getYx() {\n return yx;\n }", "public double getTotal() {\n\t\treturn total;\n\t}", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public long getYlong(){\n return (long) y;\n }", "public int gety() {\n return y;\n }", "public double getMouseClickedY() {\n\t\treturn Lel.coreEngine.panelPositionToWorld(input.getMouseClickedPosition()).getY();\n\t}", "public int getY() {\n return yCoord;\n }", "public ArrayList<Double> getYValues(){\n\t\treturn byteIncrements;\n\t}", "public int getY() {\n\t\treturn this.y_indice * DIM_CASE;\n\t}" ]
[ "0.6654231", "0.62823063", "0.55084026", "0.53676647", "0.5224449", "0.52012116", "0.5133934", "0.50957817", "0.50774527", "0.50293016", "0.4934332", "0.48520926", "0.4780329", "0.47701883", "0.47688022", "0.47684756", "0.4767977", "0.47628123", "0.47610128", "0.47538453", "0.47408813", "0.47308728", "0.47241288", "0.47164246", "0.47089607", "0.47049722", "0.4704105", "0.47036323", "0.47026083", "0.46923333", "0.46842697", "0.4671174", "0.46685582", "0.46494472", "0.463497", "0.463497", "0.46221632", "0.4613252", "0.46061662", "0.459651", "0.4592956", "0.45870727", "0.4581062", "0.4570122", "0.4569068", "0.4562842", "0.45598635", "0.45593798", "0.45556572", "0.45507625", "0.4544853", "0.45346755", "0.45312855", "0.4529042", "0.45285478", "0.45088732", "0.45053643", "0.45044118", "0.45043913", "0.4502959", "0.44892523", "0.44886056", "0.44871533", "0.44834632", "0.4483317", "0.44825128", "0.44798204", "0.44774303", "0.4474706", "0.44736892", "0.44716665", "0.44712475", "0.44694772", "0.44678307", "0.44588125", "0.44568998", "0.44568998", "0.4455976", "0.44534314", "0.44513306", "0.4450874", "0.44476134", "0.44473666", "0.44468853", "0.44400716", "0.44383508", "0.44345343", "0.4430051", "0.44274086", "0.4426555", "0.44262463", "0.44262463", "0.44262463", "0.44211346", "0.44189206", "0.44188192", "0.4417552", "0.44141176", "0.44105557", "0.44098708" ]
0.79667324
0
Sets value as the attribute value for TotalAlocYrds.
public void setTotalAlocYrds(Number value) { setAttributeInternal(TOTALALOCYRDS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public void setTotalYards(Number value) {\n setAttributeInternal(TOTALYARDS, value);\n }", "public Builder setAccY(float value) {\n bitField0_ |= 0x00000008;\n accY_ = value;\n onChanged();\n return this;\n }", "public void setY(double value) {\n this.y = value;\n }", "public void setYValue( double value ){\r\n\t\tsuper.setYValue( new Double( value ) );\r\n\t}", "public void setY(int y) { loc.y = y; }", "public void setYPOS(double value)\n {\n if(__YPOS != value)\n {\n _isDirty = true;\n }\n __YPOS = value;\n }", "public void setY(int value) {\n this.y = value;\n }", "public void setBlncYrds(Number value) {\n setAttributeInternal(BLNCYRDS, value);\n }", "protected void setAy(double ay) {\n\t\tif (isValidAy(ay))\n\t\t\tthis.ay = ay;\t\t\n\t\telse \n\t\t\tthis.ay = 0;\t\t\n\t}", "public void setY(double val) {\r\n\t\t this.yCoord = val;\r\n\t }", "public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }", "public void setY(Double y);", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000010;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000010;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00001000;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public void addYPoint(double val) {\n\t\tyStats.addSample(val);\n\t}", "public Builder setY(double value) {\n bitField0_ |= 0x00000008;\n y_ = value;\n onChanged();\n return this;\n }", "public void setyCoord(Location l) {\n\t\t\n\t}", "public void addLocY (int adder)\n {\n locY += adder;\n }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public Builder setY(int value) {\n bitField0_ |= 0x00000008;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public void setY( double Y)\r\n {\r\n curY = Y;\r\n }", "public void setY(double y) {\n this.y = y;\r\n }", "public void setYRangeIncr(String yRangeIncr) {\n setYRangeIncr(Double.parseDouble(yRangeIncr));\n }", "public void setY(byte[] value) {\n this.y = ((byte[]) value);\n }", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setY(double y)\n {\n this.y = y;\n }", "public void setY(int y){\n\t\tthis.y_location = y;\n\t}", "public void setY(double value) {\n origin.setY(value);\n }", "public Number getTotalYards() {\n return (Number)getAttributeInternal(TOTALYARDS);\n }", "public void setFrameY(double aY) { double y = _y + aY - getFrameY(); setY(y); }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "public double getYValue(){\n return(yValue);\n }", "public void setY(int y) { this.y=y; }", "public FractalTrace setY1(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 50.00 || value < -50.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, -50.00, 50.00);\n\t }\n\n m_Y1 = value;\n setProperty(\"Y1\", value);\n return this;\n }", "public void setY(int y ){\n if(y>0){\n this.y=y;\n }\n \n }", "public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY (int index, int y) { coords[index][1] = y; }", "public void setEndY(double y)\n {\n endycoord=y; \n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setTotalAbsencePercentage(double totalAbsencePercentage) {\n //this.totalAbsencePercentageProperty.set(Math.round(totalAbsencePercentage * 100.0) / 100.0);\n this.totalAbsencePercentageProperty.set(totalAbsencePercentage);\n }", "public void setY(double newY) {\r\n y = newY;\r\n }", "public void y(double y) {\n _y = y;\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "void setY(int y) {\n this.y = y;\n }", "public double getSumY() { \n\t\treturn sumY; \n\t}", "public void setTotal(Double total);", "double sety(double y) {\nreturn this.y;\n }", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public void setY(int ys)\r\n\t{\r\n\t\ty = ys;\r\n\t}", "public void setYRangeIncr(double yRangeIncr) {\n this.yRangeIncr = yRangeIncr;\n }", "public float getAccY() {\n return accY_;\n }", "public void setY(int y) {\n this.y = y;\r\n }", "public void setY(int y)\n {\n this.y = y;\n }", "public void setY(long y){\n this.y = y;\n }", "public void setvecY(double[] coords) {\r\n\t\tthis.vecY.setCoord(coords);\r\n\t\tthis.vecY = this.vecX.perp(vecY).normalize();\r\n\t\tthis.norm = this.vecX.cross(this.vecY);\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "public void addToCurrY(int y) {\n currY += y;\n }", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public float getAccY() {\n return accY_;\n }", "public Builder setY(long value) {\n copyOnWrite();\n instance.setY(value);\n return this;\n }", "public void setY(final int y) {\n\n this.y = y;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public void updateYLoc();", "public void setY(int ycoord) {\n\t\ty = ycoord;\n\t}", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setExternalAttributes(final long value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8f4b22cd-9e75-4a38-9e27-30ba1da16ade\");\n externalAttributes = value;\n }", "public void setY(int value)\n\t{\n\t\tgetWorldPosition().setY(value);\n\t}", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "void setY(float y) {\n _y = y;\n }", "public void NewY(double y){\n\t\tthis.y = y;\n\t}", "public void setY(int ypos) {\r\n this.ypos = ypos;\r\n }", "public FractalTrace setY2(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 50.00 || value < -50.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, -50.00, 50.00);\n\t }\n\n m_Y2 = value;\n setProperty(\"Y2\", value);\n return this;\n }", "public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}", "public void setYmultiplier(double sety)\n {\n ymultiplier = sety;\n }", "public void setYCoordinate(int newValue)\n {\n y = newValue;\n }" ]
[ "0.68896055", "0.5924358", "0.55644494", "0.5434039", "0.5365738", "0.53436095", "0.52782303", "0.5214819", "0.5189837", "0.51354307", "0.5127337", "0.5105443", "0.5068617", "0.5057312", "0.50521916", "0.5043408", "0.5042535", "0.5039585", "0.5038356", "0.5036552", "0.5036552", "0.5036552", "0.5033246", "0.5029275", "0.5021551", "0.50028735", "0.49991888", "0.4990196", "0.4983476", "0.49834654", "0.4982901", "0.4982901", "0.49799535", "0.49799535", "0.4979289", "0.496549", "0.49259198", "0.49036646", "0.49002355", "0.48843002", "0.48828283", "0.4881922", "0.4879504", "0.48787847", "0.48708987", "0.48685086", "0.48601496", "0.48565114", "0.48539078", "0.48487988", "0.48386893", "0.4825118", "0.48244476", "0.48244476", "0.48244476", "0.48217234", "0.48203635", "0.4816795", "0.4816795", "0.4816795", "0.48161155", "0.48031446", "0.47849232", "0.47730288", "0.47724497", "0.47717306", "0.47712702", "0.47711676", "0.47708535", "0.47708127", "0.47644714", "0.4763741", "0.4761565", "0.4761071", "0.47487822", "0.47296333", "0.47232914", "0.47206163", "0.4716736", "0.47131333", "0.4710997", "0.47094652", "0.4703552", "0.4703552", "0.4703552", "0.47033522", "0.47032237", "0.4697895", "0.4697895", "0.4697895", "0.46879593", "0.46873772", "0.4677837", "0.46671954", "0.46579713", "0.46526322", "0.46524185", "0.4651969", "0.46504378", "0.46482512" ]
0.8106426
0
Gets the attribute value for BlncRolls, using the alias name BlncRolls.
public Number getBlncRolls() { return (Number)getAttributeInternal(BLNCROLLS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "public void setBlncRolls(Number value) {\n setAttributeInternal(BLNCROLLS, value);\n }", "public String getRol() \n {\n \t return rol;\n }", "public int getNumberOfRolls()\n {\n return this.numberOfRolls;\n }", "public String getRolename() {\n return rolename;\n }", "public String getRolename() {\n return rolename;\n }", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "public Number getBlncYrds() {\n return (Number)getAttributeInternal(BLNCYRDS);\n }", "public Number getLabcol() {\n return (Number) getAttributeInternal(LABCOL);\n }", "@Generated\n public Rol getRol() {\n Long __key = this.usu_rol_id;\n if (rol__resolvedKey == null || !rol__resolvedKey.equals(__key)) {\n __throwIfDetached();\n RolDao targetDao = daoSession.getRolDao();\n Rol rolNew = targetDao.load(__key);\n synchronized (this) {\n rol = rolNew;\n \trol__resolvedKey = __key;\n }\n }\n return rol;\n }", "public String getRlName() {\n return (String) getAttributeInternal(RLNAME);\n }", "public String getRolesNombre() throws DataStoreException {\r\n return getString(ROLES_NOMBRE);\r\n }", "public BigDecimal getACC_SL() {\r\n return ACC_SL;\r\n }", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "public String getRoleName() {\n return (String) getAttributeInternal(ROLENAME);\n }", "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public String getRolelabel() {\n return rolelabel;\n }", "public int getRollVal(){\n return this.rollVal;\n }", "public int getLac() {\n return lac_;\n }", "String getRoleName();", "public String getRoll()\n\t{\n\t\treturn roll.getText();\n\t}", "public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}", "@Override\n\tpublic String toString() {\n\t\treturn wcRole.toString();\n\t}", "public String getBoundries() {\n return (String) getAttributeInternal(BOUNDRIES);\n }", "public int getLac() {\n return lac_;\n }", "public String getClRoleId() {\r\n\t\treturn clRoleId;\r\n\t}", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public String getRolesNombre(int row) throws DataStoreException {\r\n return getString(row,ROLES_NOMBRE);\r\n }", "public int getRolesRolId(int row) throws DataStoreException {\r\n return getInt(row,ROLES_ROL_ID);\r\n }", "public String getBENEF_ACC() {\r\n return BENEF_ACC;\r\n }", "String getRole();", "String getRole();", "public boolean getUsingRoller() {\n return usingRollerSystem;\n }", "public String getcLsh() {\n return cLsh;\n }", "public String getcLsh() {\n return cLsh;\n }", "public String getcLsh() {\n return cLsh;\n }", "public String getRole() {\n return this.state.getRole();\n }", "public int getRollNo() {\n\t\treturn this.roll_no;\n\t}", "public String getRoleName() {\n\treturn strRoleName;\n }", "public RLSClient.LRC getLRC() {\n return (this.isClosed()) ? null : mRLS.getLRC();\n }", "public AXValue getRole() {\n return role;\n }", "public Integer getBlId() {\n return blId;\n }", "String roleName();", "@Override\n\tpublic Set<String> getrolename() {\n\t\tSet<String> set = userDao.getrolename();\n\t\treturn set;\n\t}", "public String getLb() {\n return lb;\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public int getNombreAllumettes() {\n\t\treturn this.nbAllumettes;\n\t\t}", "public StrColumn getRcsbAnnotator() {\n return delegate.getColumn(\"rcsb_annotator\", DelegatingStrColumn::new);\n }", "public String getRollNumber(){\n return rollNumber;\n }", "public AdministrationRole obtenerRolesPorNombre(String rolName){\n AdministrationRole rol = null;\n for (Iterator<AdministrationRole> it = obtenerConexion().getAllRoles(ConstantesWS.APLICACION_PROVEEDORES).getAdministrationRole().iterator(); it.hasNext();) {\n rol = it.next(); \n if(rol.getName().getValue().equals(rolName)){\n return rol;\n }\n }\n return rol;\n }", "public String getCusBak() {\r\n return cusBak;\r\n }", "@Transient\n public String getCurrentRole() {\n \tString currentRole = \"\";\n \tif (this.roles != null) {\n \t\tIterator<Role> it = roles.iterator();\n \t\tcurrentRole = it.next().getName().substring(5);\n \t\twhile (it.hasNext()) {\n \t\t\tRole role = it.next();\n \t\t\tcurrentRole += \"/\" + role.getName().substring(5);\n \t\t}\n \t}\n \treturn currentRole;\n }", "public String getSclb() {\n return sclb;\n }", "public String getRolesDescripcion() throws DataStoreException {\r\n return getString(ROLES_DESCRIPCION);\r\n }", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "public String getRole_name() {\n return role_name;\n }", "public String getRollupValue() {\r\n return getAttributeAsString(\"rollupValue\");\r\n }", "List<String> getRoles();", "public int getLC() {\n return this.lc;\n }", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "@Override\n public String toString() {\n return rol;\n }", "public final int getRollNo() {\n\t\t// this.rollNo = 10 ;\n\t\treturn this.rollNo;\n\t}", "public String roleName() {\n return this.roleName;\n }", "public String getClasz() {\r\n \t\treturn clasz;\r\n \t}", "@Transient\n public List<LabelValue> getRoleList() {\n List<LabelValue> userRoles = new ArrayList<LabelValue>();\n\n if (this.roles != null) {\n for (Role role : roles) {\n // convert the user's roles to LabelValue Objects\n userRoles.add(new LabelValue(role.getName().substring(5), role.getName()));\n }\n }\n\n return userRoles;\n }", "public nl.webservices.www.soap.GCRLiabilities getLiabilities() {\n return liabilities;\n }", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "public Long getEmplBident() {\n return super.getEmplBident();\n }", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "public List<String> getRainCategory() {\n\t\treturn outRainDao.getRainCategory();\r\n\t}", "public java.lang.String getRoleName()\n {\n return roleName;\n }", "TblRoles findByIdRol(long idRol);", "public String getRoleName() {\r\n return roleName;\r\n }", "public String getRoleName() {\r\n return roleName;\r\n }", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "public String getRolPrincipal() {\n\t\treturn rolPrincipal;\n\t}", "public org.chartacaeli.model.CatalogADC5109 getCatalogADC5109() {\n return this.catalogADC5109;\n }", "public List<Role> getRole() {\n\t\treturn userDao.getRole();\r\n\t}", "public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }", "public Integer maxUsersInLab() {\n return this.maxUsersInLab;\n }", "public javax.accessibility.AccessibleRole getAccessibleRole() {\n try {\n javax.accessibility.AccessibleRole role = AccessibleRoleAdapter.getAccessibleRole(\n unoAccessibleContext.getAccessibleRole());\n return (role != null) ? role : javax.accessibility.AccessibleRole.LABEL;\n } catch(com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }", "public String getRolesDescripcion(int row) throws DataStoreException {\r\n return getString(row,ROLES_DESCRIPCION);\r\n }", "@Override\n public java.lang.Object getUilButtonLampColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_LAMP_COLOR_);\n return (java.lang.Object)retnValue;\n }", "public int getSSRCategory() {\n return ssrCategory;\n }", "public int getCountAllSecRoles();", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public BigDecimal getCOVERING_ACC_SL() {\r\n return COVERING_ACC_SL;\r\n }", "public double getRoll() { return _rss==null? 0 : _rss.roll; }", "public float getRoll() {\n return roll_;\n }", "public float getRoll() {\n return roll_;\n }", "public List<ACR> getAcrs() {\n return acrs;\n }", "@JsonProperty(\"rangerAuditRole\")\n public String getRangerAuditRole() {\n return rangerAuditRole;\n }", "public int getRoll1()\r\n {\r\n return roll1;\r\n }" ]
[ "0.63475496", "0.59851706", "0.5958209", "0.5494878", "0.54182976", "0.539717", "0.539717", "0.5377175", "0.53538704", "0.52058434", "0.52019525", "0.5166967", "0.50092715", "0.4961443", "0.49310544", "0.49307495", "0.48941445", "0.48796174", "0.48795477", "0.4845204", "0.48073885", "0.48014942", "0.4790226", "0.47852355", "0.47833148", "0.47728416", "0.47710273", "0.471964", "0.4714297", "0.4692466", "0.46462917", "0.46423534", "0.4620561", "0.4620561", "0.4610606", "0.46099102", "0.46099102", "0.46099102", "0.4597959", "0.45930573", "0.4583645", "0.457746", "0.45720494", "0.4559967", "0.45584852", "0.45558313", "0.45437622", "0.4541558", "0.4540745", "0.45388243", "0.45358735", "0.45352897", "0.45230636", "0.45149606", "0.45126435", "0.4511551", "0.4509959", "0.450801", "0.45070696", "0.44929782", "0.4490364", "0.44873407", "0.44766128", "0.4473728", "0.44726178", "0.44723913", "0.44706917", "0.44614953", "0.44548246", "0.44507512", "0.44475624", "0.444515", "0.44420958", "0.44377342", "0.4431124", "0.4431124", "0.4429105", "0.442709", "0.4411297", "0.4403701", "0.44026792", "0.44016245", "0.4399724", "0.4396833", "0.43894058", "0.4385212", "0.43836072", "0.4382291", "0.4382291", "0.4382291", "0.4382291", "0.4382291", "0.4382291", "0.43821853", "0.43785444", "0.43763986", "0.43763986", "0.43763953", "0.43734276", "0.43729925" ]
0.7585014
0
Sets value as the attribute value for BlncRolls.
public void setBlncRolls(Number value) { setAttributeInternal(BLNCROLLS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "public void setTotalRolls(Number value) {\n setAttributeInternal(TOTALROLLS, value);\n }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "public void setNumberOfRolls(int nOfRolls)\n {\n this.numberOfRolls = nOfRolls;\n }", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "public void setRolled(boolean rolled) {\n\t\tthis.rolled = rolled;\n\t\trepaint();\n\t}", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "public Builder setLac(int value) {\n \n lac_ = value;\n onChanged();\n return this;\n }", "private void setRoller(Roller w) {\n if (currentRoller == null) {\n currentRoller = w;\n world.addStepListener(currentRoller);\n }\n }", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "@Generated\n @Selector(\"setRollingPeriod:\")\n public native void setRollingPeriod(int value);", "public void setBlncYrds(Number value) {\n setAttributeInternal(BLNCYRDS, value);\n }", "public int getNumberOfRolls()\n {\n return this.numberOfRolls;\n }", "@BinderThread\n public void setRoll(float roll) {\n this.roll = -roll;\n }", "public void setRoll(double aValue)\n{\n if(aValue==getRoll()) return;\n repaint();\n firePropertyChange(\"Roll\", getRSS().roll, getRSS().roll = aValue, -1);\n}", "public void setRollNo ( int rollno ) {\n\t\tthis.rollno = rollno;\t\n\t}", "public void setRolesNombre(int row,String newValue) throws DataStoreException {\r\n setString(row,ROLES_NOMBRE, newValue);\r\n }", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Builder setRoll(float value) {\n bitField0_ |= 0x00000080;\n roll_ = value;\n onChanged();\n return this;\n }", "public String getRol() \n {\n \t return rol;\n }", "@Generated\n @Selector(\"setRollingStartNumber:\")\n public native void setRollingStartNumber(int value);", "public void setCurrentAlloment(int value) {\n this.currentAlloment = value;\n }", "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "public void setRollupValue(String rollupValue) throws IllegalStateException {\r\n setAttribute(\"rollupValue\", rollupValue, false);\r\n }", "public void setBranchValue(entity.PolicyPeriod value);", "public Builder setRoll(float value) {\n bitField0_ |= 0x00000020;\n roll_ = value;\n onChanged();\n return this;\n }", "public void setCrust(){\n this.crust = \"Thin\";\n }", "public void setLosses(int value) {\n this.losses = value;\n }", "public void setSBLNO(int value) {\n this.sblno = value;\n }", "public void setRolesObservaciones(int row,String newValue) throws DataStoreException {\r\n setString(row,ROLES_OBSERVACIONES, newValue);\r\n }", "public void setRolename(String rolename) {\n this.rolename = rolename;\n }", "public void setAdminRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_adminRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeAdminRole();\r\n }\r\n }", "public void setBoundries(String value) {\n setAttributeInternal(BOUNDRIES, value);\n }", "private void setBid(int value) {\n \n bid_ = value;\n }", "public int getRollVal(){\n return this.rollVal;\n }", "void setToValue(int val);", "void setRole(String roles);", "public void setLabcol(Number value) {\n setAttributeInternal(LABCOL, value);\n }", "public void setRolesNombre(String newValue) throws DataStoreException {\r\n setString(ROLES_NOMBRE, newValue);\r\n }", "@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }", "public void setLargo(Number value)\n {\n setAttributeInternal(LARGO, value);\n }", "public void setValue(int new_value){\n this.value=new_value;\n }", "public void setRc(int rc) {\n this.rc = rc;\n }", "public void setACC_SL(BigDecimal ACC_SL) {\r\n this.ACC_SL = ACC_SL;\r\n }", "public void setRolename(String rolename) {\n this.rolename = rolename == null ? null : rolename.trim();\n }", "public void setCLNO(int value) {\n this.clno = value;\n }", "public void setRolesDescripcion(int row,String newValue) throws DataStoreException {\r\n setString(row,ROLES_DESCRIPCION, newValue);\r\n }", "@JsonSetter(\"salary\")\n public void setSalary (int value) { \n this.salary = value;\n notifyObservers(this.salary);\n }", "@Override\n\tpublic void setValue(int value) {\n\t\tif (!(value >= 0 && value <= this.maxValue)) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"DawsonBallotItem Error - value must be >= 0 and <= to maxValue.\" + \" Invalid value = \" + value);\n\t\t}\n\t\tthis.value = value;\n\n\t}", "public synchronized void setRole(final Role newValue) {\n checkWritePermission();\n role = newValue;\n }", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "public void setUpper(int value) {\n this.upper = value;\n }", "public void setRollNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Roll Number : \"+rollNumber);}", "public void setDocumenterRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_documenterRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeDocumenterRole();\r\n }\r\n }", "@Override\n public void setValue(String name, int value) {\n this.StatusRepository.update(name,value);\n }", "public void setVal(int value) {\n this.val = value;\n }", "public void setViewRole(org.semanticwb.model.Role value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_viewRole, value.getSemanticObject());\r\n }else\r\n {\r\n removeViewRole();\r\n }\r\n }", "public void setInitilaCash(int noOfBills) throws java.lang.Exception;", "public abstract void setF_fk_rol_2_acma(\n\t\tco.com.telefonica.atiempo.ejb.eb.RolLocal aF_fk_rol_2_acma);", "public void setAttritionDivider(int value) {\n this.attritionDivider = value;\n }", "@IcalProperty(pindex = PropertyInfoIndex.POLL_WINNER,\n jname = \"pollWinner\",\n vpollProperty = true\n )\n @NoDump\n public void setPollWinner(final Integer val) {\n if (val == null) {\n final BwXproperty x = findXproperty(BwXproperty.pollWinner);\n if (x != null) {\n removeXproperty(x);\n }\n } else {\n replaceXproperty(BwXproperty.pollWinner, String.valueOf(val));\n }\n }", "public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setRole()\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public final void setRoles(final Collection<String> rls) {\n roles = rls;\n }", "public void setlbr_CPF (String lbr_CPF);", "public void setOverseasRoyalty(String value) {\n setAttributeInternal(OVERSEASROYALTY, value);\n }", "public void setClRoleId(String clRoleId) {\r\n\t\tthis.clRoleId = clRoleId;\r\n\t}", "public void setValue(int val)\r\n {\r\n value = val;\r\n }", "public void setRenwalGrace(Integer value) {\n setAttributeInternal(RENWALGRACE, value);\n }", "public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }", "public void setRoleName(String value) {\n setAttributeInternal(ROLENAME, value);\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setRole(java.lang.String value) {\n validate(fields()[6], value);\n this.role = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "public void setEndBay(int arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDBAY.toString(), arg, compcode);\n\t}", "public void setBlncInch(Number value) {\n setAttributeInternal(BLNCINCH, value);\n }", "public void setTallaNbr(String value) {\n setAttributeInternal(TALLANBR, value);\n }", "public void setIdBoleta(int value) {\n this.idBoleta = value;\n }", "public String getRolename() {\n return rolename;\n }", "public String getRolename() {\n return rolename;\n }", "public void setRights(String lang, String value) {\n/* 279 */ setLangAlt(\"rights\", lang, value);\n/* */ }", "public void set(int value){\n val = value;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setAAALethalityRate(int value) {\n this.aaaLethalityRate = value;\n }", "void setRoleRangeRaw( String szRaw );", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setCoolDown(long value) {\n\t\tcooldown = value;\n\t}", "private void setBId(int value) {\n \n bId_ = value;\n }", "public void\t\tset(int val) { value = val; }", "public void setCyrs(Integer cyrs) {\r\n this.cyrs = cyrs;\r\n }", "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public void setRole(java.lang.String value) {\n this.role = value;\n }", "public void setStatus(typekey.RateBookStatus value);", "public void setLUC(long LUC) {\r\n/* 394 */ this._LUC = LUC;\r\n/* 395 */ this._has_LUC = true;\r\n/* */ }", "public Builder setRole(\n com.message.MessageInfo.RoleVO.Builder builderForValue) {\n if (roleBuilder_ == null) {\n role_ = builderForValue.build();\n onChanged();\n } else {\n roleBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public void setLiabilities(nl.webservices.www.soap.GCRLiabilities liabilities) {\n this.liabilities = liabilities;\n }", "public void setInitialValue(int pipVal) {\r\n\t\tif (pipVal == 0) {\r\n\t\t\t// this is an ace\r\n\t\t\tthis.value = 11;\r\n\t\t} else if (pipVal >= 9) {\r\n\t\t\tthis.value = 10;\r\n\t\t} else {\r\n\t\t\tthis.value = pipVal + 1;\r\n\t\t}\r\n\t}", "public void setRolesObservaciones(String newValue) throws DataStoreException {\r\n setString(ROLES_OBSERVACIONES, newValue);\r\n }", "public void setlbr_NFeStatus (String lbr_NFeStatus);", "public void setAdc(ADC newValue) {\n ADC oldValue = getAdc();\n if (oldValue != newValue) {\n _adc = newValue;\n firePropertyChange(AltairConstants.ADC_PROP, oldValue, newValue);\n }\n }", "private void setBidded(){\n this.status = \"Bidded\";\n }", "public void setRole(typekey.ECFParticipantFunction_Ext value) {\n __getInternalInterface().setFieldValue(ROLE_PROP.get(), value);\n }" ]
[ "0.6262078", "0.62438786", "0.620711", "0.58290064", "0.58048135", "0.5728804", "0.55582833", "0.55476356", "0.5433647", "0.54037416", "0.5320916", "0.5272223", "0.52309084", "0.51576966", "0.5089471", "0.5075781", "0.5030474", "0.5023411", "0.49757433", "0.4967201", "0.49552795", "0.49348038", "0.49135157", "0.48903656", "0.48844665", "0.48796842", "0.48771778", "0.48724037", "0.48613563", "0.48587298", "0.48547375", "0.48374802", "0.48262003", "0.48218507", "0.478906", "0.47742358", "0.47608796", "0.47604546", "0.47357205", "0.47342822", "0.47023156", "0.46993554", "0.4691399", "0.46858782", "0.46812335", "0.46659082", "0.46422917", "0.4640636", "0.46362343", "0.46333236", "0.4627415", "0.46242183", "0.46135893", "0.46135482", "0.4611941", "0.46056226", "0.4603715", "0.4603159", "0.45990568", "0.45927224", "0.4592366", "0.45522937", "0.45471743", "0.4536204", "0.45336586", "0.4528427", "0.45213816", "0.45195723", "0.45188457", "0.4502724", "0.45016372", "0.44995692", "0.44984934", "0.4492603", "0.44886705", "0.44868645", "0.4484559", "0.4484559", "0.44843346", "0.4479898", "0.44690207", "0.4463377", "0.44627687", "0.4462494", "0.445965", "0.44582373", "0.44566756", "0.44566602", "0.4453138", "0.44510803", "0.4449839", "0.44497964", "0.44488606", "0.4448673", "0.44482997", "0.44412494", "0.44409716", "0.44362378", "0.44358498", "0.44319296" ]
0.792861
0
Gets the attribute value for BlncYrds, using the alias name BlncYrds.
public Number getBlncYrds() { return (Number)getAttributeInternal(BLNCYRDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getYbs() {\n return ybs;\n }", "public void setBlncYrds(Number value) {\n setAttributeInternal(BLNCYRDS, value);\n }", "public String getYbid() {\n return ybid;\n }", "public String getYzbm() {\r\n return yzbm;\r\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public String getYpjybgbm() {\n return ypjybgbm;\n }", "public Long getYc() {\n return yc;\n }", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "public double[] getYTBT() {\n\t\treturn yTBT;\n\t}", "public java.lang.String getYylsh() {\r\n return localYylsh;\r\n }", "public com.google.protobuf.ByteString\n getResidentYnBytes() {\n java.lang.Object ref = residentYn_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residentYn_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getY() {\n\t\treturn bassY;\n\t}", "public void setYzbm(String yzbm) {\r\n this.yzbm = yzbm;\r\n }", "public void setYbs(String ybs) {\n this.ybs = ybs == null ? null : ybs.trim();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getYBytes() {\n java.lang.Object ref = y_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n y_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getYBytes() {\n java.lang.Object ref = y_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n y_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getResidentYnBytes() {\n java.lang.Object ref = residentYn_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residentYn_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getResidentYn() {\n java.lang.Object ref = residentYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residentYn_ = s;\n }\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getYBytes() {\n java.lang.Object ref = y_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n y_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getYBytes() {\n java.lang.Object ref = y_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n y_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBoundries() {\n return (String) getAttributeInternal(BOUNDRIES);\n }", "public String getcBz() {\n return cBz;\n }", "public String getcBz() {\n return cBz;\n }", "public String getcBz() {\n return cBz;\n }", "public Integer getCocYy() {\n\t\treturn cocYy;\n\t}", "public java.lang.String getResidentYn() {\n java.lang.Object ref = residentYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residentYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getY() {\n java.lang.Object ref = y_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n y_ = s;\n return s;\n }\n }", "public String getBzcz() {\n return bzcz;\n }", "public BigDecimal getsBlkr() {\n return sBlkr;\n }", "public Number getLabcol() {\n return (Number) getAttributeInternal(LABCOL);\n }", "public java.lang.String getBrxm() {\r\n return brxm;\r\n }", "public String getBzdw() {\n return bzdw;\n }", "public java.lang.String getY() {\n java.lang.Object ref = y_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n y_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getYwdwmc() {\n return ywdwmc;\n }", "@java.lang.Override\n public java.lang.String getY() {\n java.lang.Object ref = y_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n y_ = s;\n return s;\n }\n }", "public String getBusinessUnitGl() {\n return (String) getAttributeInternal(BUSINESSUNITGL);\n }", "public java.lang.String getDylb() {\r\n return localDylb;\r\n }", "public java.lang.String getY() {\n java.lang.Object ref = y_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n y_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ChartYAxis getYAxis() { return _yaxis; }", "public String getCY() {\n\t\treturn cy;\r\n\t}", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }", "public String getYOB()\r\n\t{\r\n\t\treturn yob.getModelObjectAsString();\r\n\t}", "public double getBrrm() {\n return brrm;\n }", "public String getyLabel() {\n return yLabel;\n }", "public String getBz() {\n return bz;\n }", "public String getBz() {\n return bz;\n }", "public String getBz() {\n return bz;\n }", "public double Y_r() {\r\n \t\treturn getY();\r\n \t}", "com.google.protobuf.ByteString\n getResidentYnBytes();", "public DictionarySimpleAttribute reverseLookupAttribute(DataItem cborName) {\n\t\tDictionarySimpleAttribute tmpDsa = new DictionarySimpleAttribute(cborName);\n\t\tString key = this.attributes.getKey(tmpDsa);\n\n\t\tDictionarySimpleAttribute rv = this.attributes.get(key);\n\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.trace(\"Attribute reverse lookup performed:\");\n\t\t\tlog.trace(\"[S] CBOR name: \" + cborName);\n\t\t\tlog.trace(\"[R] Dictionary entry: \" + rv);\n\t\t}\n\n\t\treturn rv;\n\t}", "public String getSETTLED_YN() {\r\n return SETTLED_YN;\r\n }", "public Number getDiscYearly() {\n return (Number)getAttributeInternal(DISCYEARLY);\n }", "public String getYxbh() {\n return yxbh;\n }", "public String getYAsString()\n {\n return String.valueOf(rettangoloY);\n }", "public int getYCord() {\n\t\treturn yCord;\n\t}", "public String getYxzt() {\n return yxzt;\n }", "public void setYbid(String ybid) {\n this.ybid = ybid == null ? null : ybid.trim();\n }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public Integer getCalendarYy() {\r\n return calendarYy;\r\n }", "public String getYKey(){\n return getAxisKey(Axis.Y);\n }", "public String getLBR_LatePaymentPenaltyCode();", "public String getSbbm() {\n return sbbm;\n }", "public Number getBlncInch() {\n return (Number)getAttributeInternal(BLNCINCH);\n }", "public List<String> getBcs() {\r\n\t\treturn bcs;\r\n\t}", "public void setYpjybgbm(String ypjybgbm) {\n this.ypjybgbm = ypjybgbm;\n }", "public String getSbzr() {\n return sbzr;\n }", "public String getYpjybg() {\n return ypjybg;\n }", "java.lang.String getResidentYn();", "public StrColumn getRcsbAnnotator() {\n return delegate.getColumn(\"rcsb_annotator\", DelegatingStrColumn::new);\n }", "public String gety()\n\t{\n\t\treturn y.getText();\n\t}", "public String getBayType() {\n return (String) getAttributeInternal(BAYTYPE);\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public String getBscid() {\r\n return bscid;\r\n }", "public java.lang.String getGetYYT_YDBGResult() {\r\n return localGetYYT_YDBGResult;\r\n }", "public String getBscid() {\n return bscid;\n }", "public String getBscid() {\n return bscid;\n }", "public String getSrcDontContactYn() {\r\n return (String) getAttributeInternal(SRCDONTCONTACTYN);\r\n }", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "com.google.protobuf.ByteString\n getYBytes();", "public Range getYRange() {\r\n\t\treturn yRange;\r\n\t}", "public RowSet getLookupSharedAppModule_XpeDccDicYORNLOV() {\n return (RowSet) getAttributeInternal(LOOKUPSHAREDAPPMODULE_XPEDCCDICYORNLOV);\n }", "public String getSclb() {\n return sclb;\n }", "private double getCurbHeight(ReaderWay way) {\n\t\tdouble res = 0d;\n\t\tString str = null;\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#overview: 90% nodes, 10% ways\n\t\t// http://taginfo.openstreetmap.org/keys/sloped_curb#values\n\t\tif (way.hasTag(\"sloped_curb\")) {\n\t\t\tstr = way.getTag(\"sloped_curb\").toLowerCase();\n\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\tstr = str.replace(\"both\", \"0.03\");\n\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\tstr = str.replace(\"one\", \"0.15\");\n\t\t\tstr = str.replace(\"at_grade\", \"0.0\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"low\", \"0.03\");\n\t\t}\n\t\telse if (way.hasTag(\"kerb\")) {\n\t\t\tif (way.hasTag(\"kerb:height\")) {\n\t\t\t\tstr = way.getTag(\"kerb:height\").toLowerCase();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstr = way.getTag(\"kerb\").toLowerCase();\n\t\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\t\tstr = str.replace(\"raised\", \"0.15\");\n\t\t\t\tstr = str.replace(\"yes\", \"0.03\");\n\t\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\t\tstr = str.replace(\"unknown\", \"0.03\");\n\t\t\t\tstr = str.replace(\"no\", \"0.15\");\n\t\t\t\tstr = str.replace(\"dropped\", \"0.03\");\n\t\t\t\tstr = str.replace(\"rolled\", \"0.03\");\n\t\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\t}\n\t\t}\n \n\t\t// http://taginfo.openstreetmap.org/keys/curb#overview: 70% nodes, 30% ways\n\t\t// http://taginfo.openstreetmap.org/keys/curb#values\n\t\telse if (way.hasTag(\"curb\")) {\n\t\t\tstr = way.getTag(\"curb\").toLowerCase();\n\t\t\tstr = str.replace(\"lowered\", \"0.03\");\n\t\t\tstr = str.replace(\"regular\", \"0.15\");\n\t\t\tstr = str.replace(\"flush;lowered\", \"0.0\");\n\t\t\tstr = str.replace(\"sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"lowered_and_sloped\", \"0.03\");\n\t\t\tstr = str.replace(\"flush\", \"0.0\");\n\t\t\tstr = str.replace(\"none\", \"0.15\");\n\t\t\tstr = str.replace(\"flush_and_lowered\", \"0.0\");\n\t\t}\n\n\t\tif (str != null) {\n\t\t\tboolean isCm = false;\n\t\t\ttry {\n\t\t\t\tif (str.contains(\"c\")) {\n\t\t\t\t\tisCm = true;\n\t\t\t\t}\n\t\t\t\tres = Double.parseDouble(str.replace(\"%\", \"\").replace(\",\", \".\").replace(\"m\", \"\").replace(\"c\", \"\"));\n\t\t\t\tif (isCm) {\n\t\t\t\t\tres /= 100d;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\t//\tlogger.warning(\"Error parsing value for Tag kerb from this String: \" + stringValue + \". Exception:\" + ex.getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// check if the value makes sense (i.e. maximum 0.3m/30cm)\n\t\tif (-0.15 < res && res < 0.15) {\n\t\t\tres = Math.abs(res);\n\t\t}\n\t\telse {\n\t\t\t// doubleValue = Double.NaN;\n\t\t\tres = 0.15;\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "public int getyCoord() {\n\t\treturn yCoord;\n\t}", "public String getLrry() {\n return lrry;\n }", "public BigDecimal getLBR_ICMSST_TaxBAmtWhd();", "@java.lang.Override\n public godot.wire.Wire.Vector2 getY() {\n return y_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : y_;\n }", "public void setBzdw(String bzdw) {\n this.bzdw = bzdw;\n }", "public int getBx2() {\r\n return Bx2;\r\n }", "public String getBand() {\n return _avTable.get(ATTR_BAND);\n }", "public List<String> getBcc() {\n return bcc;\n }", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "public java.lang.String getBlh() {\r\n return localBlh;\r\n }", "@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}", "public List<Double> getB2Band() {\n return b2Band;\n }", "public final String getBname() {\n return bname;\n }", "public int getYD2 ()\n\t{\n\t\treturn yDimension2;\n\t}", "public io.dstore.values.IntegerValue getYAxisCharacteristicId() {\n return yAxisCharacteristicId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : yAxisCharacteristicId_;\n }", "public String getYwdw() {\n return ywdw;\n }" ]
[ "0.6290351", "0.62341946", "0.5933445", "0.59155756", "0.57566416", "0.5621435", "0.5561754", "0.5516544", "0.53643507", "0.53489083", "0.5276993", "0.5248415", "0.52420557", "0.52291715", "0.52202517", "0.52066624", "0.520022", "0.5181642", "0.5171345", "0.51569116", "0.5136962", "0.5109909", "0.5109909", "0.5109909", "0.50629807", "0.504302", "0.50368375", "0.502971", "0.5022235", "0.5019687", "0.4966012", "0.49612528", "0.49430197", "0.49268785", "0.49251124", "0.49209616", "0.491863", "0.49181744", "0.4918148", "0.48808673", "0.48720816", "0.48595598", "0.48545435", "0.4816021", "0.48093945", "0.48060244", "0.48060244", "0.48060244", "0.48000178", "0.47957814", "0.47954816", "0.47810575", "0.47711927", "0.47673354", "0.47646284", "0.47506315", "0.474526", "0.47438455", "0.47365358", "0.47294825", "0.4727192", "0.47207457", "0.4715034", "0.47025162", "0.47000393", "0.46964887", "0.46953845", "0.46953845", "0.46891636", "0.46570513", "0.46522918", "0.4639443", "0.4636311", "0.4636311", "0.45961884", "0.45938644", "0.45938644", "0.45868313", "0.4582632", "0.45765013", "0.45750162", "0.457304", "0.45698866", "0.45686537", "0.45683482", "0.45660314", "0.45608473", "0.45524713", "0.45521283", "0.4544208", "0.45436513", "0.45422947", "0.45343125", "0.45304236", "0.45275497", "0.45243946", "0.4523028", "0.45162928", "0.4514381", "0.45125017" ]
0.7974296
0
Sets value as the attribute value for BlncYrds.
public void setBlncYrds(Number value) { setAttributeInternal(BLNCYRDS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getBlncYrds() {\n return (Number)getAttributeInternal(BLNCYRDS);\n }", "public void setYbs(String ybs) {\n this.ybs = ybs == null ? null : ybs.trim();\n }", "public void setY(byte[] value) {\n this.y = ((byte[]) value);\n }", "public Builder setYBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setYBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n y_ = value;\n onChanged();\n return this;\n }", "public void setYzbm(String yzbm) {\r\n this.yzbm = yzbm;\r\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00001000;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000010;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000010;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setResidentYnBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n residentYn_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000008;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n y_ = value;\n onChanged();\n return this;\n }", "public void setYbid(String ybid) {\n this.ybid = ybid == null ? null : ybid.trim();\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(double value) {\n bitField0_ |= 0x00000020;\n y_ = value;\n onChanged();\n return this;\n }", "private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }", "public void setYRangeIncr(String yRangeIncr) {\n setYRangeIncr(Double.parseDouble(yRangeIncr));\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000004;\n y_ = value;\n onChanged();\n return this;\n }", "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public Builder setY(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000008;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(int value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public void setsBlkr(BigDecimal sBlkr) {\n this.sBlkr = sBlkr;\n }", "public String getYbs() {\n return ybs;\n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public void setYearlyBonus(int yearlyBonus){\n this.yearlyBonus = yearlyBonus;\n }", "public void setY(double value) {\n this.y = value;\n }", "public void setYpjybgbm(String ypjybgbm) {\n this.ypjybgbm = ypjybgbm;\n }", "public double[] getYTBT() {\n\t\treturn yTBT;\n\t}", "public void setY(Double y);", "public void setCocYy(Integer cocYy) {\n\t\tthis.cocYy = cocYy;\n\t}", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setSETTLED_YN(String SETTLED_YN) {\r\n this.SETTLED_YN = SETTLED_YN == null ? null : SETTLED_YN.trim();\r\n }", "public void setYRangeIncr(double yRangeIncr) {\n this.yRangeIncr = yRangeIncr;\n }", "public void setyLabel(String yLabel) {\n\t\tthis.yLabel = yLabel;\n\t\tthis.dirtyAttributes.add(Constants.Y_LABEL);\n\t}", "public void setYxbh(String yxbh) {\n this.yxbh = yxbh == null ? null : yxbh.trim();\n }", "public void setB(double value) {\n this.b = value;\n }", "public void setLBR_LatePaymentPenaltyDays (int LBR_LatePaymentPenaltyDays);", "public void NewY(double y){\n\t\tthis.y = y;\n\t}", "public void setY(double y)\n {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\r\n }", "public Builder setResidentYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n residentYn_ = value;\n onChanged();\n return this;\n }", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "public void setDiscYearly(Number value) {\n setAttributeInternal(DISCYEARLY, value);\n }", "public void setB_(double b_) {\n\t\tthis.b_ = b_;\n\t}", "public FractalTrace setY2(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 50.00 || value < -50.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, -50.00, 50.00);\n\t }\n\n m_Y2 = value;\n setProperty(\"Y2\", value);\n return this;\n }", "public void setY(int ys)\r\n\t{\r\n\t\ty = ys;\r\n\t}", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setYValue( double value ){\r\n\t\tsuper.setYValue( new Double( value ) );\r\n\t}", "public void setY(double newY) {\r\n y = newY;\r\n }", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "public void y(double y) {\n _y = y;\n }", "public void setYmultiplier(double sety)\n {\n ymultiplier = sety;\n }", "public Builder setY(float value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public String getYbid() {\n return ybid;\n }", "public BarChartBuilder yLabel(String yLabel) {\n\tthis.yLabel = yLabel;\n\treturn this;\n }", "public void setStandardY(double y)\n {\n standardy=y; \n }", "public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}", "public void setLBR_LatePaymentPenaltyCode (String LBR_LatePaymentPenaltyCode);", "public void setY(double y) {\n\t\tthis.y = y;\n\t}", "public void setLBR_TaxRate (BigDecimal LBR_TaxRate);", "public void setY(double val) {\r\n\t\t this.yCoord = val;\r\n\t }", "public String getYzbm() {\r\n return yzbm;\r\n }", "public Builder setY(godot.wire.Wire.Vector2 value) {\n if (yBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n y_ = value;\n onChanged();\n } else {\n yBuilder_.setMessage(value);\n }\n\n return this;\n }", "final void setY(double d) {\n y = d;\n }", "public void setB(double b){\n this.b=b;\n }", "public void setYxzt(String yxzt) {\n this.yxzt = yxzt == null ? null : yxzt.trim();\n }", "public Builder setAccY(float value) {\n bitField0_ |= 0x00000008;\n accY_ = value;\n onChanged();\n return this;\n }", "public void setY(Double y) {\n\t\tthis.y = y;\n\t}", "private void set_y(int RHS)\n {\n try\n {\n set_reg(28,Utils.get_lobyte(RHS));\n set_reg(29,Utils.get_hibyte(RHS));\n }\n catch(RuntimeException e) { }\n }", "public void setY(int value) {\n this.y = value;\n }", "protected void setAy(double ay) {\n\t\tif (isValidAy(ay))\n\t\t\tthis.ay = ay;\t\t\n\t\telse \n\t\t\tthis.ay = 0;\t\t\n\t}", "public void setYwdw(String ywdw) {\n this.ywdw = ywdw == null ? null : ywdw.trim();\n }", "public DynamicModelPart setY(float[] y) {\n this.y = y;\n return this;\n }", "public void setYx(String yx) {\n this.yx = yx == null ? null : yx.trim();\n }", "public String getSETTLED_YN() {\r\n return SETTLED_YN;\r\n }", "public Builder setY(godot.wire.Wire.Vector3 value) {\n if (yBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n y_ = value;\n onChanged();\n } else {\n yBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setBoundries(String value) {\n setAttributeInternal(BOUNDRIES, value);\n }", "public void setNY(int ny){\n newY=ny;\n }", "void setY(int y) {\n this.y = y;\n }", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setNbrYgGcs(long argNbrYgGcs) {\n nbrYgGcs = argNbrYgGcs;\n }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "public Builder setY(long value) {\n copyOnWrite();\n instance.setY(value);\n return this;\n }", "public void setY( double Y)\r\n {\r\n curY = Y;\r\n }", "void setY(float y) {\n _y = y;\n }", "public void settBlkr(BigDecimal tBlkr) {\n this.tBlkr = tBlkr;\n }", "public Builder setEndDateYYYYBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n endDateYYYY_ = value;\n onChanged();\n return this;\n }", "public void setBzdw(String bzdw) {\n this.bzdw = bzdw;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }" ]
[ "0.7216108", "0.63204974", "0.6068627", "0.6025373", "0.60093915", "0.58793545", "0.58422005", "0.58238435", "0.5823653", "0.58173966", "0.5811723", "0.58061755", "0.5692998", "0.56616366", "0.5642574", "0.5642574", "0.5641998", "0.56400496", "0.56330824", "0.56287485", "0.56287485", "0.56287485", "0.5625061", "0.56239676", "0.56083554", "0.55700654", "0.55315197", "0.55035573", "0.5479368", "0.5457404", "0.5454273", "0.53807116", "0.5378076", "0.5377106", "0.53767085", "0.5375604", "0.5375604", "0.5369571", "0.536236", "0.53619707", "0.5356582", "0.5349284", "0.5335983", "0.5333214", "0.5313502", "0.5311518", "0.53006417", "0.5300284", "0.5299552", "0.5293983", "0.52852136", "0.5281383", "0.5268284", "0.5268284", "0.5268284", "0.52582306", "0.5247346", "0.5238585", "0.52353466", "0.5228546", "0.5227474", "0.5227474", "0.5216335", "0.5213762", "0.5206473", "0.51974744", "0.5169358", "0.516496", "0.5163373", "0.51631683", "0.5153954", "0.5153227", "0.5147428", "0.5139767", "0.5135309", "0.5132744", "0.5127984", "0.5121096", "0.5120707", "0.5114566", "0.5114367", "0.5107446", "0.510073", "0.51000917", "0.5095905", "0.5089156", "0.50739884", "0.50661767", "0.5063137", "0.5061439", "0.50604707", "0.50441307", "0.50370485", "0.5026795", "0.502202", "0.5019972", "0.50168186", "0.49853608", "0.49845347", "0.49845347" ]
0.82482564
0
Gets the attribute value for DjCutWidth, using the alias name DjCutWidth.
public String getDjCutWidth() { return (String)getAttributeInternal(DJCUTWIDTH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDjCutWidth(String value) {\n setAttributeInternal(DJCUTWIDTH, value);\n }", "public java.lang.String getWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public org.apache.xmlbeans.XmlString xgetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n return target;\n }\n }", "public String getWidthAttribute() {\n if (wrapWidth) {\n return VALUE_WRAP_CONTENT;\n } else if (fillWidth) {\n //return mRule.getFillParentValueName();\n return VALUE_MATCH_PARENT;\n } else {\n return AndroidDesignerUtils.pxToDpWithUnits(myArea, bounds.width);\n }\n }", "public Number getWidth() {\n\t\treturn getAttribute(WIDTH_TAG);\n\t}", "public Number getWidth() {\n GroupingExpression w = getArg(1);\n return (w instanceof LongValue) ? ((LongValue)w).getValue() : ((DoubleValue)w).getValue();\n }", "public String getwidth()\n\t{\n\t\treturn width.getText();\n\t}", "public String getCuttOff() {\n return (String)getAttributeInternal(CUTTOFF);\n }", "public String getWidth() {\r\n if (width != null) {\r\n return width;\r\n }\r\n ValueBinding vb = getValueBinding(\"width\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_WIDTH;\r\n }", "public MeasurementCSSImpl getWidth()\n\t{\n\t\treturn width;\n\t}", "@Nullable\n public DpProp getWidth() {\n if (mImpl.hasWidth()) {\n return DpProp.fromProto(mImpl.getWidth());\n } else {\n return null;\n }\n }", "public SpecialDimension getSpecialWidth()\n\t{\n\t\treturn specialWidth;\n\t}", "public double getWidth ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn invokeSafe ( \"getWidth\" );\n\t}", "public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}", "public final DoubleProperty strokeWidthProperty() {\n return getStrokeAttributes().widthProperty();\n }", "public String getWidth() {\n return width;\n }", "@JSProperty(\"tickWidth\")\n double getTickWidth();", "public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "public Integer getWidth() {\n\t\tif (null != this.width) {\n\t\t\treturn this.width;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"width\");\n\t\tif (_ve != null) {\n\t\t\treturn (Integer) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Integer getWidth() {\n return this.width;\n }", "String getWidth();", "String getWidth();", "public double getWidth() {\n return getElement().getWidth();\n }", "public final native double getWidth() /*-{\n return this.getWidth();\n }-*/;", "public double width() { return _width; }", "@Field(2) \n\tpublic int width() {\n\t\treturn this.io.getIntField(this, 2);\n\t}", "public Integer getFacetValueHoverWidth() {\r\n return getAttributeAsInt(\"facetValueHoverWidth\");\r\n }", "public double getWidth() {\r\n return width;\r\n }", "public double getWidth()\r\n {\r\n return width;\r\n }", "public Integer getWidth() {\n\t\t\treturn width;\n\t\t}", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n return width;\n }", "public double getWidth() {\n\treturn width;\n }", "@SuppressWarnings(\"unchecked\")\n\t@NotNull\n\tpublic J setWidth(MeasurementCSSImpl width)\n\t{\n\t\tthis.width = width;\n\t\treturn (J) this;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth() {\n\t\treturn width;\n\t}", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "private double getWidth() {\n\t\treturn width;\n\t}", "public double getWidth()\n {\n return width;\n }", "public double getWidth() {\r\n\t\treturn width;\r\n\t}", "public Integer getWidth(){return this.width;}", "public double getWidth () {\n return width;\n }", "public double getPrefWidth(double aValue)\n{\n Double v = (Double)get(\"PrefWidth\"); if(v!=null) return v;\n return computePrefWidth(-1);\n}", "double getWidth() {\n return width;\n }", "public double[] getWidth() { return this.width; }", "public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }", "final public double getWidth()\n\t{\n\t\treturn width;\n\t}", "public final int getWidth(){\n return width_;\n }", "public static double parseWidth(String widthAttribute) {\r\n \t\tdouble widthDouble = -1;\r\n \t\tif (ComponentUtil.isNotBlank(widthAttribute)) {\r\n \t\t\ttry {\r\n \t\t\t\tint widthInt = Integer.parseInt(widthAttribute);\r\n \t\t\t\t/*\r\n \t\t\t\t * Parse 'px' to 'em'.\r\n \t\t\t\t */\r\n \t\t\t\twidthDouble = widthInt / 13.33333;\r\n \t\t\t\t/*\r\n \t\t\t\t * Set Double fraction precision to 5 numbers.\r\n \t\t\t\t */\r\n \t\t\t\tBigDecimal b = new BigDecimal(widthDouble).setScale(5,\r\n \t\t\t\t\t\tBigDecimal.ROUND_HALF_UP);\r\n \t\t\t\twidthDouble = b.doubleValue();\r\n \t\t\t} catch (NumberFormatException e) {\r\n \t\t\t\t/*\r\n \t\t\t\t * Do nothing, default width will be applied.\r\n \t\t\t\t */\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn widthDouble;\r\n \t}", "public int getWidth(){ return widthRadius; }", "public SVGLength getWidth() {\n return width;\n }", "double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "public int getWidth(){\n\t\treturn width;\n\t}", "public ISizeReference getWidth()\n {\n return _width;\n }", "public double getWidth();", "public double getWidth();", "public int getWidth(){\n return this.width;\n }", "Length getWidth();", "public int getWidth() {\n return this._width;\n }", "public int getWidth(){\n return width;\n }", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getWidth() {\n\t\treturn this.width;\n\t}", "public int getEffectWidth() {\n return this.effectWidth;\n }", "public float getWidth(String name) throws IOException;", "@DISPID(100) //= 0x64. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n float width();", "public float getWidth() {\n return this.width;\n }", "public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}", "public int getWidth() {\n return this.width;\n }", "public int getWidth() {\n return this.width;\n }", "double getWidth()\n {\n return width;\n }", "@JSProperty(\"tickWidth\")\n void setTickWidth(double value);", "public double getWidth()\r\n {\r\n return this.widthCapacity;\r\n }", "public int getWidth(){\n \treturn width;\n }", "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "public int getWidth() {\n return width_;\n }", "double getWidth();", "double getWidth();", "public int getWidth()\n\t{\n\t\treturn this._width;\n\t}", "public float getWidth() {\n\t\treturn width;\n\t}", "public Double rockWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\r\n return width;\r\n }", "public RecodedReal getSymbolWidth(){\n return width;\n }", "public float getWidth() {\n return width;\n }", "public int width() {\r\n\t\treturn this.width;\r\n\t}", "public int getWidth() {\r\n return width;\r\n }", "public int getWidth() {\n return width;\n }", "public int getWidth() {\n return width;\n }", "@java.lang.Override\n public long getWidth() {\n return width_;\n }", "double getOldWidth();", "public int getWidth(){\n return width;\n }", "public int grWidth() { return width; }", "public byte getWidth();", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}", "public int getWidth() {\n\t\treturn width;\n\t}" ]
[ "0.6988107", "0.6528772", "0.6232036", "0.6212789", "0.61268586", "0.59620506", "0.5961903", "0.5864087", "0.5845276", "0.5835135", "0.58349174", "0.5818694", "0.5748215", "0.5744235", "0.5733031", "0.57066894", "0.56406707", "0.5628458", "0.561358", "0.5606525", "0.554902", "0.54776824", "0.54776824", "0.5465561", "0.546171", "0.5441454", "0.54312766", "0.54263854", "0.5425414", "0.53954035", "0.5392809", "0.53876334", "0.53876334", "0.53876334", "0.53854614", "0.5381465", "0.5368814", "0.5368814", "0.5368814", "0.53652704", "0.535341", "0.5352408", "0.53414243", "0.53287244", "0.5327723", "0.5326943", "0.5320893", "0.5303703", "0.530062", "0.5297196", "0.52968365", "0.52958965", "0.52943957", "0.52786523", "0.52710986", "0.5261748", "0.5258035", "0.525053", "0.525053", "0.52429104", "0.5240449", "0.52272403", "0.5223617", "0.5209224", "0.5209224", "0.5207007", "0.5196369", "0.51953423", "0.5191077", "0.5187086", "0.51818675", "0.51818675", "0.51797324", "0.5175448", "0.5167234", "0.516386", "0.5161841", "0.51603705", "0.5157229", "0.5157229", "0.51536745", "0.51468563", "0.5146618", "0.51401556", "0.5139365", "0.5137283", "0.51370156", "0.5133568", "0.51277024", "0.51277024", "0.51267475", "0.51266044", "0.5125412", "0.5124276", "0.51209843", "0.5117233", "0.5117233", "0.5117233", "0.5117233", "0.5117233" ]
0.81363416
0
Sets value as the attribute value for DjCutWidth.
public void setDjCutWidth(String value) { setAttributeInternal(DJCUTWIDTH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWidth(double value) {\n this.width = value;\n }", "public void setWidth(final String value)\n {\n width = value;\n }", "public String getDjCutWidth() {\n return (String)getAttributeInternal(DJCUTWIDTH);\n }", "public void setWitdh(int newValue)\n {\n width = newValue;\n }", "public void setWidth(java.lang.String width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WIDTH$20);\n }\n target.setStringValue(width);\n }\n }", "public void setWidth(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.width.getAttributeName(), value);\r\n\t}", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setWidth(int w){ widthRadius = w; }", "public void setWidth(double width) {\n this.width = width;\n }", "public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;", "public void setWidth(int w){\n \twidth = w;\n }", "public void xsetWidth(org.apache.xmlbeans.XmlString width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(WIDTH$20);\n }\n target.set(width);\n }\n }", "@JSProperty(\"tickWidth\")\n void setTickWidth(double value);", "@SuppressWarnings(\"unchecked\")\n\t@NotNull\n\tpublic J setWidth(MeasurementCSSImpl width)\n\t{\n\t\tthis.width = width;\n\t\treturn (J) this;\n\t}", "public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }", "public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }", "public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }", "public void setWidth(int w) {\n this.width = w;\n }", "public void setWidth(double w)\n { this.widthDefault = w; }", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(double width) {\n\t\tthis.width = width;\n\t}", "void setWidth(int width);", "void setWidth(int width);", "public void setImageWidth(int val)\n {\n \n setImageWidth_0(nativeObj, val);\n \n return;\n }", "public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}", "public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}", "public Builder setWidth(long value) {\n copyOnWrite();\n instance.setWidth(value);\n return this;\n }", "public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "public void setBandWidth(String value, int subsystem) {\n setBandWidth(Format.toDouble(value), subsystem);\n }", "public void setWidth(int width)\n {\n this.width = width;\n }", "public void setWidth(int w) {\n this.W = w;\n }", "public void setWidth(float width) {\n this.xRadius = width/2f;\n }", "public void setWidth(int width) {\n this.width = width;\n }", "public void setWidth(int w) {\n\t\twidth = w;\n\t}", "public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "@JsProperty\n public void setWidth(int width);", "public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }", "public void setWidth( int width ) {\n\t\t_width = width;\n\t}", "@Override\r\n public void setWidth(String width) {\n }", "public void setWidth(int width) {\n\t\tw = width;\n\t}", "@Override\n\tpublic void setWidth(float width) {\n\n\t}", "public void setWidth(Integer width)\n {\n getStateHelper().put(PropertyKeys.width, width);\n }", "public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }", "public void setWidth(int width) {\n\t\tthis.width = width;\n\t}", "public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}", "@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}", "public void setNodeStrokeDestinationWidth(double value) {\n _nodeStrokeDestinationWidth = value;\n }", "public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}", "@NonNull\n public Builder setWidth(@NonNull DpProp width) {\n if (width.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setWidth doesn't support dynamic values.\");\n }\n mImpl.setWidth(width.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(width.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "public void setNodeBorderWidth(Float value) {\n nodeBorderWidth = value;\n }", "private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}", "void setFitWidth(short width);", "public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }", "public void setBandWidth(double value, int subsystem) {\n _avTable.set(ATTR_BANDWIDTH, value, subsystem);\n }", "public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}", "public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}", "public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }", "public void setFeBandWidth(String value) {\n setFeBandWidth(Format.toDouble(value));\n }", "public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}", "public abstract Builder setOutputWidth(int value);", "public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }", "public boolean setWidth(double width){\n if (width <= 0.0) return false;\n this.width = width;\n return true;\n }", "public void setWidth(int width) {\n\t\tif (width <= 0)\n\t\t\tthrow new IllegalArgumentException(\"width must be > 0\");\n\n\t\tthis.width = width;\n\t}", "public void setTrackWidth(int width){\n this.mTrackWidth = Utils.dp2px(mContext, width);\n progressPaint.setStrokeWidth(width);\n updateTheTrack();\n refreshTheView();\n }", "private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }", "public void setEdgeStrokeDestinationWidth(double value) {\n _edgeStrokeDestinationWidth = value;\n }", "public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}", "public void setCuttOff(String value) {\n setAttributeInternal(CUTTOFF, value);\n }", "@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }", "public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }", "public void setWidth(int width) {\n if(width < 0) throw new NegativeSizeException(\"Negative width\");\n \tthis.width = width;\n }", "public void setW(int i) {\n\t\tthis.width=i;\n\t\t\n\t}", "public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}", "public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }", "public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;", "public void setEffectWidth(int effectWidth) {\n int oldEffectWidth = this.effectWidth;\n this.effectWidth = effectWidth;\n propertyChangeSupport.firePropertyChange(\"effectWidth\", oldEffectWidth, effectWidth);\n }", "@Nonnull\n public NumberSliderElement width( int width )\n {\n setWidth( width );\n return this;\n }", "public void setLength( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public MediaDeviceDescription setWidth(float width) {\n this.width = width;\n return this;\n }", "public void setMinWidth(final Integer value) {\n minWidth = value.intValue();\n }", "public void setImageWidth(int width)\n\t{\n\t\tspecialWidth = SpecialDimension.NONE;\n\t\timgWidth = width;\n\t}", "@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}", "private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}", "public void setTrackWidth(int width) {\n invalidateRect.set(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n trackWidth = width;\n updateThumbPath();\n invalidateRect.fuse(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n recyclerView.invalidate();\n }", "public void setNodeStrokeSourceWidth(double value) {\n _nodeStrokeSourceWidth = value;\n }", "public void setEdgeStrokeSourceWidth(double value) {\n _edgeStrokeSourceWidth = value;\n }", "@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }", "public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}", "public void unsetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(WIDTH$20);\n }\n }", "@JSProperty(\"minorTickWidth\")\n void setMinorTickWidth(double value);", "public void setBaseWidth(double baseWidth) {\n this.baseWidth = baseWidth;\n }", "public void setRunwayWidth(float runwayWidth) {\n\t\tif(this.runwayWidth != 0f){\n\t\t\treturn;\n\t\t}\n\t\tthis.runwayWidth = runwayWidth;\n\t}", "public SpriteSheetSplitter setWidth(int width) {\n if (width <= 0) {\n throw new IllegalStateException(\"invalid width\");\n }\n this.width = width;\n return this;\n }", "private void setWindowWidth(int width) {\n this.width = width;\n }" ]
[ "0.74781275", "0.7055923", "0.68364555", "0.6766649", "0.67008144", "0.66987133", "0.66465217", "0.662916", "0.6575627", "0.6573193", "0.65667117", "0.6556581", "0.65354085", "0.65329564", "0.65214807", "0.6512773", "0.6493909", "0.64918417", "0.64837945", "0.6470817", "0.6468196", "0.6462789", "0.6462024", "0.6462024", "0.6444006", "0.6444006", "0.6439047", "0.6434333", "0.64172494", "0.63957775", "0.63921666", "0.6341535", "0.6338189", "0.63107866", "0.6307275", "0.6295067", "0.6289252", "0.6288627", "0.6286239", "0.6226498", "0.6211962", "0.61981404", "0.6149529", "0.614807", "0.61195475", "0.6116817", "0.6114488", "0.6111596", "0.6108849", "0.60848707", "0.60683537", "0.6029998", "0.60214627", "0.60197395", "0.5973377", "0.59665203", "0.5933667", "0.5931453", "0.59071857", "0.5899907", "0.588993", "0.5878066", "0.58687127", "0.5868362", "0.5825333", "0.5811355", "0.581132", "0.5797216", "0.5786036", "0.57839334", "0.57822776", "0.5769702", "0.5764647", "0.5762916", "0.5755182", "0.57469606", "0.57162523", "0.56958675", "0.5690714", "0.5670823", "0.5634883", "0.56327844", "0.5626067", "0.56198156", "0.5618131", "0.5607817", "0.5600846", "0.55990374", "0.557673", "0.55442995", "0.55349314", "0.5529956", "0.55170316", "0.548041", "0.54785234", "0.5477733", "0.54753214", "0.54647577", "0.54643947", "0.5451171" ]
0.85371137
0
Gets the attribute value for Inspection, using the alias name Inspection.
public String getInspection() { return (String)getAttributeInternal(INSPECTION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAttribute();", "String getAttribute();", "public String getSuggestion() {\n return (String)getAttributeInternal(SUGGESTION);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public Object getProperty(String attName);", "Attribute getAttribute();", "public String getProperty(final String iName) {\n return getProperty(iName, null);\n }", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public String getInseam() {\n return (String)getAttributeInternal(INSEAM);\n }", "public String getAttribute() {\n return attribute;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public SourceAttribute getSourceAttribute(int i){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\t//just return the variable name\n\t\t\treturn new SourceAttribute(getVars().get(i), \"string\", \"F\");\n\t\t}\n \treturn source.getAttr(i);\n }", "public String getAlias() {\r\n return getAlias(this.getClass());\r\n }", "String getAttributeStringValue(Object attr);", "public String getAttribute(String name);", "public String getAlias() {\n return alias;\n }", "Object getAttribute(int attribute);", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\n return alias;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAlias() {\n return alias;\n }", "String getControllingAttributeName();", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public Object getAttribute(String name);", "public String getAlias();", "public String getAlias();", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "@NotNull\n public String getAlias()\n {\n return alias;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }", "public String getAlias() {\n\t\treturn alias;\n\t}", "public String getIntituleposte() {\n return (String) getAttributeInternal(INTITULEPOSTE);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String attribute() {\n return this.attribute;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Annotation getAnnotation(long j) {\n return this.annotations.obtainBy(j);\n }", "public java.lang.CharSequence getAlias() {\n return alias;\n }", "public java.lang.CharSequence getAlias() {\n return alias;\n }", "public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }", "public String getStringAttribute();", "public Integer getDemonotice() {\n return (Integer) get(\"demonotice\");\n }", "public final String getPerunSourceAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"perunSourceAttribute\");\n\t}", "String getProperty();", "String getProperty();", "String getProperty();", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "@Override\n\tpublic String getAnalysisName() {\n\t\treturn analysisName;\n\t}", "public String getAliasname() {\n return aliasname;\n }", "String attributeToGetter(String name);", "public String getAttributeValue(By elementDefinition, String attributeName) {\n String attributeValue = null;\n try {\n info(\"Retrieving attribute value for attribute \" + attributeName + \" for the element :: \" +\n elementDefinition);\n waitForVisibility(elementDefinition);\n attributeValue = findElement(elementDefinition).getAttribute(attributeName);\n return attributeValue;\n } catch (Exception e) {\n error(\"Exception occurred while retrieving value of \" + attributeName + \" for the element with \" +\n \"definition \" + elementDefinition);\n error(Throwables.getStackTraceAsString(e));\n throw new NoSuchElementException(Throwables.getStackTraceAsString(e));\n }\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "private String getStringValue(Element element, String tagname) {\n return assistLogic.getStringValue(element, tagname);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "public String getAlias() {\n return this.key.substring(this.key.lastIndexOf(\".\") + 1);\n }", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "String getValueName();", "public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }", "String getAttributeName(Object attr);", "protected String getInstrumentName() {\n\t\treturn this.instrument;\n\t}", "public String getProperty();", "public InstrumentDescription getInstrument();", "@java.lang.Override\n public int getIndividualAttack() {\n return individualAttack_;\n }", "public String getValidationDiscountIn()\n\t{\n\t\twaitForVisibility(validationDiscountIn);\n\t\treturn validationDiscountIn.getText();\n\t}", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "public IntelligenceRule getIntelligenceRule() {\n return this.IntelligenceRule;\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public int getIntelligence() {\n \t\treturn intelligence;\n \t}", "public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }", "String getDamage() {\n return damage;\n }", "@java.lang.Override\n public int getIndividualAttack() {\n return individualAttack_;\n }", "public int getAtt(){ \r\n return att;\r\n }", "public String name() {\n return aliases.get(0);\n }", "public java.lang.String getExam() {\n return exam;\n }", "String getProperty(String name);", "java.lang.String getInsight();", "public String getAttribute(final String attributeLocator);", "int getAnnotationSourceValue();", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "java.lang.String getProperty();", "public String getAnalysis()\n\t{\n\t\treturn m_analysis;\n\t}", "public String getRollupValue() {\r\n return getAttributeAsString(\"rollupValue\");\r\n }", "public String getAttribute(String attribute){\n return getWebElement().getAttribute(attribute);\n }", "public String getProperty(int property) {\n\t\treturn activity.getString(R.string.input);\n\t}" ]
[ "0.5534975", "0.54833555", "0.53773206", "0.5317424", "0.53081346", "0.5266826", "0.51220894", "0.5092406", "0.50725806", "0.50702816", "0.5064629", "0.5052963", "0.50253147", "0.50253147", "0.50253147", "0.50215435", "0.5015273", "0.50107604", "0.5001438", "0.4998676", "0.4996102", "0.4995517", "0.49928865", "0.49903134", "0.49832425", "0.49832425", "0.4970207", "0.4970207", "0.49699798", "0.49692842", "0.4968233", "0.4958627", "0.49516657", "0.49305612", "0.49305612", "0.49132895", "0.4910346", "0.4898891", "0.48965207", "0.48842835", "0.4882515", "0.48555517", "0.48297358", "0.4827843", "0.48247373", "0.48172638", "0.47946498", "0.47771302", "0.47323388", "0.47254774", "0.47187662", "0.47151867", "0.471121", "0.47109336", "0.47109336", "0.47109336", "0.47080687", "0.47053286", "0.46920067", "0.4687422", "0.46849546", "0.46817437", "0.46797967", "0.46689495", "0.4667557", "0.4658846", "0.4654844", "0.46525538", "0.46456334", "0.4644896", "0.46414974", "0.4637545", "0.46329385", "0.46246108", "0.46140808", "0.46092334", "0.460805", "0.4607074", "0.46064115", "0.460302", "0.460302", "0.460302", "0.460302", "0.4600889", "0.46000803", "0.45951653", "0.45928767", "0.45881245", "0.45859239", "0.45805982", "0.45803812", "0.45788187", "0.45774105", "0.4574537", "0.4567756", "0.45645386", "0.4562002", "0.45592833", "0.45574182", "0.45572528" ]
0.64488006
0
Sets value as the attribute value for Inspection.
public void setInspection(String value) { setAttributeInternal(INSPECTION, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setValue(String value) {\n set (value);\n }", "public void setValue(String value) throws Exception {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setValue (String Value);", "public void setValue(String value) {\n\t\tthis.text = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setTheInterestingValue(int theInterestingValue) {\n\t\tthis.theInterestingValue = theInterestingValue;\n\t\tnotifyObservers();\n\t}", "void setValue(String value);", "void setValue(String value);", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "void setString(String attributeValue);", "void setValue(java.lang.String value);", "public void setValue(final String value)\n {\n this.value = value;\n }", "public void setTestValue(Integer testValue) {\n this.testValue = testValue;\n }", "public void setValue(java.lang.String value) {\n this.value = value;\n }", "public void setInsuredValue(int insuredValue) {\n this.insuredValue = insuredValue;\n }", "public void setValue(final String value) {\n this.value = value;\n }", "public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }", "public void testSetNewValue_Accuracy() {\r\n String newValue = \"newValue\";\r\n auditDetail.setNewValue(newValue);\r\n assertEquals(\"The newValue value should be set properly.\", newValue,\r\n UnitTestHelper.getPrivateField(AuditDetail.class, auditDetail, \"newValue\").toString());\r\n }", "public void setCoverage(String value) {\n/* 90 */ setValue(\"coverage\", value);\n/* */ }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setValue(java.lang.String value)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$12);\n }\n target.setStringValue(value);\n }\n }", "void setValue(final String value);", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setValue(String value) {\n\t\tmValue = value;\n\t}", "public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setValue(Object value) { this.value = value; }", "public void setValue(String value)\n {\n _value = setNonEmptyValueAttribute(value);\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "public void setValue(Object value) {\n this.value = value;\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setValue(Object value);", "public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}", "public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}", "public void xsetValue(org.apache.xmlbeans.XmlString value)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$12);\n }\n target.set(value);\n }\n }", "public void setValue(Integer value) {\n _value = value ;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setTargetValue(String name, Object def);", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setValue(Value value) {\n this.value = value;\n }", "String setValue();", "public Builder setSeverityValue(int value) {\n severity_ = value;\n onChanged();\n return this;\n }", "public abstract void setValue(ELContext context, Object value);", "void setProperty(String attribute, String value);", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public String setValue(String eleValue) {\n return new String(\"A \" + XML_TAG + \" cannot have a text field.\");\n }", "void setInt(int attributeValue);", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "protected void doSetValue(Object aValue) {\n \t\tthis.value = aValue;\n \n \t\tassert null != getText();\n \t\tgetText().removeModifyListener(getModifyListener());\n \t\tgetText().setText(aValue.toString());\n \t\tgetText().addModifyListener(getModifyListener());\n \t}", "public void setValue(int value)\n {\n this.value = value;\n }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setSignificanceToTarget( Flow.Significance val ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"significanceToTarget\", val ) );\n }", "@Test\n public void test_TCM__OrgJdomAttribute_setValue_String() {\n \tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n \tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\n \tassertTrue(\"incorrect value before set\", attribute.getValue().equals(\"value\"));\n\n attribute.setValue(\"foo\");\n \tassertTrue(\"incorrect value after set\", attribute.getValue().equals(\"foo\"));\n\n \t//test that the verifier is called\n \ttry {\n attribute.setValue(null);\n \t\tfail(\"Attribute setValue didn't catch null string\");\n \t} catch (final NullPointerException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n \ttry {\n \t\tfinal char c= 0x11;\n \t\tfinal StringBuilder buffer = new StringBuilder(\"hhhh\");\n buffer.setCharAt(2, c);\n \t\tattribute.setValue(buffer.toString());\n \t\tfail(\"Attribute setValue didn't catch invalid comment string\");\n \t} catch (final IllegalDataException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n }", "public synchronized void setAttributeValue(@Nonnull final String value) {\n checkSetterPreconditions();\n attributeValue = Constraint.isNotNull(value, \"attributeValue must not be null\");\n }", "protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(String text) {\n\t\tthis.value = text;\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setValue(final Object value) { _value = value; }", "public void setValue(int value);", "protected synchronized void setIntegerValue(String tag, int value) {\n if (actualProperties != null) {\n actualProperties.put(tag, Integer.toString(value));\n }\n }", "void setElementValue(SetElementValue cmd);", "void setInternal(ATTRIBUTES attribute, Object iValue);" ]
[ "0.6073243", "0.60405886", "0.60405886", "0.60405886", "0.60405886", "0.60168236", "0.6010173", "0.6010173", "0.6010173", "0.6010173", "0.6010173", "0.59909004", "0.59750336", "0.59629905", "0.59629905", "0.59629905", "0.59629905", "0.59629905", "0.59567344", "0.59369874", "0.5898064", "0.5890961", "0.58799416", "0.5865772", "0.5865772", "0.5865772", "0.5865772", "0.5845754", "0.5830011", "0.5819965", "0.5817945", "0.5799501", "0.57794356", "0.57794356", "0.5759225", "0.5745552", "0.5741316", "0.5726029", "0.57229674", "0.57165605", "0.571559", "0.5713103", "0.5709036", "0.5675627", "0.5670797", "0.56619984", "0.5661988", "0.5650232", "0.56492174", "0.56273234", "0.5602987", "0.560074", "0.5581115", "0.55575675", "0.5543567", "0.55412734", "0.55377185", "0.5519488", "0.5510039", "0.54990995", "0.5492358", "0.5490474", "0.54897964", "0.54818535", "0.5478563", "0.54637825", "0.5462585", "0.543952", "0.54346067", "0.5432066", "0.54289883", "0.5421456", "0.54134923", "0.5403613", "0.53939176", "0.53896874", "0.5369418", "0.536366", "0.53617007", "0.53601146", "0.53556436", "0.5355485", "0.5349652", "0.5349555", "0.5349555", "0.5349555", "0.5333025", "0.5325229", "0.53240895", "0.53240895", "0.532044", "0.5319025", "0.5309139", "0.53053355", "0.5302178", "0.5293248", "0.52924013", "0.52891666", "0.5281063", "0.52763665" ]
0.67993397
0
Gets the attribute value for TotalAlocInch, using the alias name TotalAlocInch.
public Number getTotalAlocInch() { return (Number)getAttributeInternal(TOTALALOCINCH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }", "public Number getBlncInch() {\n return (Number)getAttributeInternal(BLNCINCH);\n }", "public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public Number getInseamQty() {\n return (Number)getAttributeInternal(INSEAMQTY);\n }", "public Number getTotalNum() {\n return (Number) getAttributeInternal(TOTALNUM);\n }", "public int getAmmount() {\n\t\treturn this.ammount;\n\t}", "public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}", "public BigDecimal getAmmount() {\r\n return ammount;\r\n }", "public Number getAlto()\n {\n return (Number)getAttributeInternal(ALTO);\n }", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public static double meterToInch(final double meter) {\n return meter / METERS_PER_INCH;\n }", "public BigDecimal getsaleamt() {\n return (BigDecimal) getAttributeInternal(SALEAMT);\n }", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}", "public int getUnits()\n {\n return m_cUnits;\n }", "public double getIntAnual() {\n return intAnual;\n }", "public int getAmmount() {\r\n return ammount;\r\n }", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public String getTotalProperty() {\n\t\tif (null != this.totalProperty) {\n\t\t\treturn this.totalProperty;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"totalProperty\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Integer getAltUnits() {\n\t\treturn altUnits;\n\t}", "public Number getTotalStandad() {\n return (Number)getAttributeInternal(TOTALSTANDAD);\n }", "public double getAzInt() {\n\t\treturn 3600.0 * azInt;\n\t}", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public Float getInUtilization() {\r\n return inUtilization;\r\n }", "public int aa() {\n return this.am * 121064660;\n }", "public java.lang.CharSequence getOTUSAGEIND() {\n return OT_USAGE_IND;\n }", "public java.lang.CharSequence getOTUSAGEIND() {\n return OT_USAGE_IND;\n }", "public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }", "public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }", "public Coverage getTotal() {\n return this.total;\n }", "public int getAsCents(){\n return (dollars*100 + cents);\n }", "Inch createInch();", "public int getAnthill() {\r\n\t\treturn this.anthill;\r\n\t}", "public double getAKA068() {\n return AKA068;\n }", "public int getUnits() {\r\n return units;\r\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public int getUnits() {\r\n\r\n\t\treturn this.units;\r\n\t}", "public NM getAdministeredAmount() { \r\n\t\tNM retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public String getAltitudeColUnits()\n {\n return myAltitudeColUnits;\n }", "public int totalGemValue() {\r\n\t\ttotal = 0;\r\n\t\ttotal += gemPile[0];\r\n\t\ttotal += gemPile[1] * 2;\r\n\t\ttotal += gemPile[2] * 3;\r\n\t\ttotal += gemPile[3] * 4;\r\n\t\treturn total;\r\n\t}", "public String getTbApWtEntryTotalConsuption()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\ttry {\n\t\t\tConnection con = DBConnection.getMySQLConnection();\n\t\t\tResultSet rs = con.createStatement().executeQuery(\"SELECT \" + CondominiumUtils.TOTAL_W + \" FROM apartment WHERE id = \" + tbApWtEntryIndex);\n\t\t\t\n\t\t\tif(rs.next()) {\n\t\t\t\ttbApWtEntryTotalConsuption = rs.getString(CondominiumUtils.TOTAL_W);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBConnection.closeMySQLConnection();\n\t\t}\n\t\treturn tbApWtEntryTotalConsuption;\n\t}", "public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }", "public double getTotal() {\n return Total;\n }", "public BigDecimal getTotalAmt() {\n\t\treturn totalAmt;\n\t}", "public String getCalculatedDititsSum() {\n return driver.findElement(digitSumLocator).getAttribute(\"value\");\n }", "public int getAlphaInfoValue() {\n return instance.getAlphaInfoValue();\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public int getACsum() {\n return (int)sum;\n }", "public String getUnitOfMeasure() {\r\n return this.unitOfMeasure;\r\n }", "public int getAantalCalimiteiten()\n\t{\n\t\treturn _AantalCalimiteiten;\n\t}", "@Override\n\tpublic Integer getInStorage_TotalNum(String hql) {\n\t\treturn super.findTotleNum(hql);\n\t}", "String getUnits();", "String getUnits();", "String getUnits();", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public String getNumAccPct() {\n return numAccPct;\n }", "public Float getOutUtilization() {\r\n return outUtilization;\r\n }", "public BigDecimal getCAPITALIZE_IN_OUT_AMT() {\r\n return CAPITALIZE_IN_OUT_AMT;\r\n }", "public java.lang.String getOuantity() {\r\n return localOuantity;\r\n }", "public Integer getAccload() {\r\n return accload;\r\n }", "public int getMontantTotal() {\n\t\treturn montantTotal;\n\t}", "public BigDecimal getVAT_CHARGE_INSUR_AMT() {\r\n return VAT_CHARGE_INSUR_AMT;\r\n }", "@Schema(example = \"0x174876e800\", required = true, description = \"Total issue count (in hexadecimal)\")\n public String getTotalSupply() {\n return totalSupply;\n }", "public int getHP()\n\t{\n\t\tUnit u = this;\n\t\tint hp = 0;\n\t\tfor(Command c : u.race.unitcommands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t\thp += Integer.parseInt(c.args.get(0));\n\t\t\n\t\tfor(Command c : u.getSlot(\"basesprite\").commands)\n\t\t\tif(c.command.equals(\"#hp\"))\n\t\t\t{\n\t\t\t\tString arg = c.args.get(0);\n\t\t\t\tif(c.args.get(0).startsWith(\"+\"))\n\t\t\t\t\targ = arg.substring(1);\n\t\t\t\t\n\t\t\t\thp += Integer.parseInt(arg);\n\t\t\t}\n\t\t\n\t\tif(hp > 0)\n\t\t\treturn hp;\n\t\telse\n\t\t\treturn 10;\n\t}", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public String getInseam() {\n return (String)getAttributeInternal(INSEAM);\n }", "public String getTotalTaxes(){\n String tax = driver.findElement(oTotalTaxes).getText();\n logger.debug(\"total taxes is\" + tax);\n return tax;\n }", "public Money getPerUnitDeclaredValue() {\n return perUnitDeclaredValue;\n }", "public int getKapitelValue() {\n\t\tint absvalue = 0;\n\t\tMatcher m = kapitelPattern.matcher(getId());\n\t\tif (m.find()) {\n\t\t\ttry {\n\t\t\t\t int whole = Integer.parseInt(m.group(1));\n\t\t\t\t int radix = Integer.parseInt(m.group(2));\n\t\t\t\t absvalue = whole * 1000 + radix;\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tLogger.getLogger(this.getClass())\n\t\t\t\t\t.error(\"Kapitelnummer der Gefaehrdung ist kein Float.\", e);\n\t\t\t}\n\t\t}\n\t\treturn absvalue;\n\t\n\t}", "public Number getTotalYards() {\n return (Number)getAttributeInternal(TOTALYARDS);\n }", "@Override\n\tpublic int getTotalOil() {\n\t\treturn totalOil;\n\t}", "public String getUnits() {\n return this.units;\n }", "public int getBaseMana()\r\n {\r\n return mBaseMana;\r\n }", "public int getUnits() {\n\t\treturn units;\n\t}", "public double getAH() {\n\t\t\treturn archeight.get();\n\t\t}", "public int getBonusUnits() {\r\n return bonusUnits;\r\n }", "public NM getRxa6_AdministeredAmount() { \r\n\t\tNM retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public Integer getTotalPeroid() {\n return totalPeroid;\n }", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "@ComputerMethod\n private FloatingLong getEnergyUsage() {\n return getActive() ? energyContainer.getEnergyPerTick() : FloatingLong.ZERO;\n }", "public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }", "protected String getUnits()\n {\n return units;\n }", "public double getTotale() {\n\t\t\treturn totale;\n\t\t}", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public int getTotalDistance() {\n return totalDistance;\n }", "EDataType getPerCent();", "public int getTotDistance(){\r\n\t \treturn this.totDistance;\r\n\t }", "public float getTotalAmount() {\n float amt = 0.0f;\n for (Item e : cart) {\n amt += e.getQuantity() * getPrice(e.getName());\n }\n return amt;\n }", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "public int getMana() {\n return mana;\n }", "public Number getChallanNo() {\n return (Number) getAttributeInternal(CHALLANNO);\n }", "public double getMana() {\n return classData.getMana(level);\n }", "public final long getUIN() {\n\t return icqUIN;\n }", "public float getTotal(){\r\n\t\treturn Total;\r\n\t}" ]
[ "0.66329926", "0.58456254", "0.5648603", "0.54290277", "0.5427863", "0.5418384", "0.53661305", "0.52683985", "0.522129", "0.5214357", "0.5156665", "0.5131283", "0.51158416", "0.5109877", "0.506863", "0.5058556", "0.50568116", "0.50401855", "0.50138533", "0.500678", "0.49899912", "0.49844316", "0.4961515", "0.49385208", "0.49249417", "0.49111745", "0.49049935", "0.49040502", "0.4875293", "0.48662058", "0.4853987", "0.48350963", "0.48326552", "0.48318028", "0.48311946", "0.48135388", "0.4811936", "0.4811408", "0.48088756", "0.47928137", "0.47868595", "0.4764974", "0.47642097", "0.47573328", "0.4747509", "0.47471943", "0.47447544", "0.47435367", "0.47422028", "0.473296", "0.47328028", "0.47160664", "0.47147432", "0.47116295", "0.47079805", "0.46958247", "0.46958247", "0.46958247", "0.4688625", "0.46850085", "0.46694598", "0.466627", "0.466358", "0.46592066", "0.46572018", "0.46556443", "0.46551195", "0.4654226", "0.46527493", "0.46502015", "0.46487203", "0.46486312", "0.46441135", "0.46431598", "0.46404955", "0.46350288", "0.46295974", "0.46293452", "0.46291584", "0.46284884", "0.46149093", "0.46113288", "0.46113288", "0.46111423", "0.46088767", "0.46069056", "0.46053195", "0.45907223", "0.45883447", "0.4588213", "0.45870772", "0.45850086", "0.45814556", "0.45812562", "0.45766154", "0.45764178", "0.45761237", "0.45736006", "0.45709133", "0.45699725" ]
0.81048024
0
Sets value as the attribute value for TotalAlocInch.
public void setTotalAlocInch(Number value) { setAttributeInternal(TOTALALOCINCH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public void setBlncInch(Number value) {\n setAttributeInternal(BLNCINCH, value);\n }", "public void setAmmount(int ammount) {\r\n this.ammount = ammount;\r\n }", "@Override\n\tpublic void setTotalOil(int totalOil) {\n\t\tthis.totalOil += totalOil;\n\n\t}", "public void setTotalAlocYrds(Number value) {\n setAttributeInternal(TOTALALOCYRDS, value);\n }", "public void setAmmount(BigDecimal ammount) {\r\n this.ammount = ammount;\r\n }", "public synchronized void setTbApWtEntryTotalConsuption(String value){\n\t\t// Fill up with necessary processing\n\n\t\ttbApWtEntryTotalConsuption = value;\n\t}", "public void setIncomeTotal(){\n\t\tincomeOutput.setText(\"$\" + getIncomeTotal());\n\t\tnetIncomeOutput.setText(\"$\" + (getIncomeTotal() - getExpensesTotal()));\n\t}", "private void updateAmplificationValue() {\n ((TextView) findViewById(R.id.zoomUpDownText)).setText(String.valueOf(curves[0].getCurrentAmplification()));\n }", "public void setInseamQty(Number value) {\n setAttributeInternal(INSEAMQTY, value);\n }", "public void setA(String units,float value){\r\n\t\t//this.addChild(new PointingMetadata(\"lat\",\"\"+latitude));\r\n\t\tthis.setFloatField(\"a\", value);\r\n\t\tthis.setUnit(\"a\", units);\r\n\t}", "public void setTotal(Number value) {\n setAttributeInternal(TOTAL, value);\n }", "public void setTotalSeats(int value) {\n this.totalSeats = value;\n }", "public void setTotalAbsencePercentage(double totalAbsencePercentage) {\n //this.totalAbsencePercentageProperty.set(Math.round(totalAbsencePercentage * 100.0) / 100.0);\n this.totalAbsencePercentageProperty.set(totalAbsencePercentage);\n }", "public void setTotal(int value) {\n this.total = value;\n }", "public Number getBlncInch() {\n return (Number)getAttributeInternal(BLNCINCH);\n }", "public void setAlto(Number value)\n {\n setAttributeInternal(ALTO, value);\n }", "public void setTotal(Double total);", "public void updateTotalUnitAmmount(String totalUnits){\n\t\titem.setText(5, totalUnits);\n\t}", "@Override\n public void setTotalMoney(BigDecimal inputMoney) {\n totalMoney = inputMoney;\n }", "public void setUnits(int value) {\r\n this.units = value;\r\n }", "public void setInclination(double value) {\n this.inclination = value;\n }", "public void setA(double value) {\n this.a = value;\n }", "public void setTotalAlocRolls(Number value) {\n setAttributeInternal(TOTALALOCROLLS, value);\n }", "public void setExternalAttributes(final long value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"8f4b22cd-9e75-4a38-9e27-30ba1da16ade\");\n externalAttributes = value;\n }", "public void setTotalAbonos() {\n String totalAbonos = this.costoAbono.getText();\n int total = Integer.parseInt(totalAbonos.substring(1,totalAbonos.length()));\n this.tratamientotoSelected.setTotalAbonos(total);\n \n PlanTratamientoDB.editarPlanTratamiento(tratamientotoSelected);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public synchronized void setTbApWtEntryTotalLimit(String value)\n\t\t\t\t throws AgentException{\n\t\t// Fill up with necessary processing\n\n\t\tif(value == null){\n\t\t\tthrow new AgentException(\"\", CommonUtils.WRONGVALUE);\n\t\t}\n\t\tif(!(((value.length()>=0)&&(value.length()<=255)))){\n\t\t\tthrow new AgentException(\"\", CommonUtils.WRONGVALUE);\n\t\t}\n\t\ttbApWtEntryTotalLimit = value;\n\t}", "public void setTotale(double totale) {\n\t\t\tthis.totale = totale;\n\t\t}", "public void setCurrentAlloment(int value) {\n this.currentAlloment = value;\n }", "public void setTotalStandad(Number value) {\n setAttributeInternal(TOTALSTANDAD, value);\n }", "public void setAncho(Number value)\n {\n setAttributeInternal(ANCHO, value);\n }", "public void setBaseline(Double offset) {\n if (offset == null) {\n getOrCreateProperties().setBaseline(null);\n } else {\n getOrCreateProperties().setBaseline((int) (offset * 1000));\n }\n }", "@XmlElement(name = \"upper\")\n public void setUpperValue(double value) {\n this.upperMeasure = Measure.valueOf(value, units);\n }", "public void setWidthInch(float inches){\n\t\tthis.setWidth(inches);\n\t}", "public void setMountains (int value)\n {\n if (value == 1)\n {\n this.mountains = (grid/12000)+1;\n }\n \n if (value == 2)\n {\n this.mountains = (grid/10000)+2;\n }\n \n if (value == 3)\n {\n this.mountains = (grid/8000)+3;\n }\n }", "public void setMeanAnamoly(double value) {\n this.meanAnamoly = value;\n }", "public void setMeanAnamoly0(double value) {\n this.meanAnamoly0 = value;\n }", "public void setTotalMini(double totalMini) {\n this.totalMini = totalMini;\n }", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }", "public BigDecimal getAmmount() {\r\n return ammount;\r\n }", "public void setAOA(float AOA);", "public void setInternalAttributes(final int value) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c66dec57-e94d-47cc-bad0-17c4cbe2e595\");\n internalAttributes = value;\n }", "public void setCurrentCash(double value) {\r\n this.currentCash = value;\r\n }", "private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public void setHealthInsurancePerAnnum(double healthInsurancePerAnnum) {\n this.healthInsurancePerAnnum = healthInsurancePerAnnum;\n }", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "void setUnitIncrement(Adjustable adj, int u);", "public void changeAstat(int amt) {\n\t\taStatN += amt;\n\t\taStatM = aStatN / 2;\n\t}", "public void setTotalNum(Number value) {\n setAttributeInternal(TOTALNUM, value);\n }", "public void adaugaLocuintaInchiriata(Locuinta locuinta) {\n locuinta.setTip(\"inchiriata\");\n locuinteInchiriate.add(locuinta);\n int index = locuinte.indexOf(locuinta);\n locuinte.remove(index);\n }", "public void setInUtilization(Float inUtilization) {\r\n this.inUtilization = inUtilization;\r\n }", "public Builder setTotalSize(int value) {\n bitField0_ |= 0x00000008;\n totalSize_ = value;\n onChanged();\n return this;\n }", "public IotaImpl(IotaEnum iotaEnum, Integer value) {\n _iotaEnum = iotaEnum ;\n _value = value ;\n }", "Inch createInch();", "public void setAntennaHeight(double antennaHeight)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANTENNAHEIGHT$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANTENNAHEIGHT$10);\r\n }\r\n target.setDoubleValue(antennaHeight);\r\n }\r\n }", "public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}", "public void setEUtilization(double argEUtilization) {\n\t\teUtilization = argEUtilization;\n }", "public void setTotal(Coverage total) {\n this.total = total;\n }", "public static void setTotalInspected(Label totalPacketsInspected) {\n \ttotalPacketsInspected.setText(String.valueOf(DetectionHandler.getTotalInspected()));\n }", "@Override\n\tpublic void setQtyEntered (BigDecimal QtyEntered)\n\t{\n\t\tif (QtyEntered != null && getC_UOM_ID() != 0)\n\t\t{\n\t\t\tint precision = MUOM.getPrecision(getCtx(), getC_UOM_ID());\n\t\t\tQtyEntered = QtyEntered.setScale(precision, BigDecimal.ROUND_HALF_UP);\n\t\t}\n\t\tsuper.setQtyEntered (QtyEntered);\n\t}", "public int getAmmount() {\n\t\treturn this.ammount;\n\t}", "public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}", "public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}", "public void setValue(AXValue value) {\n this.value = value;\n }", "public Number getTotalAlocYrds() {\n return (Number)getAttributeInternal(TOTALALOCYRDS);\n }", "public void updateTotalsTotal(BigDecimal inTotal)\n\t{\n\t\t//sets text on the label to a big decimal\n\t\tjLTotalForDay.setText(\"Total for the day: £\" + new DecimalFormat(\"#0.00\").format(inTotal.doubleValue()));\n\t}", "public void traitsValues(){\n\t\tsetTracksThatCover(Math.round((ADN.getTracksThatCover() +127)/85)+1);\n\t\tsetAmountOfPixels(Math.round((ADN.getAmountOfPixels() +127)/25)+5);\n\t\tsetAmountOfPoints(Math.round((ADN.getAmountOfPoints() +127)/85)+3);\n\n\t\tthis.getColorTrait();\n\t}", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public void setTotalSpacingDegree(float totalSpacingDegree) {\n this.totalSpacingDegree = totalSpacingDegree;\n resetItems();\n }", "void setIVA(float iva);", "public void setAnnualIncome(int value) {\n this.annualIncome = value;\n }", "public void setHP(int hp) {\r\n\t\tthis.hp += hp;\r\n\t}", "public static void main(String[] args) {\n\n\n System.out.println(\"Please input a value for inch:\");\n Scanner scanner = new Scanner(System.in);\n int inchValue = scanner.nextInt();\n double meterValue = 0.0254 * inchValue;\n System.out.println((double)inchValue + \" inch is \" + meterValue + \" meters\");\n }", "@Test\n public void setTotal() throws NegativeValueException {\n cartItem.setTotal(45);\n double expected = 45;\n double actual = cartItem.getTotal();\n assertEquals(expected, actual, 0.0);\n }", "public void setTestTotalNum(byte value) {\r\n this.testTotalNum = value;\r\n }", "public void setA(double a){\n this.a=a;\n }", "public void setKiloWatts(int kiloWatts){\n\tthis.kiloWatts=kiloWatts;\n}", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public void setCentreFrequency(double value, int subsystem) {\n _avTable.set(ATTR_CENTRE_FREQUENCY, value, subsystem);\n }", "void setAcceleration(double acc) {\r\n if (acc * ACCELERATION_COST_FACTOR <= energy) {\r\n rAcc = acc;\r\n xAcc = rAcc * Math.cos(orientation);\r\n yAcc = rAcc * Math.sin(orientation);\r\n }\r\n }", "public void setNumAyuAtracc(int num);", "public void setCent(Integer cent) {\n if (cent >= 0 && cent <= 99) {\n this.cent = cent;\n } else {\n throw new IllegalArgumentException(\"cent of card balance out of range\");\n }\n }", "public static double meterToInch(final double meter) {\n return meter / METERS_PER_INCH;\n }", "public void setIntAttribute6(String value) {\n setAttributeInternal(INTATTRIBUTE6, value);\n }", "public void setIntensity(double aIntensity) {\n iIntensity = aIntensity;\n }", "private void setAlphaInfoValue(int value) {\n alphaInfo_ = value;\n }", "public void setTotalYards(Number value) {\n setAttributeInternal(TOTALYARDS, value);\n }", "protected void updateAltitude() {\n Altitude droneAltitude = this.drone.getAttribute(AttributeType.ALTITUDE);\n\n\n\n alt.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n // altitudeTextView.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatINT();\n\t\t\t}\n\t\t}", "public void setTotalAvailable(Double totalAvailable){\n this.totalAvailable = totalAvailable;\n }", "protected void setAy(double ay) {\n\t\tif (isValidAy(ay))\n\t\t\tthis.ay = ay;\t\t\n\t\telse \n\t\t\tthis.ay = 0;\t\t\n\t}", "public void setValue(double value) {\n this.value = value; \n }", "void setValueQuantity(org.hl7.fhir.Quantity valueQuantity);", "public void setAngle( double a ) { angle = a; }", "@Override\n\t\t\tpublic void update(Observable o, Object arg) {\n\t\t\t\tupdateCurrentLineFontSize(Properties.getDefaultProperties().getIntProperty(currentLineFontSizeKey));\n\t\t\t}", "public void setTotalDistance(int totalDistance) {\n this.totalDistance = totalDistance;\n }", "public void setTotalSeconds() {\n //this.totalSeconds = (int)((endTime.compareTo(startTime)*1000)/60);\n //long diff = endTime.compareTo(startTime);\n long diffMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n // for testing only use no. secs\n this.totalSeconds += (int)((diffMillis/1000));\n // !!Reinstate this line: this.totalSeconds += (int)((diffMillis/1000)/60);\n\n }" ]
[ "0.7146285", "0.61167943", "0.564076", "0.55894125", "0.52939236", "0.52314365", "0.51457125", "0.5131706", "0.5114935", "0.51130795", "0.51099026", "0.5103626", "0.510003", "0.5088577", "0.5087025", "0.5084863", "0.5026243", "0.5016298", "0.49841356", "0.49687064", "0.49664354", "0.4947254", "0.49321356", "0.4917533", "0.48926717", "0.48817614", "0.48617208", "0.48502845", "0.48273727", "0.48213726", "0.48151928", "0.48014638", "0.48013464", "0.48008052", "0.48002717", "0.47948712", "0.47947252", "0.4790386", "0.4785224", "0.4782665", "0.4782665", "0.47771508", "0.4762145", "0.475503", "0.4754036", "0.4743849", "0.47124618", "0.4711082", "0.4707905", "0.47039863", "0.4703966", "0.47018427", "0.4694565", "0.46927154", "0.46722338", "0.46646374", "0.4658017", "0.46579653", "0.46303755", "0.4622125", "0.46148452", "0.46083435", "0.46006542", "0.45915696", "0.45864022", "0.45827693", "0.45738724", "0.45708397", "0.45701665", "0.45661402", "0.4561642", "0.45614067", "0.45561954", "0.45454386", "0.45452365", "0.45441797", "0.4534966", "0.45310566", "0.4522494", "0.45204613", "0.45188996", "0.4512064", "0.45098814", "0.45095307", "0.450231", "0.44995016", "0.44899273", "0.44855982", "0.44808796", "0.44808644", "0.44805115", "0.44758946", "0.44697192", "0.44674164", "0.44652265", "0.44646874", "0.446249", "0.4458111", "0.44577253", "0.44565025" ]
0.8335944
0
Gets the attribute value for BlncInch, using the alias name BlncInch.
public Number getBlncInch() { return (Number)getAttributeInternal(BLNCINCH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBlncInch(Number value) {\n setAttributeInternal(BLNCINCH, value);\n }", "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public Number getChallanNo() {\n return (Number) getAttributeInternal(CHALLANNO);\n }", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "Inch createInch();", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}", "public static double cmToInches(double cms)\n {\n return cms * CM_PER_INCH;\n }", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public Number getLabcol() {\n return (Number) getAttributeInternal(LABCOL);\n }", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }", "public String getIntAttribute10() {\n return (String) getAttributeInternal(INTATTRIBUTE10);\n }", "public final long getUIN() {\n\t return icqUIN;\n }", "public double getBCM(){\r\n\t\treturn bcm;\r\n\t}", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }", "public BigDecimal getACC_CIF() {\r\n return ACC_CIF;\r\n }", "public String getIntAttribute8() {\n return (String) getAttributeInternal(INTATTRIBUTE8);\n }", "public String getIssuanceChallanNo() {\n return (String) getAttributeInternal(ISSUANCECHALLANNO);\n }", "public Number getBlncYrds() {\n return (Number)getAttributeInternal(BLNCYRDS);\n }", "public String getIntAttribute5() {\n return (String) getAttributeInternal(INTATTRIBUTE5);\n }", "public String getInumber(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, INUMBER);\n\t}", "public String getCB_IND() {\r\n return CB_IND;\r\n }", "public Number getInseamQty() {\n return (Number)getAttributeInternal(INSEAMQTY);\n }", "public String getIntAttribute12() {\n return (String) getAttributeInternal(INTATTRIBUTE12);\n }", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public Character getInChar() {\n return inChar;\n }", "public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }", "public Float getBhIhosucr() {\r\n return bhIhosucr;\r\n }", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public double getIBU() {\n\t\tdouble bitterness = 0;\n\t\tfor (RecipeIngredient ri : m_ingredientList) {\n\t\t\tif (ri.getIngredient().getType() == Ingredient.Type.HOPS) {\n\t\t\t\tHops h = (Hops) ri.getIngredient();\n\t\t\t\tbitterness += 0.30 * (h.getBoilTime()/60) * h.getAlphaAcid() * ri.getAmount(); \n\t\t\t}\n\t\t}\n\t\treturn (bitterness / m_batchSize) / 0.01335; \n\t}", "public double getBKC099() {\n return BKC099;\n }", "public double get_Cd (double cldin, double effaoa, double thickness, double camber) {\n if (stall_model_type == STALL_MODEL_IDEAL_FLOW) return 0;\n return current_part.foil.get_Cd(cldin, effaoa, thickness, camber, false);\n }", "public String getIntAttribute15() {\n return (String) getAttributeInternal(INTATTRIBUTE15);\n }", "public String getCif() {\n return cif;\n }", "public String getIntAttribute1() {\n return (String) getAttributeInternal(INTATTRIBUTE1);\n }", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public String getUnitcd() {\r\n return unitcd;\r\n }", "public String getUc() {\n return uc;\n }", "public String getIntituleposte() {\n return (String) getAttributeInternal(INTITULEPOSTE);\n }", "public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }", "public double getHeightInInches()\n {\n return height;\n }", "public String getUnitOfMeasure() {\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver, \"//input[@name='unitOfMeasure']/following-sibling::input[@type='text']\").getAttribute(\"value\");\r\n\t}", "public BigDecimal getCIF_NO() {\r\n return CIF_NO;\r\n }", "public CabinType getCabinType()\n\t{\n\t\treturn this.cabin;\n\t}", "public String getIntAttribute2() {\n return (String) getAttributeInternal(INTATTRIBUTE2);\n }", "public String getCn() {\n return (String)getAttributeInternal(CN);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getClaimLineNumber() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(CLAIMLINENUMBER_PROP.get());\n }", "public static double meterToInch(final double meter) {\n return meter / METERS_PER_INCH;\n }", "public String getInseam() {\n return (String)getAttributeInternal(INSEAM);\n }", "public Number getBlncRolls() {\n return (Number)getAttributeInternal(BLNCROLLS);\n }", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }", "public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }", "public BigDecimal getCIF_SUB_NO() {\r\n return CIF_SUB_NO;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getClaimLineNumber() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(CLAIMLINENUMBER_PROP.get());\n }", "public BigDecimal getCAPITALIZE_IN_OUT_AMT() {\r\n return CAPITALIZE_IN_OUT_AMT;\r\n }", "public Integer getCusUid() {\r\n return cusUid;\r\n }", "public BigDecimal getCOVERING_ACC_CIF() {\r\n return COVERING_ACC_CIF;\r\n }", "public BigDecimal getLBR_DIFAL_RateICMSInterPart();", "public float getItemPriceIBAN()\n\t{\n\t\treturn itemPriceIBAN;\n\t}", "public String getCurrencyCd() {\n return (String) getAttributeInternal(CURRENCYCD);\n }", "Integer getChnlCde();", "public Integer getBh() {\r\n return bh;\r\n }", "public String getUpc() {\r\n return upc;\r\n }", "public java.lang.CharSequence getBUSUNIT() {\n return BUS_UNIT;\n }", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "public static int lengthInInches(int feet, int inches){\n return inches = (12*feet)+inches;\n }", "public static ICC_Profile getICC_Profile(InputStream in) throws IOException {\n/* 126 */ synchronized (ICC_Profile.class) {\n/* 127 */ return ICC_Profile.getInstance(in);\n/* */ } \n/* */ }", "public String getCuttOff() {\n return (String)getAttributeInternal(CUTTOFF);\n }", "public static long getBytesIn() {\n return bytesIn;\n }", "public String getIntAttribute7() {\n return (String) getAttributeInternal(INTATTRIBUTE7);\n }", "public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}", "public java.lang.String getIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IBAN$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.\")\n\n public String getBic() {\n return bic;\n }", "public String getKcUnit() {\n return kcUnit;\n }", "public String getEmbossCardNum() {\r\n return (String) getAttributeInternal(EMBOSSCARDNUM);\r\n }", "public BigDecimal getCOVERING_ACC_BR() {\r\n return COVERING_ACC_BR;\r\n }", "public java.lang.CharSequence getBUSUNIT() {\n return BUS_UNIT;\n }", "public String getDPISBN(){\n\t\treturn this.m_sDPISBN;\n\t}", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }", "@Schema(example = \"1000\", description = \"Amount of the refund in cents (euros).\")\n public Integer getAmountInCents() {\n return amountInCents;\n }", "public YangUInt8 getCriticalAbateValue() throws JNCException {\n YangUInt8 criticalAbate = (YangUInt8)getValue(\"critical-abate\");\n if (criticalAbate == null) {\n criticalAbate = new YangUInt8(\"85\"); // default\n }\n return criticalAbate;\n }", "public String getCsVin() {\n return csVin;\n }", "public String getLBR_DocLine_ICMS_UU();", "public Integer getBcId() {\n return bcId;\n }", "public double getBMI() {\n\t\tdouble heightInFeetDbl = insuredPersonInfoDTO.getFeets() + (insuredPersonInfoDTO.getInches() * 0.08333);\n//\t\tlong heightInFeet = Math.round(heightInFeetDbl);\n\t\t\n\t\t// 1lb = 0.45kg\n\t\tdouble weightInKg = insuredPersonInfoDTO.getWeight() * 0.45;\n\t\t\n\t\t// 1ft = 0.3048 meter\n\t\tdouble heightInMeter = heightInFeetDbl * 0.3048;\n\t\t\n//\t\tlong bmiWeight = Math.round(weightInKg / (heightInMeter * heightInMeter));\n\t\tdouble bmiWeight = weightInKg / (heightInMeter * heightInMeter);\n\t\t\n\t\tif (insuredPersonInfoDTO.getFeets() == 0 || insuredPersonInfoDTO.getWeight() == 0\n\t\t\t\t|| bmiWeight == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\"); \n\t\tString bmiWeightStr = df.format(bmiWeight);\n\n\t\t// storing height in inches at below formula\n\t\tinsuredPersonInfoDTO.setHeight(insuredPersonInfoDTO.getFeets() * 12 + insuredPersonInfoDTO.getInches());\n\t\t\n\t\treturn Double.parseDouble(bmiWeightStr);\n\t}", "public double getInkAmount() {\n return this.inkAmount;\n }", "public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }", "public String getIntAttribute13() {\n return (String) getAttributeInternal(INTATTRIBUTE13);\n }", "char getBusLine()\n\t{\n\t\treturn this.BUSline;\n\t\t\n\t}", "public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }", "public String getCmndLine()\n {\n return cmndLine;\n }", "public Integer getChineseNumber() {\n return chineseNumber;\n }", "public Number getIrHeaderId() {\n return (Number) getAttributeInternal(IRHEADERID);\n }", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }" ]
[ "0.6151776", "0.6066916", "0.55816025", "0.55598086", "0.54867196", "0.5466496", "0.5270524", "0.526515", "0.5239774", "0.523413", "0.5166628", "0.51354104", "0.5123638", "0.50941545", "0.5068864", "0.506228", "0.50344", "0.5029553", "0.5015139", "0.5003192", "0.49970478", "0.49818346", "0.49357283", "0.49204725", "0.49158394", "0.48937824", "0.48626834", "0.48605007", "0.4842203", "0.48221558", "0.4809531", "0.47541097", "0.47519314", "0.47503284", "0.47413722", "0.47309607", "0.4724242", "0.47216785", "0.47171155", "0.4708541", "0.46976554", "0.4695942", "0.46851727", "0.46849373", "0.46779883", "0.46752727", "0.46658704", "0.4664507", "0.4661196", "0.465003", "0.4649769", "0.464252", "0.46399936", "0.46380925", "0.46337092", "0.46325302", "0.46325302", "0.46325302", "0.46317717", "0.46271616", "0.46083623", "0.46030986", "0.4599126", "0.45902488", "0.4588262", "0.45818076", "0.4579153", "0.45785066", "0.45781317", "0.45757568", "0.45730463", "0.45718372", "0.45712122", "0.45557967", "0.45554852", "0.45535704", "0.45504135", "0.4546884", "0.45415962", "0.45308235", "0.45305884", "0.4527075", "0.452706", "0.45263374", "0.4526208", "0.45172915", "0.45153117", "0.45018232", "0.4500655", "0.44962445", "0.44919187", "0.44805995", "0.44803682", "0.4475727", "0.44738165", "0.44692633", "0.4464872", "0.44642016", "0.44614744", "0.4457803" ]
0.80014604
0
Sets value as the attribute value for BlncInch.
public void setBlncInch(Number value) { setAttributeInternal(BLNCINCH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getBlncInch() {\n return (Number)getAttributeInternal(BLNCINCH);\n }", "public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }", "public void setWidthInch(float inches){\n\t\tthis.setWidth(inches);\n\t}", "public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }", "Inch createInch();", "public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }", "public abstract void setInChI(String inchi);", "public void setIhosucc(Float ihosucc) {\r\n this.ihosucc = ihosucc;\r\n }", "public void setIntAttribute6(String value) {\n setAttributeInternal(INTATTRIBUTE6, value);\n }", "public void setBh(Integer bh) {\r\n this.bh = bh;\r\n }", "public void setIntAttribute9(String value) {\n setAttributeInternal(INTATTRIBUTE9, value);\n }", "public void setChallanNo(Number value) {\n setAttributeInternal(CHALLANNO, value);\n }", "public void setInseamQty(Number value) {\n setAttributeInternal(INSEAMQTY, value);\n }", "public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }", "public void setBikeNum(int NewValue){\n bike = NewValue;\n }", "public void setUnits(int value) {\r\n this.units = value;\r\n }", "public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }", "void setInt(int attributeValue);", "public void setBhIhosucr(Float bhIhosucr) {\r\n this.bhIhosucr = bhIhosucr;\r\n }", "public void setHOB(float hob);", "public void setIhosucr(Float ihosucr) {\r\n this.ihosucr = ihosucr;\r\n }", "public void setHeight(int feet, int inches) {\n setHeight((feet * INCHES_PER_FOOT) + inches);\n }", "public void setSpacingInInches(@NonNull Integer spacingInInches) {\n this.spacingInInches = spacingInInches;\n }", "public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }", "public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }", "public synchronized void setCellValue(byte in_cellValue)\n {\n cellValue = (in_cellValue > DEAD) ? ALIVE : DEAD;\n }", "public void setBKC099(double BKC099) {\n this.BKC099 = BKC099;\n }", "public void setInumber(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, INUMBER,value);\n\t}", "public void setValue(int value) {\n\t\tthis.removeAllPCData();\n\t\ttry {\n\t\t\tthis.appendChild(new XPCData(Integer.toString(value)));\n\t\t} catch (Exception e) {\n\t\t\t//ignoring this because it shouldn't break\n\t\t}\n\t}", "public void setIdbulto(Number value)\n {\n setAttributeInternal(IDBULTO, value);\n }", "public void setCent(Integer cent) {\n if (cent >= 0 && cent <= 99) {\n this.cent = cent;\n } else {\n throw new IllegalArgumentException(\"cent of card balance out of range\");\n }\n }", "public static double cmToInches(double cms)\n {\n return cms * CM_PER_INCH;\n }", "@Accessor(qualifier = \"Unit\", type = Accessor.Type.SETTER)\n\tpublic void setUnit(final B2BUnitModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(UNIT, value);\n\t}", "public void setIntAttribute10(String value) {\n setAttributeInternal(INTATTRIBUTE10, value);\n }", "public void setKiloWatts(int kiloWatts){\n\tthis.kiloWatts=kiloWatts;\n}", "private void setInPort(int value) {\n \n inPort_ = value;\n }", "private void setInPort(int value) {\n \n inPort_ = value;\n }", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public void setInUtilization(Float inUtilization) {\r\n this.inUtilization = inUtilization;\r\n }", "public void setBhIhoatts(Float bhIhoatts) {\r\n this.bhIhoatts = bhIhoatts;\r\n }", "public void setInclination(double value) {\n this.inclination = value;\n }", "public void setCIF_NO(BigDecimal CIF_NO) {\r\n this.CIF_NO = CIF_NO;\r\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setB(double value) {\n this.b = value;\n }", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "void setCHVNumber(int number)\r\n {\r\n number_of_CHV = number;\r\n }", "public void setIntAttribute8(String value) {\n setAttributeInternal(INTATTRIBUTE8, value);\n }", "@Override\n\t\tpublic void setValue(int n) {\n\t\t\tsuper.setValue(n);\n\t\t\tview.getDownpanel().getThicknessStatus().setThickness(n);\n\t\t\tview.getModel().setThickness(n);\n\t\t}", "public void setACC_CIF(BigDecimal ACC_CIF) {\r\n this.ACC_CIF = ACC_CIF;\r\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setGLINTERFACE(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.GL_INTERFACE = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "public synchronized void setTbApWtEntryTotalConsuption(String value){\n\t\t// Fill up with necessary processing\n\n\t\ttbApWtEntryTotalConsuption = value;\n\t}", "public void setInfamy(double infamy) {\n if(infamy >= 0.0 && infamy <= 100.0){\n this.infamy = infamy;\n }\n else if(infamy > 100.0){\n this.infamy = 100.0;\n }\n else{\n this.infamy = 0.0;\n }\n //TODO: I need an example for Robby here.\n }", "public Builder setBatteryPercentage(int value) {\n extraCase_ = 6;\n extra_ = value;\n onChanged();\n return this;\n }", "public void setBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}", "public void setBic(String bic) {\n this.bic = bic.replace(\" \", \"\");\n }", "public void setBase(Integer base);", "public void setEntrenchmentRate(int value) {\n this.entrenchmentRate = value;\n }", "public void setDPISBN(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPISBN)));\n\t\tthis.m_sDPISBN=value;\n\t}", "public void setDmaValue(int value);", "public void setCcn( int pCcn )\r\n {\r\n ( (IntegerMetricBO) getMetrics().get( CCN ) ).setValue( pCcn );\r\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setBASECURRENCYID(java.lang.Long value) {\n validate(fields()[2], value);\n this.BASE_CURRENCY_ID = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public Value.Builder setThn(java.lang.Integer value) {\n validate(fields()[13], value);\n this.thn = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "public void setCyl(int inCyl)\n {\n if(validateCyl(inCyl))\n {\n cyl = inCyl;\n }\n else\n {\n throw new IllegalArgumentException(\n \"Number of cylinders must be between 2 and 20 inclusive\" );\n }\n }", "public void setH(double value) {\n this.h = value;\n }", "public void setIntAttribute5(String value) {\n setAttributeInternal(INTATTRIBUTE5, value);\n }", "public void setGi( int value) {\n\n\t\tthis.gi = value;\n\t}", "public Builder setI10(int value) {\n bitField0_ |= 0x00000200;\n i10_ = value;\n onChanged();\n return this;\n }", "public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}", "public void setCpus(Integer cpusIn) {\n cpus = cpusIn;\n }", "public void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setValue(int value);", "public void setVBat(float vBat) {\r\n this.vBat = vBat;\r\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setIntAttribute12(String value) {\n setAttributeInternal(INTATTRIBUTE12, value);\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setAncho(Number value)\n {\n setAttributeInternal(ANCHO, value);\n }", "void setToValue(int val);", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "public void setIntAttribute1(String value) {\n setAttributeInternal(INTATTRIBUTE1, value);\n }", "public void setI(long value) {\n this.i = value;\n }", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "private void setBid(int value) {\n \n bid_ = value;\n }", "public void setInputValue(int inputValue) {\n\t\tif (inputValue < 0) {\n\t\t\tthis.setError(1);\n\t\t\tthis.setProcessable(false);\n\t\t} else {\n\t\t\tthis.inputValue = inputValue;\n\n\t\t}\n\n\t}", "public void setLogicalSizeInGB(final int logicalSizeInGBValue) {\n this.logicalSizeInGB = logicalSizeInGBValue;\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }", "@XmlElement(name = \"upper\")\n public void setUpperValue(double value) {\n this.upperMeasure = Measure.valueOf(value, units);\n }", "public void setMyIncomeMultiplier(float factor) throws CallbackAIException;", "public void setC(double value) {\n this.c = value;\n }", "public void setConcentration(Double concentration);", "public void setCrust(){\n this.crust = \"Thin\";\n }", "public void setB(double b){\n this.b=b;\n }" ]
[ "0.72713196", "0.6355106", "0.56738716", "0.5494515", "0.5463225", "0.528484", "0.52281773", "0.5167783", "0.5123854", "0.51104456", "0.50924176", "0.5074576", "0.5022771", "0.5007877", "0.500279", "0.49971202", "0.49962407", "0.4996105", "0.4987602", "0.49830195", "0.49718818", "0.49648836", "0.49602464", "0.49462014", "0.49310532", "0.4921121", "0.49196735", "0.4912444", "0.49088657", "0.49079165", "0.48965287", "0.4878799", "0.48506168", "0.48222727", "0.4820847", "0.48166", "0.48166", "0.47998667", "0.47967085", "0.4786216", "0.47860944", "0.47839725", "0.47708863", "0.47687852", "0.4763281", "0.47588274", "0.47559115", "0.47483322", "0.47455046", "0.47425774", "0.47320214", "0.4731526", "0.47280654", "0.4723695", "0.4714695", "0.4711191", "0.46987602", "0.469158", "0.4689264", "0.46870545", "0.46811146", "0.46785915", "0.46740657", "0.46705285", "0.46637097", "0.46569878", "0.4655629", "0.46547627", "0.46441817", "0.4641499", "0.46413964", "0.46405366", "0.46402496", "0.4637918", "0.4637918", "0.46379095", "0.46358395", "0.46358395", "0.46358395", "0.46346113", "0.46323934", "0.4628067", "0.4626472", "0.4625077", "0.4623609", "0.4623609", "0.4623609", "0.4623609", "0.4623609", "0.46228918", "0.46170634", "0.4613559", "0.46130982", "0.4609366", "0.46088034", "0.4607832", "0.46073982", "0.4606883", "0.46038648", "0.45990798" ]
0.8642987
0
Gets the attribute value for RawColor, using the alias name RawColor.
public String getRawColor() { return (String)getAttributeInternal(RAWCOLOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "public String getColorNum() {\n return (String)getAttributeInternal(COLORNUM);\n }", "public Color readColor() {\n return colorSensor.getColor();\n }", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n return this.color;\n }", "public String getColor(){\n return this._color;\n }", "public Color getColor() { return color.get(); }", "@Override\n public String getColor() {\n return this.color.name();\n }", "public String getColor()\n {\n return this.color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor() {\n return colorID;\n }", "public String getColor() {\r\n return color;\r\n }", "public int getColor() {\n return this.color;\n }", "public String getColor(){\r\n return color;\r\n }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public int getColor() {\n\t\treturn getMappedColor(color);\n\t}", "public Integer getColor() {\n\t\treturn color;\n\t}", "public void setRawColor(String value) {\n setAttributeInternal(RAWCOLOR, value);\n }", "public String getColor(){\n return this.color;\n }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public String obtenColor() {\r\n return color;\r\n }", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public Color getColor() {\r\n return this.color;\r\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public Color getColor() {\n\t\treturn this.color;\n\t}", "public AvatarColor getColor() {\n return this.color;\n }", "public String dame_color() {\n\t\treturn color;\n\t}", "public Color getColor() {\n return this.color;\n }", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public int getColor() {\n return color;\n }", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public String getColor() { \n return color; \n }", "public String getBasicColor() {\n\t\treturn basicColor;\n\t}", "@Override\n public String getColor() {\n return this.color;\n }", "public String getColorNew() {\n return (String) getAttributeInternal(COLORNEW);\n }", "@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }", "@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }", "public Color getColor() {\n return color;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public int getColor()\r\n {\r\n return m_iColor;\r\n }", "public Color getColor() {\n return color;\r\n }", "public Color getColor() {\n \t\treturn color;\n \t}", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public final Color getColor() {\n return color;\n }", "public int getColorInt () {\r\n return this.colorReturned;\r\n }", "@ColorInt\n public int getColor() {\n return mColor;\n }", "public Color getColor() {\n return this.color;\n }", "String getColour();", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor() {\n\t\treturn _color;\n\t}", "public String getColorId() {\n return colorId;\n }", "public IsColor getColorFrom() {\n\t\treturn ColorBuilder.parse(getColorFromAsString());\n\t}", "public int getColor() {\r\n return Color;\r\n }", "public int getIconCustomColor() {\n int value;\n try {\n String[] splits = _icon.split(\"\\\\|\");\n value = Integer.valueOf(splits[3]);\n } catch (Exception e) {\n value = 0;\n }\n return value;\n }", "public Color getColor() {\n\treturn color;\n }", "public String getBasicColorCd() {\n\t\treturn basicColorCd;\n\t}", "public final Color getColor() {\r\n return color;\r\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor(){\n return color;\n }", "public String getColorFromAsString() {\n\t\treturn getValue(Property.COLOR_FROM, SankeyDataset.DEFAULT_COLOR_FROM);\n\t}", "public final Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() { return color; }", "public java.awt.Color getColor() {\r\n return this.color;\r\n }", "public String getColour() {\r\n return colour;\r\n }", "public CardColor getColor() {\n return this.color;\n }" ]
[ "0.67224187", "0.6359794", "0.62572384", "0.62169623", "0.6191015", "0.6148492", "0.61311436", "0.6121679", "0.6085258", "0.6071469", "0.60706425", "0.6055564", "0.60550356", "0.6038043", "0.60309744", "0.6017093", "0.60083014", "0.60077584", "0.5997284", "0.59874177", "0.59855115", "0.5972572", "0.597113", "0.5969594", "0.5969594", "0.59635514", "0.59635514", "0.5963213", "0.5963213", "0.5963213", "0.5963213", "0.5963213", "0.5963213", "0.5963213", "0.5963213", "0.5907115", "0.59057385", "0.59057385", "0.5904288", "0.58999383", "0.5868678", "0.5868628", "0.58641225", "0.5862769", "0.5862769", "0.5862769", "0.5855619", "0.5854825", "0.58459496", "0.5832298", "0.58178407", "0.58109236", "0.58027023", "0.58027023", "0.5787531", "0.5785804", "0.57618344", "0.57618344", "0.5761084", "0.57585776", "0.57557404", "0.57429177", "0.57429177", "0.57429177", "0.5738542", "0.5738542", "0.5738542", "0.5738542", "0.5730887", "0.5720275", "0.56925", "0.5691594", "0.5690392", "0.56859696", "0.5685847", "0.56850606", "0.56850606", "0.56850606", "0.56850606", "0.56850606", "0.56850606", "0.5681662", "0.56756765", "0.56749874", "0.5664897", "0.56608015", "0.5660282", "0.5650359", "0.5648691", "0.56472856", "0.56378525", "0.56378525", "0.56378525", "0.56358546", "0.56260026", "0.56240404", "0.56222683", "0.56051016", "0.5589127", "0.5588377" ]
0.79541016
0
Sets value as the attribute value for RawColor.
public void setRawColor(String value) { setAttributeInternal(RAWCOLOR, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRaw(int x, int y, int color){\n pixels.putInt((x + y * width) * 4, color);\n }", "public String getRawColor() {\n return (String)getAttributeInternal(RAWCOLOR);\n }", "public void setRrColor(Color value) {\n rrColor = value;\n }", "public void setColor(Color c) { color.set(c); }", "public void setColor(int value);", "public void setValue(Color value) {\n _color = value;\n _updateField(value);\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }", "public void setColor(float r, float g, float b, float a);", "public void setColor(String c);", "void setRed(int x, int y, int value);", "public void set(Color inColor) {\n\n\t\tthis.r = inColor.r;\n\t\tthis.g = inColor.g;\n\t\tthis.b = inColor.b;\n\n\t}", "@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }", "public void setColor( GraphColor newVal ) {\n color = newVal;\n }", "public void setColor(Color c);", "public void setRawValue(String rawValue) {\n\t\tthis.rawValue = rawValue;\n\t}", "public void setRawValue(String rawValue) {\n\t\tthis.rawValue = rawValue;\n\t}", "public void setColor(int r, int g, int b);", "public void setUIComponentValue(Object newValue) {\n if (newValue instanceof Color) {\n lastValue = (Color) newValue;\n setBackground(lastValue);\n }\n }", "public void setColor(Color c) {\n color = c;\n }", "public void setColor(Color c) {\n this.color = c;\n }", "public void setColor(int color);", "public void setColor(int color);", "public void setRadColor(Color value) {\n radColor = value;\n }", "void setColor(Vector color);", "Color(Scalar s) {\n setScalar(s);\n }", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public void setColor(Color newColor) ;", "public void setColor(Color c) {\n\t\tthis.color = c;\n\t}", "void setColor(int r, int g, int b);", "public void setColorNum(String value) {\n setAttributeInternal(COLORNUM, value);\n }", "public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}", "public void setColor(Color clr){\n color = clr;\n }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public void setColour(Colour colour);", "public void setColor(Color color);", "public void setColor(Color c){\n\t\t//do nothing\n\t}", "public void setValue(float value)\n {\n \tPixelVal = value;\n }", "@Override public void setColor(Color c) \n\t{\n\t\tc2 = c1; c1 = c.dup();\n\t}", "public void setC(Color c) {\n\t\tthis.c = c;\n\t}", "public void setColorNew(String value) {\n setAttributeInternal(COLORNEW, value);\n }", "@Override\n public void excute() {\n drawable.setColor(color);\n }", "private native void setModelColor(float r,float g,float b);", "public abstract void setColor(Color color);", "public abstract void setColor(Color color);", "void setRed(int red){\n \n this.red = red;\n }", "public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }", "void setValue(R value);", "public void setColour(int pValue){\n\t\t\n\t\tswitch(pValue){\n\t\t\n\t\tcase(0): iColour = eTileColour.BLUE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(1): iColour = eTileColour.GREEN;\n\t\t\tbreak;\n\t\t\n\t\tcase(2): iColour = eTileColour.ORANGE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(3): iColour = eTileColour.PURPLE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(4): iColour = eTileColour.RED;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(5): iColour = eTileColour.YELLOW;\n\t\t\tbreak;\n\t\t\t\n\t\tdefault: System.out.println(\"Error: Out of bounds Colour Value\");\n\t\t}//End switch\n\t}", "public void setColour(String c)\n\t{\n\t\tcolour = c;\n\t}", "public void setColor(Color color) {\n this.color = color;\n }", "public static void setBasicColor(Color color) {\n basicColor = new Color(color.getRGB());\n }", "void setColor(@ColorInt int color);", "@Override\n public void setPixelRGB(int x, int y, int value) {\n debugView.setPixel(x, y, value);\n repaint();\n }", "public void setColor(int color){\n this.color = color;\n }", "void setGreen(int x, int y, int value);", "public Builder color(@Nullable String value) {\n object.setColor(value);\n return this;\n }", "@Override \n\tpublic void setNormalColor(){\n\t\tthis.setColor(Color.PINK);\n\t}", "public void setRenderColor(Color c) {\n this.renderColor = c;\n }", "void setBlue(int x, int y, int value);", "public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }", "public void setRawVertices(int[] value) {\n SWIGTYPE_p_int v = Converter.convertToSWIGTYPE_p_int(value);\n RecastJNI.rcContour_rverts_set(swigCPtr, this, SWIGTYPE_p_int.getCPtr(v));\n }", "public void setBasicColor(String basicColor) {\n\t\tthis.basicColor = basicColor;\n\t}", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public RADIUSAttribute setValue(final byte[] value) {\n this.value = value;\n return this;\n }", "public void setColor(Color color) {\n this.color = color;\r\n }", "Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }", "public native void setBackgroundColor(PixelPacket color)\n\t\t\tthrows MagickException;", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}", "public void setRed(final int red) {\n\t\tthis.r = red;\n\t}", "public void setTrackColor(@ColorInt int color){\n this.mTrackColor = color;\n refreshTheView();\n }", "public void setColor(Color another)\r\n {\r\n currentColor = another;\r\n }", "public void setColor(String pColor){\n this._color=pColor;\n }", "public void setColor(int r, int g, int b, int a) {\n color[0] = r / 255f;\n color[1] = g / 255f;\n color[2] = b / 255f;\n color[3] = a / 255f;\n }", "public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}", "public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }", "public void setColour(int redValue, int greenValue, int blueValue) {\n HelpFunctions.checkValue(\"Red pin value\", redValue, 0, 255);\n HelpFunctions.checkValue(\"Green pin value\", greenValue, 0, 255);\n HelpFunctions.checkValue(\"Blue pin value\", blueValue, 0, 255);\n\n this.redValue = redValue;\n this.greenValue = greenValue;\n this.blueValue = blueValue;\n\n update(redValue, greenValue, blueValue);\n }", "public void setColor(int c) {\n paint.setColor(c);\n invalidate();\n }", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "void setNoColor(boolean mono);", "public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public void setColor(String aColor, Context context){\n this.color = aColor;\n writeFile(context);\n }", "public void setColor( float[] c )\n\t{\n\t\tcolorWeight[0] = c[0];\n\t\tcolorWeight[1] = c[1];\n\t\tcolorWeight[2] = c[2];\n\t\t\n\t\t//color = null;\n\t\tcolor = new Color( colorWeight[0], colorWeight[1], colorWeight[2] );\n\t}", "public void\nsetSpecularElt( SbColor color )\n//\n{\n this.coinstate.specular.copyFrom(color);\n}", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "public void setColor(GrayColor color){\n this.color = color;\n }", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "public void setRgbColorAtPowerOnBg(int newval) throws YAPI_Exception\n {\n _rgbColorAtPowerOn = newval;\n _ycolorled.set_rgbColorAtPowerOn(newval);\n }", "@Override\n public void setColor(Color color) {\n this.color = color;\n }", "private void set(char c, char r, PieceColor v) {\n assert validSquare(c, r);\n set(index(c, r), v);\n }", "public void setColor(int gnum, Color col);", "public void setColor(Color newColor) {\n\tcolor = newColor;\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public void setColor(int color){\n\t\tthis.color = color;\n\t}", "protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}" ]
[ "0.6617361", "0.64302135", "0.6263573", "0.62405354", "0.6233896", "0.6232747", "0.61603737", "0.60758024", "0.60183984", "0.5996256", "0.5911719", "0.5899372", "0.58924687", "0.5871516", "0.5867429", "0.5860666", "0.5860666", "0.58552086", "0.5836206", "0.57978195", "0.577367", "0.57527256", "0.57527256", "0.5747746", "0.57385087", "0.5725379", "0.57225806", "0.56814224", "0.56813437", "0.5674891", "0.56365997", "0.5626775", "0.5625924", "0.56094056", "0.56061465", "0.5593994", "0.55884176", "0.5577868", "0.5550402", "0.5539859", "0.55292386", "0.55289686", "0.5526329", "0.5523006", "0.55200833", "0.55198234", "0.551446", "0.551446", "0.55050284", "0.54710233", "0.5470459", "0.54593337", "0.5458599", "0.5453848", "0.54485416", "0.54467106", "0.54075235", "0.53827333", "0.5376323", "0.5362811", "0.5361212", "0.5359354", "0.53509426", "0.53482014", "0.5345401", "0.5341739", "0.53413844", "0.5327962", "0.53060436", "0.5304694", "0.5274349", "0.5274285", "0.5273188", "0.5266446", "0.5262318", "0.526121", "0.52544814", "0.5250383", "0.52284616", "0.5226299", "0.52234614", "0.52175856", "0.5216391", "0.52162343", "0.52135813", "0.52124524", "0.52102506", "0.5207891", "0.5206527", "0.5180403", "0.51769423", "0.5176489", "0.517576", "0.51691663", "0.5166559", "0.5160014", "0.5157121", "0.51552755", "0.5145095", "0.5143221" ]
0.8217647
0
Gets the attribute value for Remarks, using the alias name Remarks.
public String getRemarks() { return (String)getAttributeInternal(REMARKS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "String getRemark();", "public java.lang.String getRemark () {\r\n\t\treturn remark;\r\n\t}", "public String getRemark() {\r\n\t\treturn remark;\r\n\t}", "public String getRemark() {\n\t\treturn remark;\n\t}", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public java.lang.String getRemark () {\n\t\treturn _remark;\n\t}", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public java.lang.String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n\t\t\treturn remarks;\n\t\t}", "public String getRemarks() {\r\n return remarks;\r\n }", "public String getaRemarks() {\n return aRemarks;\n }", "public java.lang.String getRemarks () {\n\t\treturn remarks;\n\t}", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemark() {\n return this.Remark;\n }", "public String getRemarks() { return remarks; }", "public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}", "public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }", "public java.lang.String getActualRemark () {\n\t\treturn actualRemark;\n\t}", "public java.lang.String getNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getRemark3()\r\n {\r\n return _remark3;\r\n }", "public Integer getRemarkPro() {\n return remarkPro;\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "@Override\n\tpublic java.lang.String getRemarks() {\n\t\treturn _dmGTShipPosition.getRemarks();\n\t}", "public String getLineRemark() {\n return lineRemark;\n }", "public java.lang.String getRemark1()\r\n {\r\n return _remark1;\r\n }", "@AutoEscape\n\tpublic String getNote();", "public String getRemarks1() {\n return remarks1;\n }", "public String getAdmRemarks() {\n return admRemarks;\n }", "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public java.lang.String getRemark2()\r\n {\r\n return _remark2;\r\n }", "public String getMlSremark() {\n return mlSremark;\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks;\n }", "public String getOrderRemark() {\n return orderRemark;\n }", "@AutoEscape\n\tpublic String getApellidoMaterno();", "public java.lang.String getNursingRemark () {\n\t\treturn nursingRemark;\n\t}", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public String getNote()\n {\n return note;\n }", "public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }", "public String getNote() {\n\t\treturn _note;\n\t}", "public String getNote() {\r\n return note; \r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getNote()\n\t{\n\t\treturn note;\n\t}", "public String getNote() {\n\t\treturn note;\n\t}", "public String getToolremark() {\r\n return toolremark;\r\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(String value) {\n setAttributeInternal(REMARKS, value);\n }", "public void setRemarks(java.lang.String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }" ]
[ "0.68281096", "0.67901844", "0.67901844", "0.61449826", "0.61362267", "0.6111638", "0.6099635", "0.60846454", "0.60846454", "0.60846454", "0.60846454", "0.6083007", "0.60608727", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.6013802", "0.5999878", "0.59993243", "0.5979169", "0.5968244", "0.59439343", "0.592826", "0.592826", "0.592826", "0.592826", "0.592826", "0.592826", "0.592826", "0.58073103", "0.5786516", "0.57831997", "0.577689", "0.57266474", "0.5599248", "0.5590202", "0.5528552", "0.54641974", "0.5457958", "0.54268396", "0.5410923", "0.5282998", "0.5264052", "0.5261443", "0.5238187", "0.52192026", "0.52042145", "0.51919276", "0.5190461", "0.5179116", "0.51733947", "0.5165658", "0.5162119", "0.51534694", "0.51450586", "0.51433325", "0.51433307", "0.51433307", "0.51425225", "0.51399094", "0.51327986", "0.51235485", "0.51145256", "0.51145256", "0.51145256", "0.51145256", "0.51145256", "0.51145256", "0.5102633", "0.5099723" ]
0.6879099
3
Sets value as the attribute value for Remarks.
public void setRemarks(String value) { setAttributeInternal(REMARKS, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRemarks(String value) {\r\n setAttributeInternal(REMARKS, value);\r\n }", "public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }", "public void setRemark(String Remark) {\n this.Remark = Remark;\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks;\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemarks(String remarks) {\r\n this.remarks = remarks == null ? null : remarks.trim();\r\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemark (java.lang.String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n\t\tthis.remark = remark == null ? null : remark.trim();\n\t}", "public void setRemarks(java.lang.String remarks) {\n\t\t_tempNoTiceShipMessage.setRemarks(remarks);\n\t}", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemarks(java.lang.String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks (java.lang.String remarks) {\n\t\tthis.remarks = remarks;\n\t}", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setNote(String note);", "public void setNotes(java.lang.String notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }", "@Override\n\tpublic void setRemarks(java.lang.String remarks) {\n\t\t_dmGTShipPosition.setRemarks(remarks);\n\t}", "public final void setRemarks(java.lang.String remarks)\n\t{\n\t\tsetRemarks(getContext(), remarks);\n\t}", "public void setRemark (java.lang.String _remark) {\n\t\tthis._remark = _remark;\n\t}", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n\t\treturn remark;\r\n\t}", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "public void setDocumentNote (String DocumentNote);", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }" ]
[ "0.75958306", "0.68520755", "0.6413823", "0.64109373", "0.6388115", "0.6337054", "0.6337054", "0.6314433", "0.6271487", "0.6271487", "0.6271487", "0.6271487", "0.6271487", "0.6227199", "0.6213474", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.62080956", "0.619601", "0.61944413", "0.6189469", "0.6189469", "0.61772466", "0.61536413", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61478406", "0.61150247", "0.5995776", "0.59843194", "0.5971903", "0.5963332", "0.5943025", "0.5943025", "0.5943025", "0.5943025", "0.5924868", "0.59160334", "0.5905318", "0.5891289", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079", "0.5884079" ]
0.7521042
6
Gets the attribute value for FabOunce, using the alias name FabOunce.
public String getFabOunce() { return (String)getAttributeInternal(FABOUNCE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabCons() {\n return (String)getAttributeInternal(FABCONS);\n }", "public String getFabConst() {\n return (String)getAttributeInternal(FABCONST);\n }", "public String getFa() {\n return fa;\n }", "public UAC getUAC() { \r\n return getTyped(\"UAC\", UAC.class);\r\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAzione() {\n return azione;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public void setFabOunce(String value) {\n setAttributeInternal(FABOUNCE, value);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "@JsonIgnore public String getAircraftString() {\n return (String) getValue(\"aircraft\");\n }", "String getAttribute();", "public int getFila(){\n\t\treturn fila;\n\t}", "public String getNomcheflieu() {\n return (String) getAttributeInternal(NOMCHEFLIEU);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "Attribute getAttribute();", "java.lang.String getAttribute();", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.RolLocal getF_fk_rol_2_acma();", "@Override\n\tpublic Object getAsObject(FacesContext context, UIComponent component, String value) {\n\t\tFabricante retorno = null;\n\t\tif (value != null) {\n\n\t\t\tretorno = this.fabricanteDAO.buscarPeloCodigo(new Long(value));\n\t\t}\n\n\t\treturn retorno;\n\t}", "public String getFrontEnd() {\n if (_avTable.get(ATTR_FE_NAME) == null\n || _avTable.get(ATTR_FE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_FE_NAME, \"Uu\", 0);\n }\n\n return _avTable.get(ATTR_FE_NAME);\n }", "public int dameFila() {\n return this.fila;\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getAbsenid() {\n return absenid;\n }", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public int getFila() {\r\n\t\treturn fila;\r\n\t}", "public String getName() {\n return aao.getName();\n }", "public int getKapitelValue() {\n\t\tint absvalue = 0;\n\t\tMatcher m = kapitelPattern.matcher(getId());\n\t\tif (m.find()) {\n\t\t\ttry {\n\t\t\t\t int whole = Integer.parseInt(m.group(1));\n\t\t\t\t int radix = Integer.parseInt(m.group(2));\n\t\t\t\t absvalue = whole * 1000 + radix;\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tLogger.getLogger(this.getClass())\n\t\t\t\t\t.error(\"Kapitelnummer der Gefaehrdung ist kein Float.\", e);\n\t\t\t}\n\t\t}\n\t\treturn absvalue;\n\t\n\t}", "public int getFila() {\n\t\treturn fila;\n\t}", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "String getUnidade();", "public abstract java.lang.String getAcma_valor();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getValue() {\n return super.getAttributeValue();\n }", "public String getAircraftManufacturer() {\n return aircraft.getManufacturer();\n }", "public String getFullName() {\n return (String)getAttributeInternal(FULLNAME);\n }", "@JsonProperty(\"facade\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getFacade() {\n return this.facade;\n }", "public AddressInput getEmpfaengerName() throws RemoteException\n {\n if (empfName != null)\n return empfName;\n \n SepaDauerauftrag t = getTransfer();\n\n empfName = new AddressInput(t.getGegenkontoName(), AddressFilter.FOREIGN);\n empfName.setValidChars(HBCIProperties.HBCI_SEPA_VALIDCHARS_RELAX);\n empfName.setMandatory(true);\n empfName.addListener(new EmpfaengerListener());\n if (t.isActive())\n {\n boolean changable = getBPD().getBoolean(\"recnameeditable\",true) && getBPD().getBoolean(\"recktoeditable\",true);\n empfName.setEnabled(changable);\n }\n return empfName;\n }", "public String getCfUtente() {\n\t\treturn cfUtente;\n\t}", "public Object getAttribute(String name);", "public jkt.hms.masters.business.MasEmployee getAct () {\n\t\treturn act;\n\t}", "public E ur() {\n return h.this.fAb;\n }", "public final String getFederationAttribute() {\n\t\treturn JsUtils.getNativePropertyString(this, \"federationAttribute\");\n\t}", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }", "public String getRef(){\r\n\t\treturn this.getAttribute(\"ref\").getValue();\r\n\t}", "public AIObject getAIObject(FreeColGameObject fcgo) {\n return getAIObject(fcgo.getId());\n }", "public int getFuerza(){\n\n return this.fuerza;\n\n }", "public abstract java.lang.String getAcma_cierre();", "public String getAttribute(String name);", "public String getter() {\n\t\treturn name;\n\t}", "public int obtenerFila() {\n\t\treturn fila;\n\t}", "public String getFolioFlete() {\n return (String) getAttributeInternal(FOLIOFLETE);\n }", "public Object obtenerFrente(){\n \n Object element = null;\n\n if(!this.esVacia()){\n element = this.frente.getElemento();\n }\n return element;\n }", "public java.lang.String getIdFiche(){\r\n return this.idFiche;\r\n }", "String attributeToGetter(String name);", "public String name() {\n return aliases.get(0);\n }", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "@JsonIgnore public Vehicle getAircraftVehicle() {\n return (Vehicle) getValue(\"aircraft\");\n }", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adresa_ = s;\n return s;\n }\n }", "public java.lang.String getReturnedACI() {\n return returnedACI;\n }", "public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (cazBuilder_ == null) {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n } else {\n if (payloadCase_ == 4) {\n return cazBuilder_.getMessage();\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getAdresa() {\n java.lang.Object ref = adresa_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n adresa_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getObrefno() {\n return (String)getAttributeInternal(OBREFNO);\n }", "public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}", "public java.lang.String getFA(){\r\n return localFA;\r\n }", "@Override\n\tpublic String getComunidadAutonoma() {\n\t\treturn model.getComunidadAutonoma();\n\t}", "public static TypeDictionaryDicoActionQualificatifActivite get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTypeDictionaryDicoActionQualificatifActivite result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuilderData(getContext())\n .getBeanContext();\n if (isAttributeDefined(ATTR_BEAN_CLASS))\n {\n Class<?> beanClass = FormBaseTag.convertToClass(getAttributes()\n .get(ATTR_BEAN_CLASS));\n return bc.getBean(beanClass);\n }\n else\n {\n return bc.getBean(getStringAttr(ATTR_BEAN_NAME));\n }\n }\n }", "java.lang.String getUa();", "public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getOficina() {\n return oficina;\n }", "@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}", "public String getAttribute_value() {\n return attribute_value;\n }", "Object getAttribute(int attribute);", "public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public Number getAncho()\n {\n return (Number)getAttributeInternal(ANCHO);\n }", "public int getEva(){\n return eva;\n }", "public String getUom() {\n return (String)getAttributeInternal(UOM);\n }", "public String getUom() {\n return (String)getAttributeInternal(UOM);\n }", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\n return alias;\n }", "public String getAlias() {\n return alias;\n }", "public MonetaryAccountReference getAlias() {\n return this.alias;\n }", "@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}", "public int forma()\n {\n return Elemento.CUADRADA;\n }", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "public String getClasse() {\n\t\treturn classe;\n\t}", "public java.lang.String getFolio() {\n return folio;\n }", "public java.lang.String getAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTOFORWARDTONAME$12, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public Causa getCausa() {\n return causa.get();\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getAlias() {\n return alias;\n }", "public String getCidade() {\n\t\treturn cidade;\n\t}" ]
[ "0.5492939", "0.5492939", "0.537405", "0.5373198", "0.5216546", "0.5214013", "0.51548123", "0.50769407", "0.5032454", "0.5031985", "0.5031985", "0.4977073", "0.49495566", "0.49297854", "0.49251202", "0.4923659", "0.49086753", "0.48928893", "0.4885568", "0.48702398", "0.48676196", "0.48517334", "0.48468193", "0.48446238", "0.48441473", "0.4842637", "0.48411286", "0.48411286", "0.48292455", "0.48279116", "0.48225942", "0.48195744", "0.479628", "0.47954434", "0.4787213", "0.4787213", "0.4787213", "0.4771199", "0.47710246", "0.47573748", "0.47524178", "0.47303206", "0.47302717", "0.47249246", "0.47223035", "0.47204694", "0.47190818", "0.46998045", "0.46909857", "0.46853247", "0.4680662", "0.46723264", "0.46704105", "0.46637103", "0.46631333", "0.4660577", "0.4660004", "0.46590856", "0.46528304", "0.46497494", "0.46325964", "0.46141967", "0.46076864", "0.4605471", "0.45967907", "0.4596465", "0.45956957", "0.45954722", "0.45903122", "0.45902365", "0.45821986", "0.45804825", "0.45738494", "0.4565141", "0.45641732", "0.4560918", "0.45603853", "0.45598477", "0.45592135", "0.4556454", "0.45562798", "0.45540634", "0.4548201", "0.45449653", "0.45449653", "0.45390126", "0.45385864", "0.45385864", "0.4535271", "0.4532311", "0.45319074", "0.45296642", "0.4528498", "0.45275885", "0.45253262", "0.45238116", "0.4523121", "0.45224133", "0.45208263" ]
0.694991
1
Sets value as the attribute value for FabOunce.
public void setFabOunce(String value) { setAttributeInternal(FABOUNCE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue(Object value) {\n this.value = value;\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(Object value) { this.value = value; }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "public void setValue(Object o){\n \tthis.value = o;\n }", "public void setValue(Value value) {\n this.value = value;\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(final Object value) { _value = value; }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(Object value);", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setFabConst(String value) {\n setAttributeInternal(FABCONST, value);\n }", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "public void setFabComp(String value) {\n setAttributeInternal(FABCOMP, value);\n }", "void setValue(Object value);", "public void setValue(A value) {this.value = value; }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setValue(Object val);", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setFabCons(String value) {\n setAttributeInternal(FABCONS, value);\n }", "public void setValue(AXValue value) {\n this.value = value;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(String value)\n {\n this.value = value;\n }", "public void setValue(final Object value) {\n spinner.setValue(value);\n }", "public void setValue(String value) {\n set (value);\n }", "public V setValue(V value);", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(FreeColAction value) {\n logger.warning(\"Calling unsupported method setValue.\");\n }", "public void set(final V value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, SecurityException, InvocationTargetException, NoSuchMethodException, InstantiationException{\n\t\tif(this.fielAncestor != null){\n\t\t\tobject = this.fielAncestor.getValueForSetValue(object);\n\t\t}\n\t\tsetValueObject(object, value);\n\t\t\n\t}", "private void setAbonner(){\r\n\r\n Map<String,Object> data=new HashMap<>();\r\n data.put(\"user_id\",userId);\r\n data.put(\"createAt\", ServerValue.TIMESTAMP);\r\n\r\n referenceAbonnement.child(userId)\r\n .setValue(data).addOnSuccessListener(new OnSuccessListener<Void>() {\r\n @SuppressLint(\"ResourceAsColor\")\r\n @Override\r\n public void onSuccess(Void aVoid) {\r\n btnAbonnement.setText(\"Désabonner\");\r\n btnAbonnement.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\r\n btnAbonnement.setTextColor(getResources().getColor(R.color.colorBlanc));\r\n }\r\n });\r\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\n m_value = value;\n }", "@JacksonXmlProperty(isAttribute = true, localName = \"value\")\n public Builder value(String value) {\n this.value = value;\n return this;\n }", "public void set(int value)\n {\n set(value, true);\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setValue(int value) {\n\t\tthis._value = value;\n\t}", "public void setFECHAINICVAL(int value) {\n this.fechainicval = value;\n }", "public void setABContact(entity.ABContact value);", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void set_value(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n this.mValue = value;\n if (mDependency == null)\n mDependency = new ReactorDependency();\n\n mDependency.changed();\n }", "public void set(int value){\n val = value;\n }", "public void setValue(org.apache.xmlbeans.XmlObject value)\n {\n generatedSetterHelperImpl(value, VALUE$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setValue (String Value);", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public void setFECHACRREVAL(int value) {\n this.fechacrreval = value;\n }", "public void setIV_FO_TOR_ID(java.lang.String value)\n {\n if ((__IV_FO_TOR_ID == null) != (value == null) || (value != null && ! value.equals(__IV_FO_TOR_ID)))\n {\n _isDirty = true;\n }\n __IV_FO_TOR_ID = value;\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}" ]
[ "0.6340004", "0.6129459", "0.61078405", "0.6103617", "0.6093864", "0.60519814", "0.60072434", "0.5910143", "0.5903084", "0.5867493", "0.58518183", "0.5835488", "0.57983524", "0.5785939", "0.57801396", "0.57498074", "0.572116", "0.572116", "0.5706254", "0.5659046", "0.56558037", "0.5652122", "0.5651678", "0.5650203", "0.56415385", "0.5641364", "0.56253666", "0.5613325", "0.5613325", "0.55729055", "0.55714786", "0.5565786", "0.5565786", "0.5565786", "0.55644864", "0.5541984", "0.5540987", "0.5540987", "0.5540987", "0.5540987", "0.5536076", "0.5536076", "0.5536076", "0.5536076", "0.5536076", "0.5520922", "0.5516265", "0.5516265", "0.5516265", "0.5516265", "0.5516265", "0.5515194", "0.55150574", "0.55062574", "0.55057126", "0.55057126", "0.5504463", "0.54925895", "0.5489379", "0.54765844", "0.547485", "0.547378", "0.547378", "0.54692733", "0.54635084", "0.5461488", "0.5455165", "0.5455165", "0.5455165", "0.5455165", "0.5455165", "0.5452919", "0.5433496", "0.542616", "0.5422885", "0.5417032", "0.5415262", "0.54061157", "0.5403778", "0.5402451", "0.53968436", "0.5396568", "0.5396034", "0.5396034", "0.5396034", "0.5396034", "0.5394366", "0.538049", "0.5380446", "0.53790635", "0.53696775", "0.5368491", "0.5368271", "0.5365424", "0.5365424", "0.5361894", "0.5360204", "0.5358803", "0.5358636" ]
0.73139
1
Gets the attribute value for FinishedGarmentsColor, using the alias name FinishedGarmentsColor.
public String getFinishedGarmentsColor() { return (String)getAttributeInternal(FINISHEDGARMENTSCOLOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFinishedGarmentsColor(String value) {\n setAttributeInternal(FINISHEDGARMENTSCOLOR, value);\n }", "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "public String obtenColor() {\r\n return color;\r\n }", "public String dame_color() {\n\t\treturn color;\n\t}", "public String getColor() {\r\n return color;\r\n }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n return this.color;\n }", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor()\n {\n return this.color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public Color getColor() { return color.get(); }", "@Override\n public String getColor() {\n return this.color.name();\n }", "public String getColor(){\r\n return color;\r\n }", "public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}", "public String getColor() {\n return colorID;\n }", "public String getColor() { \n return color; \n }", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "@Override\n public String getColor() {\n return this.color;\n }", "public Color getColor() {\n return color;\r\n }", "public String getColor(){\n return this._color;\n }", "public Color getColor() {\r\n return this.color;\r\n }", "public int getColorValue() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\r\n return color;\r\n }", "public Color getColor() {\n return internalGroup.getColor();\n }", "public Color getColor() {\n return color;\n }", "public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}", "public String getColor(){\n return this.color;\n }", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\r\n\t\treturn color;\r\n\t}", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor() {\n\t\treturn this.color;\n\t}", "public Color getColor()\n {\n return color;\n }", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n\t\treturn color;\n\t}", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return color;\n }", "public Color getColor() {\n return this.color;\n }", "public ColorRoom getColor() {\n return color;\n }", "public Color getColor() {\n \t\treturn color;\n \t}", "public CityColor getColor() {\r\n\t\treturn this.color;\r\n\t}", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "public Color getColor()\n {\n return color;\n }", "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "public final Color getColor() {\n return color;\n }", "public Color getColor() \n\t{\n\t\treturn color;\n\t}", "public String getColorNum() {\n return (String)getAttributeInternal(COLORNUM);\n }", "public Integer getColor() {\n\t\treturn color;\n\t}", "public final Color getColor() {\r\n return color;\r\n }", "public int getColor() {\n return this.color;\n }", "public Color getColor() {\n\t\treturn _color;\n\t}", "public Color getColor() {\n\treturn color;\n }", "public Color color() {\n return this.color;\n }", "public int getColor() {\n return color;\n }", "public String getFinishClor() {\n return (String)getAttributeInternal(FINISHCLOR);\n }", "public final Color getColor() {\n\t\treturn color;\n\t}", "public int getColor() {\r\n return Color;\r\n }", "public short getColor() {\n\t\treturn this.color;\n\t}", "public Color getColor()\r\n\t{\r\n\t\treturn _g2.getColor();\r\n\t}", "public IsColor getColorTo() {\n\t\treturn ColorBuilder.parse(getColorToAsString());\n\t}", "public RGBColor getColor(){\r\n return this._color;\r\n }", "public Color color() {\n return color;\n }", "public Color color() {\n return color;\n }", "public Color getColor()\n { \n return color;\n }", "public Color getColor() {\n return this.color;\n }", "public Color getColor(){\n return color;\n }", "public int getColor(){\n\t\treturn color;\n\t}", "public int getColor(){\n\t\treturn color;\n\t}", "public Color getColor() { return color; }", "public Color getColor() {\r\n return currentColor;\r\n }", "public char getSeekerColor() {\n return getCharProperty(\"RequestedColor\");\n }", "public int getColor(){\r\n\t\treturn color;\r\n\t}", "public Object getCellEditorValue() {\n return currentColor;\n }", "public int getColor() {\n \t\treturn color;\n \t}", "public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}", "public String getColorId() {\n return colorId;\n }", "public GraphColor getColor( ) {\n return color;\n }", "public static Color getColor() {\n return myColor;\n }", "public int color() {\n\t\treturn color;\n\t}" ]
[ "0.7032518", "0.5958053", "0.59416324", "0.5891879", "0.58694094", "0.5837281", "0.5821647", "0.5813445", "0.5813445", "0.58073795", "0.58073795", "0.58073795", "0.58073795", "0.58073795", "0.58073795", "0.58073795", "0.58073795", "0.5790987", "0.5783772", "0.5783772", "0.57792336", "0.57758516", "0.5743141", "0.5736597", "0.5734851", "0.5731699", "0.5725789", "0.568929", "0.5680845", "0.5678147", "0.5664595", "0.56642723", "0.56609637", "0.5658113", "0.5658113", "0.5658113", "0.5646419", "0.5643573", "0.5641349", "0.5639403", "0.56229025", "0.56229025", "0.5618532", "0.5618532", "0.5618532", "0.56145", "0.5602981", "0.55985993", "0.55985993", "0.55985993", "0.55985993", "0.5597003", "0.5597003", "0.5597003", "0.5597003", "0.5597003", "0.5597003", "0.5588174", "0.55867535", "0.5582901", "0.5573205", "0.55727804", "0.55727804", "0.55727804", "0.55549115", "0.55525875", "0.5549303", "0.5546119", "0.55353147", "0.5531973", "0.5527255", "0.5523521", "0.55201715", "0.55116135", "0.55046415", "0.5490952", "0.5477779", "0.5477276", "0.5475341", "0.5470738", "0.5469361", "0.54668087", "0.5464502", "0.5464502", "0.5456104", "0.54548097", "0.54491913", "0.54355204", "0.54355204", "0.54342765", "0.54316765", "0.54191893", "0.54167706", "0.5406752", "0.5405848", "0.5395437", "0.53951913", "0.5383202", "0.5361401", "0.5356443" ]
0.82782245
0
Sets value as the attribute value for FinishedGarmentsColor.
public void setFinishedGarmentsColor(String value) { setAttributeInternal(FINISHEDGARMENTSCOLOR, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFinishedGarmentsColor() {\n return (String)getAttributeInternal(FINISHEDGARMENTSCOLOR);\n }", "public void setRrColor(Color value) {\n rrColor = value;\n }", "public void setValue(Color value) {\n _color = value;\n _updateField(value);\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public void setColor(int value);", "public void setColor( GraphColor newVal ) {\n color = newVal;\n }", "private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }", "public void setColor(Color c) { color.set(c); }", "public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }", "public void setFinishClor(String value) {\n setAttributeInternal(FINISHCLOR, value);\n }", "@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }", "protected void setFinished(boolean finished) {\n this.finished = finished;\n }", "public void setFinished(Boolean finished) {\n this.finished = finished;\n }", "public void setColor(int r, int g, int b);", "public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}", "public void setColorNew(String value) {\n setAttributeInternal(COLORNEW, value);\n }", "public void setColor(Color c);", "public Builder setFinished(boolean value) {\n bitField0_ |= 0x00000004;\n finished_ = value;\n onChanged();\n return this;\n }", "public void setColor(Color newColor) ;", "public void setColor(Color color);", "public void setColor(Color c) {\n color = c;\n }", "public void setColor(String c);", "public void setUIComponentValue(Object newValue) {\n if (newValue instanceof Color) {\n lastValue = (Color) newValue;\n setBackground(lastValue);\n }\n }", "public void setColor(Color c) {\n this.color = c;\n }", "@Override\n public void excute() {\n drawable.setColor(color);\n }", "public void setColor(float r, float g, float b, float a);", "public void setColor(int color);", "public void setColor(int color);", "public void setColor(int gnum, Color col);", "public void setCurrentStrokeValue(float value,int color) {\n currentStrokeValue = value;\n if(strokeWidthView != null) {\n strokeWidthView.setProgress((int) value,color);\n strokeWidthView.invalidate();\n }\n }", "public void setColor(Color c) {\n\t\tthis.color = c;\n\t}", "@Override\n public void setColor(Color color) {\n this.color = color;\n }", "public void setColorNum(String value) {\n setAttributeInternal(COLORNUM, value);\n }", "public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}", "public void setColor(Color color) {\n this.color = color;\n }", "void setColor(int r, int g, int b);", "public void setGreenAnimation(){\n va.setDuration(75);\n va.setEvaluator(new ArgbEvaluator());\n va.setRepeatCount(ValueAnimator.INFINITE);\n va.setRepeatMode(ValueAnimator.REVERSE);\n va.start();\n\n //va.cancel();\n }", "public void setColor(Color newColor) {\n\tcolor = newColor;\n }", "private void onColorClick() {\n Integer colorFrom = getResources().getColor(R.color.animated_color_from);\r\n Integer colorTo = getResources().getColor(R.color.animated_color_to);\r\n ValueAnimator colorAnimator = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);\r\n colorAnimator.setDuration(animationDuration);\r\n colorAnimator.setRepeatCount(1);\r\n colorAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n colorAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator animator) {\r\n animatedArea.setBackgroundColor((Integer)animator.getAnimatedValue());\r\n }\r\n\r\n });\r\n colorAnimator.start();\r\n }", "public void setColor(Color color_) {\r\n\t\tcolor = color_;\r\n\t}", "public synchronized boolean isColorAnimationFinished() {\n return colorStateTime >= COLOR_ANIMATION_DURATION;\n }", "void setGreen(int green){\n \n this.green = green;\n }", "public void setColor(Color color) {\n this.color = color;\r\n }", "public void saveColor()\r\n\t{\r\n\t\tsavedColor = g.getColor();\r\n\t}", "public synchronized void setFinished(boolean f){\n finished = f;\n }", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "public void setColor(Color newColor) {\n\t\tcolor = newColor;\n\t}", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "public void setColor(String key, Color value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key,\n\t\t\t\t\tvalue.getRed() + \" \" + value.getGreen() + \" \" + value.getBlue() + \" \" + value.getAlpha());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}", "public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "public synchronized void setTargetColor(Color color, boolean animated) {\n colorStateTime = animated ? 0.0f : COLOR_ANIMATION_DURATION;\n initialColor = getCurrentColor();\n targetColor = color;\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public void setColor(int color){\n this.color = color;\n }", "public void setStrokeColor(Color color);", "void setRed(int red){\n \n this.red = red;\n }", "public static void setBlue() {\r\n playerTeam.setColor(blue);\r\n updateMessage(\"Seu time agora é azul\");\r\n }", "public void setMandelbrotColor(Color c) {\r\n mandelbrotColor = c;\r\n }", "@Override\r\n public void setColor(Llama.Color color) {\r\n this.color = color;\r\n }", "protected void setColor(Color color) {\r\n\t\tthis.color = color;\r\n\t}", "public void setColor(int red, int green, int blue){\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n }", "@Override\r\n\tpublic String setColor() {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\tpublic void onAnimationUpdate(ValueAnimator animation) {\n\t\t\t\trlayout.setBackgroundColor((Integer)animation.getAnimatedValue());\n\t\t\t}", "void setColor(Vector color);", "public void setColor(Color color) {\n this.color = color;\n }", "public void fillColor() {\n\t\tSystem.out.println(\"Blue color\");\n\t}", "@Override\n public boolean isFinished() {\n return m_desiredColor == ColorWheel.UNKNOWN || \n m_desiredColor == m_colorSpinner.checkColor();\n }", "public final void setOnFinished(EventHandler<ActionEvent> value) {\n this.timeline.setOnFinished(value);\n }", "@Override\n public GralColor setForegroundColor(GralColor color)\n {\n return null;\n }", "public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }", "public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}", "public void setColor(int c) {\n paint.setColor(c);\n invalidate();\n }", "public void setColor(RGBColor color){\r\n this._color = new RGBColor(color);\r\n }", "public void setColor(final Color theColor) {\n myColor = theColor;\n }", "@JSProperty(\"tickColor\")\n void setTickColor(String value);", "@JSProperty(\"color\")\n void setColor(@Nullable GradientColorObject value);", "public void setColor(Color another)\r\n {\r\n currentColor = another;\r\n }", "public Builder color(@Nullable String value) {\n object.setColor(value);\n return this;\n }", "public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }", "public void setColor(String color){\n this.color = color;\n }", "@Override\n\tpublic void setColor(String color) {\n\t\tthis.color = color;\n\t}", "public synchronized void setComplete() {\n status = Status.COMPLETE;\n }", "public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "public boolean setColor(Color c)\n {\n color = c;\n return true;\n }", "public void setColor(Color color_rey){\r\n this.color_rey=color_rey;\r\n }", "public void setColor(Color color) \n\t{\n\t\tthis.color = color;\n\t}", "public void setColor(String color) {\r\n this.color = color;\r\n }", "@Override\n\t\tpublic Color color() { return color; }", "public void setColor(Color c){\n\t\t//do nothing\n\t}", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "public abstract void setColor(Color color);", "public abstract void setColor(Color color);", "public void setColor(String aColor, Context context){\n this.color = aColor;\n writeFile(context);\n }", "@Override\n public Color getColor() {\n return color;\n }", "public final void setIsColor(boolean value) {\n isColor.set(value);\n }", "public void setColor(Color color) {\n\t\t_color = color;\n\t\tnotifyObs(this);\n\t}", "public void setColor(int color){\n\t\tthis.color = color;\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}" ]
[ "0.70160234", "0.59696746", "0.5787042", "0.5772097", "0.5747154", "0.5735855", "0.5722768", "0.5706726", "0.5686313", "0.5680968", "0.5656557", "0.56026375", "0.55891657", "0.55768484", "0.55268395", "0.5507512", "0.5468257", "0.5464548", "0.544569", "0.5430943", "0.54280734", "0.5385277", "0.5380465", "0.5379759", "0.53781086", "0.5348505", "0.5343425", "0.5343425", "0.5332444", "0.53128856", "0.5302255", "0.5293701", "0.5279153", "0.52697504", "0.52688247", "0.52615666", "0.52575487", "0.5246953", "0.5227816", "0.5225453", "0.5215364", "0.5208019", "0.5205172", "0.5173373", "0.5168226", "0.51541597", "0.51334214", "0.51251656", "0.5109663", "0.50949746", "0.5093935", "0.50894064", "0.5080192", "0.5079595", "0.507339", "0.5056046", "0.50558954", "0.5051136", "0.5044802", "0.5044617", "0.5040354", "0.5033261", "0.5031548", "0.502772", "0.5025116", "0.50109303", "0.50022656", "0.4997996", "0.49935833", "0.49897388", "0.49889258", "0.4988814", "0.4984115", "0.49825048", "0.49822062", "0.4979865", "0.49734735", "0.49729604", "0.49702963", "0.49683505", "0.49681398", "0.49535486", "0.4950434", "0.49473578", "0.49439144", "0.4942821", "0.49400106", "0.4939585", "0.4938051", "0.4934454", "0.49318627", "0.49313995", "0.49313995", "0.49304593", "0.49292475", "0.4928962", "0.49213824", "0.49205047", "0.49186257", "0.49186257" ]
0.8603446
0
Gets the attribute value for CreatedBy, using the alias name CreatedBy.
public Number getCreatedBy() { return (Number)getAttributeInternal(CREATEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n }\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCreatedby() {\n return createdby;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"hello@rockset.com\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "int getCreatedBy();", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "@AutoEscape\n\tpublic String getCreatedByUser();", "public String getCreateBy() {\r\n return createBy;\r\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}" ]
[ "0.772358", "0.772358", "0.772358", "0.772358", "0.76948065", "0.76948065", "0.76948065", "0.7563884", "0.7563884", "0.75604635", "0.7555155", "0.74102604", "0.74102604", "0.73520875", "0.7303056", "0.72695756", "0.72695756", "0.72695756", "0.72601014", "0.7243559", "0.7238339", "0.7203187", "0.7199657", "0.7189671", "0.7188031", "0.7188031", "0.7188031", "0.7188031", "0.7177329", "0.71632946", "0.713903", "0.7127145", "0.7122578", "0.7121032", "0.70707095", "0.70403874", "0.70081896", "0.7002376", "0.69781935", "0.6965531", "0.69319713", "0.686304", "0.686304", "0.686304", "0.686304", "0.68493617", "0.68095547", "0.6714452", "0.66992307", "0.6661304", "0.6661304", "0.6661304", "0.6661304", "0.6661304", "0.6661304", "0.6661304", "0.65841657", "0.6519283", "0.6436192", "0.6411815", "0.6370245", "0.6370245", "0.6369837", "0.6368683", "0.6353809", "0.6349509", "0.63455445", "0.63455445", "0.63455445", "0.63455445", "0.63411987", "0.6337184", "0.6316149", "0.6310214", "0.6300215", "0.6300215", "0.6300215", "0.62959224", "0.62740433", "0.62639844", "0.62607783", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.62537944", "0.622839" ]
0.75473833
15
Sets value as the attribute value for CreatedBy.
public void setCreatedBy(Number value) { setAttributeInternal(CREATEDBY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "void setCreateby(final U createdBy);", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n }\n }", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n return createdBy;\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public String getCreatedby() {\n return createdby;\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String createdBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"hello@rockset.com\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setCreatedby(String createdby) {\n this.createdby = createdby == null ? null : createdby.trim();\n }", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Builder setCreatedByBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "public void setCreatedByUser(String createdByUser);", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();" ]
[ "0.8572343", "0.8572343", "0.8572343", "0.8572343", "0.8572343", "0.8572343", "0.8572343", "0.8139975", "0.8126318", "0.7976156", "0.7878001", "0.7817959", "0.7783639", "0.77779454", "0.77295303", "0.7724226", "0.7706298", "0.76755524", "0.76755524", "0.76755524", "0.7637367", "0.7617392", "0.75913566", "0.75638497", "0.7554828", "0.7554828", "0.7507485", "0.7460332", "0.7428759", "0.7428759", "0.7428759", "0.7418336", "0.7402622", "0.74017805", "0.74002504", "0.7395147", "0.7395147", "0.7395147", "0.7395147", "0.73744", "0.73712575", "0.7366648", "0.7355483", "0.7355483", "0.73447955", "0.7322957", "0.7322564", "0.7312768", "0.72887045", "0.7286706", "0.72785234", "0.72785234", "0.72785234", "0.72785234", "0.7253234", "0.72392154", "0.72384316", "0.72384316", "0.72384316", "0.7217801", "0.71956134", "0.7183152", "0.7168887", "0.7152768", "0.7152374", "0.7152374", "0.7152374", "0.7152374", "0.71068865", "0.71037847", "0.70613736", "0.70522755", "0.7030769", "0.7013369", "0.7013369", "0.70106196", "0.70106196", "0.70106196", "0.70106196", "0.6993594", "0.6993594", "0.6993594", "0.6993594", "0.6993594", "0.6993594", "0.6937016", "0.6931192", "0.69178385", "0.6893393", "0.68594164", "0.684757", "0.6800685", "0.6712745" ]
0.80646443
15